|
1 | 1 | import re |
2 | | -import setuptools |
3 | 2 | from codecs import open |
4 | 3 | from os import path |
5 | 4 |
|
| 5 | +from setuptools import find_packages, setup |
| 6 | + |
6 | 7 | PACKAGE_NAME = "discord_slash" |
7 | 8 | HERE = path.abspath(path.dirname(__file__)) |
8 | 9 |
|
9 | 10 | with open("README.md", "r", encoding="UTF-8") as f: |
10 | | - long_description = f.read() |
| 11 | + README = f.read() |
11 | 12 | with open(path.join(HERE, PACKAGE_NAME, "const.py"), encoding="utf-8") as fp: |
12 | 13 | VERSION = re.search('__version__ = "([^"]+)"', fp.read()).group(1) |
13 | 14 |
|
14 | 15 | extras = { |
15 | | - "readthedocs": [ |
16 | | - "sphinx", |
17 | | - "sphinx-rtd-theme" |
18 | | - ], |
| 16 | + "readthedocs": ["sphinx", "sphinx-rtd-theme"], |
19 | 17 | } |
20 | 18 |
|
21 | | -setuptools.setup( |
| 19 | +setup( |
22 | 20 | name="discord-py-slash-command", |
23 | 21 | version=VERSION, |
24 | 22 | author="eunwoo1104", |
25 | 23 | author_email="sions04@naver.com", |
26 | 24 | description="A simple discord slash command handler for discord.py.", |
27 | 25 | extras_require=extras, |
28 | 26 | install_requires=["discord.py", "aiohttp"], |
29 | | - long_description=long_description, |
| 27 | + license="MIT License", |
| 28 | + long_description=README, |
30 | 29 | long_description_content_type="text/markdown", |
31 | 30 | 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", |
34 | 33 | 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 | + ], |
37 | 49 | ) |
0 commit comments