added setup.cfg and setup.py file

This commit is contained in:
Robin Müller 2022-05-17 14:28:17 +02:00
parent 78996b2ef6
commit 86395ac6e7
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
2 changed files with 63 additions and 0 deletions

51
setup.cfg Normal file
View File

@ -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,

12
setup.py Normal file
View File

@ -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()