2020-09-12 20:56:28 -04:00
|
|
|
import setuptools
|
|
|
|
|
2020-10-30 17:32:35 -04:00
|
|
|
from sticker.get_version import git_tag, git_revision, version, linkified_version
|
|
|
|
|
2020-09-12 20:56:28 -04:00
|
|
|
with open("requirements.txt") as reqs:
|
|
|
|
install_requires = reqs.read().splitlines()
|
|
|
|
|
|
|
|
try:
|
|
|
|
long_desc = open("README.md").read()
|
|
|
|
except IOError:
|
|
|
|
long_desc = "Failed to read README.md"
|
|
|
|
|
2020-10-30 17:32:35 -04:00
|
|
|
with open("sticker/version.py", "w") as version_file:
|
|
|
|
version_file.write(f"""# Generated in setup.py
|
|
|
|
|
|
|
|
git_tag = {git_tag!r}
|
|
|
|
git_revision = {git_revision!r}
|
|
|
|
version = {version!r}
|
|
|
|
linkified_version = {linkified_version!r}
|
|
|
|
""")
|
|
|
|
|
2020-09-12 20:56:28 -04:00
|
|
|
setuptools.setup(
|
|
|
|
name="maunium-stickerpicker",
|
2020-10-30 17:32:35 -04:00
|
|
|
version=version,
|
2020-09-12 20:56:28 -04:00
|
|
|
url="https://github.com/maunium/stickerpicker",
|
|
|
|
|
|
|
|
author="Tulir Asokan",
|
|
|
|
author_email="tulir@maunium.net",
|
|
|
|
|
|
|
|
description="A fast and simple Matrix sticker picker widget",
|
|
|
|
long_description=long_desc,
|
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
|
|
|
|
packages=setuptools.find_packages(),
|
|
|
|
|
|
|
|
install_requires=install_requires,
|
|
|
|
python_requires="~=3.6",
|
|
|
|
|
|
|
|
classifiers=[
|
|
|
|
"Development Status :: 4 - Beta",
|
2020-10-30 17:18:55 -04:00
|
|
|
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
|
2020-09-12 20:56:28 -04:00
|
|
|
"Framework :: AsyncIO",
|
|
|
|
"Programming Language :: Python",
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"Programming Language :: Python :: 3.6",
|
|
|
|
"Programming Language :: Python :: 3.7",
|
|
|
|
"Programming Language :: Python :: 3.8",
|
2021-10-03 05:45:37 -04:00
|
|
|
"Programming Language :: Python :: 3.9",
|
2020-09-12 20:56:28 -04:00
|
|
|
],
|
|
|
|
entry_points={"console_scripts": [
|
2021-01-19 10:58:59 -05:00
|
|
|
"sticker-import=sticker.stickerimport:cmd",
|
2020-09-12 20:56:28 -04:00
|
|
|
"sticker-pack=sticker.pack:cmd",
|
|
|
|
]},
|
|
|
|
)
|