diff options
author | romangraef <romangraef@loves.dicksinhisan.us> | 2018-08-18 20:15:24 +0200 |
---|---|---|
committer | romangraef <romangraef@loves.dicksinhisan.us> | 2018-08-18 20:15:24 +0200 |
commit | 1861ecb4307220e70dca6ad47873c77d197d4626 (patch) | |
tree | fcd7dedb435eab916275d90e4984d36bb49b1cc8 /setup.py | |
download | discord_ban_list-1861ecb4307220e70dca6ad47873c77d197d4626.tar.gz discord_ban_list-1861ecb4307220e70dca6ad47873c77d197d4626.tar.bz2 discord_ban_list-1861ecb4307220e70dca6ad47873c77d197d4626.zip |
Initial commit
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', + ] +) |