Skip to content

Commit 5fb533f

Browse files
committed
Cleanup setup.py: added more classifiers, changed how README and const.py are opened, added license parameter
1 parent b32efa5 commit 5fb533f

File tree

1 file changed

+24
-12
lines changed

1 file changed

+24
-12
lines changed

setup.py

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,49 @@
11
import re
2-
import setuptools
32
from codecs import open
43
from os import path
54

5+
from setuptools import find_packages, setup
6+
67
PACKAGE_NAME = "discord_slash"
78
HERE = path.abspath(path.dirname(__file__))
89

910
with open("README.md", "r", encoding="UTF-8") as f:
10-
long_description = f.read()
11+
README = f.read()
1112
with open(path.join(HERE, PACKAGE_NAME, "const.py"), encoding="utf-8") as fp:
1213
VERSION = re.search('__version__ = "([^"]+)"', fp.read()).group(1)
1314

1415
extras = {
15-
"readthedocs": [
16-
"sphinx",
17-
"sphinx-rtd-theme"
18-
],
16+
"readthedocs": ["sphinx", "sphinx-rtd-theme"],
1917
}
2018

21-
setuptools.setup(
19+
setup(
2220
name="discord-py-slash-command",
2321
version=VERSION,
2422
author="eunwoo1104",
2523
author_email="sions04@naver.com",
2624
description="A simple discord slash command handler for discord.py.",
2725
extras_require=extras,
2826
install_requires=["discord.py", "aiohttp"],
29-
long_description=long_description,
27+
license="MIT License",
28+
long_description=README,
3029
long_description_content_type="text/markdown",
3130
url="https://github.com/eunwoo1104/discord-py-slash-command",
32-
packages=setuptools.find_packages(),
33-
python_requires='>=3.6',
31+
packages=find_packages(),
32+
python_requires=">=3.6",
3433
classifiers=[
35-
"Programming Language :: Python :: 3"
36-
]
34+
"Development Status :: 4 - Beta",
35+
"Intended Audience :: Developers",
36+
"License :: OSI Approved :: MIT License",
37+
"Natural Language :: English",
38+
"Operating System :: OS Independent",
39+
"Programming Language :: Python :: 3",
40+
"Programming Language :: Python :: 3.6",
41+
"Programming Language :: Python :: 3.7",
42+
"Programming Language :: Python :: 3.8",
43+
"Programming Language :: Python :: 3.9",
44+
"Topic :: Internet",
45+
"Topic :: Software Development :: Libraries :: Python Modules",
46+
"Topic :: Software Development :: Libraries",
47+
"Topic :: Utilities",
48+
],
3749
)

0 commit comments

Comments
 (0)