Merge pull request 'Package update' (#71) from mueller/package-update into develop

Reviewed-on: #71
This commit is contained in:
Robin Müller 2022-05-17 14:30:51 +02:00
commit 8162cf1508
5 changed files with 67 additions and 5 deletions

View File

@ -27,13 +27,13 @@ and then run the `lint.py` script
1. Create virtual environment 1. Create virtual environment
```sh ```sh
python3 -m venv . python3 -m venv venv
``` ```
2. Activate virtual environment 2. Activate virtual environment
```sh ```sh
./Scripts/activate . venv/bin/activate
``` ```
3. Install `tmtccmd` for virtual environment. `-e` for interactive installation. 3. Install `tmtccmd` for virtual environment. `-e` for interactive installation.
@ -54,7 +54,7 @@ py -m venv .
2. Activate virtual environment 2. Activate virtual environment
```sh ```sh
Scripts\activate.bat venv\Scripts\activate.bat
``` ```
3. Install `tmtccmd` for virtual environment. `-e` for interactive installation. 3. Install `tmtccmd` for virtual environment. `-e` for interactive installation.

View File

@ -1 +0,0 @@
tmtccmd>=2.1.0

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

@ -1 +1 @@
Subproject commit 418bb7dc5a91beb3a163d1ecf4b7c68f59b9115a Subproject commit 0895aae63414cdca4a16c53028fe72401c1b50e0