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
54 lines
1.6 KiB
import setuptools
|
|
|
|
from sticker.get_version import git_tag, git_revision, version, linkified_version
|
|
|
|
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"
|
|
|
|
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}
|
|
""")
|
|
|
|
setuptools.setup(
|
|
name="maunium-stickerpicker",
|
|
version=version,
|
|
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",
|
|
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
|
|
"Framework :: AsyncIO",
|
|
"Programming Language :: Python",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.6",
|
|
"Programming Language :: Python :: 3.7",
|
|
"Programming Language :: Python :: 3.8",
|
|
"Programming Language :: Python :: 3.9",
|
|
],
|
|
entry_points={"console_scripts": [
|
|
"sticker-import=sticker.stickerimport:cmd",
|
|
"sticker-pack=sticker.pack:cmd",
|
|
]},
|
|
)
|