Prepare for Python package

This commit is contained in:
Lucidiot 2018-10-20 18:57:44 +02:00
parent 00fcf7e9bb
commit 7c7ab8e902
No known key found for this signature in database
GPG Key ID: AE3F7205692FA205
3 changed files with 47 additions and 0 deletions

1
requirements-dev.txt Normal file
View File

@ -0,0 +1 @@
flake8>=3.5

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
requests>=2.20

45
setup.py Normal file
View File

@ -0,0 +1,45 @@
from setuptools import setup, find_packages
def read_requirements(filename):
return [req.strip() for req in open(filename)]
setup(
name='pyurbantz',
version='0.1.0',
author='Lucidiot',
packages=find_packages(
exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
package_data={
'': ['*.md', 'LICENSE', 'README'],
},
install_requires=read_requirements('requirements.txt'),
extras_require={
'dev': read_requirements('requirements-dev.txt'),
},
license='GNU General Public License 3',
description="A helper for UrbanTZ's public undocumented API",
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
keywords="api urbantz order delivery tracking",
url="https://gitlab.com/Lucidiot/pyurbantz",
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
],
project_urls={
"Source Code": "https://gitlab.com/Lucidiot/pyurbantz",
"GitHub Mirror": "https://github.com/Lucidiot/pyurbantz",
}
)