From 86395ac6e71750d13434e286da4b5d319128b014 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 17 May 2022 14:28:17 +0200 Subject: [PATCH] added setup.cfg and setup.py file --- setup.cfg | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ setup.py | 12 ++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 setup.cfg create mode 100644 setup.py diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..c4fd97e --- /dev/null +++ b/setup.cfg @@ -0,0 +1,51 @@ +[metadata] +name = tmtc +description = TMTC Commander EIVE +version = attr: config.__version__ +long_description = file: README.md +long_description_content_type = text/markdown +license = Apache-2.0 +author = Robin Mueller +author_email = muellerr@irs.uni-stuttgart.de +platform = any + +url = https://egit.irs.uni-stuttgart.de/eive/eive-tmtc +classifiers = + Development Status :: 5 - Production/Stable + Intended Audience :: Developers + License :: OSI Approved :: Apache Software License + Natural Language :: English + Operating System :: POSIX + Operating System :: Microsoft :: Windows + Programming Language :: Python :: 3 + Programming Language :: Python :: 3.8 + Programming Language :: Python :: 3.9 + Topic :: Communications + Topic :: Software Development :: Libraries + Topic :: Software Development :: Libraries :: Python Modules + Topic :: Scientific/Engineering + +[options] +install_requires = + tmtccmd >= 2.2.1 +packages = find: +python_requires = >=3.8 + +[options.extras_require] +mib = + +[flake8] +max-line-length = 100 +ignore = D203, W503 +exclude = + .git, + __pycache__, + docs/conf.py, + old, + build, + dist, + venv +max-complexity = 10 +extend-ignore = + # See https://github.com/PyCQA/pycodestyle/issues/373 + E203, diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..77392bf --- /dev/null +++ b/setup.py @@ -0,0 +1,12 @@ +#!/usr/bin/env python3 +""" +We do the package handling in the static setup.cfg but include an empty setup.py +to allow editable installs https://packaging.python.org/tutorials/packaging-projects/ +and provide extensibility +""" +try: + from setuptools import setup +except ImportError: + from distutils.core import setup + +setup()