You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.6 KiB

  1. import setuptools
  2. from sticker.get_version import git_tag, git_revision, version, linkified_version
  3. with open("requirements.txt") as reqs:
  4. install_requires = reqs.read().splitlines()
  5. try:
  6. long_desc = open("README.md").read()
  7. except IOError:
  8. long_desc = "Failed to read README.md"
  9. with open("sticker/version.py", "w") as version_file:
  10. version_file.write(f"""# Generated in setup.py
  11. git_tag = {git_tag!r}
  12. git_revision = {git_revision!r}
  13. version = {version!r}
  14. linkified_version = {linkified_version!r}
  15. """)
  16. setuptools.setup(
  17. name="maunium-stickerpicker",
  18. version=version,
  19. url="https://github.com/maunium/stickerpicker",
  20. author="Tulir Asokan",
  21. author_email="tulir@maunium.net",
  22. description="A fast and simple Matrix sticker picker widget",
  23. long_description=long_desc,
  24. long_description_content_type="text/markdown",
  25. packages=setuptools.find_packages(),
  26. install_requires=install_requires,
  27. python_requires="~=3.6",
  28. classifiers=[
  29. "Development Status :: 4 - Beta",
  30. "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
  31. "Framework :: AsyncIO",
  32. "Programming Language :: Python",
  33. "Programming Language :: Python :: 3",
  34. "Programming Language :: Python :: 3.6",
  35. "Programming Language :: Python :: 3.7",
  36. "Programming Language :: Python :: 3.8",
  37. "Programming Language :: Python :: 3.9",
  38. ],
  39. entry_points={"console_scripts": [
  40. "sticker-import=sticker.stickerimport:cmd",
  41. "sticker-pack=sticker.pack:cmd",
  42. ]},
  43. )