Cleanup setup.py: added more classifiers, changed how README and const.py are opened, added license parameter
import re
-import setuptools
from codecs import open
from os import path
+from setuptools import find_packages, setup
+
PACKAGE_NAME = "discord_slash"
HERE = path.abspath(path.dirname(__file__))
with open("README.md", "r", encoding="UTF-8") as f:
- long_description = f.read()
+ README = f.read()
with open(path.join(HERE, PACKAGE_NAME, "const.py"), encoding="utf-8") as fp:
VERSION = re.search('__version__ = "([^"]+)"', fp.read()).group(1)
extras = {
- "readthedocs": [
- "sphinx",
- "sphinx-rtd-theme"
- ],
+ "readthedocs": ["sphinx", "sphinx-rtd-theme"],
}
-setuptools.setup(
+setup(
name="discord-py-slash-command",
version=VERSION,
author="eunwoo1104",
@@ -26,12 +24,26 @@ setuptools.setup(
description="A simple discord slash command handler for discord.py.",
extras_require=extras,
install_requires=["discord.py", "aiohttp"],
- long_description=long_description,
+ license="MIT License",
+ long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/eunwoo1104/discord-py-slash-command",
- packages=setuptools.find_packages(),
- python_requires='>=3.6',
+ packages=find_packages(),
+ python_requires=">=3.6",
classifiers=[
- "Programming Language :: Python :: 3"
- ]
+ "Development Status :: 4 - Beta",
+ "Intended Audience :: Developers",
+ "License :: OSI Approved :: MIT License",
+ "Natural Language :: English",
+ "Operating System :: OS Independent",
+ "Programming Language :: Python :: 3",
+ "Programming Language :: Python :: 3.6",
+ "Programming Language :: Python :: 3.7",
+ "Programming Language :: Python :: 3.8",
+ "Programming Language :: Python :: 3.9",
+ "Topic :: Internet",
+ "Topic :: Software Development :: Libraries :: Python Modules",
+ "Topic :: Software Development :: Libraries",
+ "Topic :: Utilities",
+ ],
)
