From b4f9e4525bc947802ba9f29ac6818dd737a42a2a Mon Sep 17 00:00:00 2001 From: Simon Pirkelmann Date: Sun, 23 Jan 2022 12:33:20 +0100 Subject: [PATCH] use setup.cfg based package setup script --- setup.cfg | 29 +++++++++++++++++++++++++++++ setup.py | 16 +--------------- 2 files changed, 30 insertions(+), 15 deletions(-) diff --git a/setup.cfg b/setup.cfg index 2f62804..61a14c4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -15,3 +15,32 @@ classifiers = Programming Language :: Python :: 3 License :: OSI Approved :: GNU General Public License v3 (GPLv3) Operating System :: OS Independent + +[options] +python_requires = >=3.8 +install_requires = + bleach + Flask + Flask-Mail + Flask-Security-Too + Flask-SQLAlchemy + Flask-WTF + email_validator + paho-mqtt + ldap3 + wtforms + +include_package_data = True +packages = find: +setup_requires = + wheel +tests_require = pytest>=3 +zip_safe = False +scripts= bin/launch_webadmin + +[options.extras_require] +dev = + pytest + pytest-cov + pytest-flask + flake8 \ No newline at end of file diff --git a/setup.py b/setup.py index caa3e79..6068493 100644 --- a/setup.py +++ b/setup.py @@ -1,17 +1,3 @@ from setuptools import setup -setup(install_requires=[ - 'bleach', - 'Flask', - 'Flask-Mail', - 'Flask-Security-Too', - 'Flask-SQLAlchemy', - 'Flask-WTF', - 'email_validator', - 'paho-mqtt', - 'ldap3', - ], - include_package_data=True, - scripts=['bin/launch_webadmin'], - packages=['imaginaerraum_door_admin'], - zip_safe=False) +setup()