diff options
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..2bece50 --- /dev/null +++ b/setup.py @@ -0,0 +1,39 @@ +from setuptools import setup + +with open('discord_ban_list/version.py') as fp: + _loc, _glob = {}, {} + exec(fp.read(), _loc, _glob) + version = {**_loc, **_glob}['version'] + +with open('requirements.txt') as fp: + requirements = fp.read().splitlines() + +with open('README.md') as fp: + readme = fp.read() + +if not version: + raise RuntimeError('Version is not set in discord_ban_list/version.py') + +setup( + name='discord_ban_list', + author='romangraef', + url='https://github.com/romangraef/discord_ban_list', + version=str(version), + install_requires=requirements, + long_description=readme, + setup_requires=['pytest-runner', 'pytest-pylint'], + tests_require=['pytest', 'pylint'], + license='MIT', + packages=['discord_ban_list'], + description='Asyncio Python Wrapper for the discord.id ban list.', + classifiers=[ + 'Topic :: Discord', + 'Operating System :: OS Independent', + 'Topic :: Internet', + 'Topic :: Software Development :: Libraries', + 'Topic :: Software Development :: Libraries :: Python Modules', + 'Topic :: Utilities', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + ] +) |