Sequence of commands how to package teed and publish to PYPI.
Based on the guide:
https://packaging.python.org/tutorials/packaging-projects/
Using setuptools and wheel.
cd teed
source env/bin/activate
python -m pip install --upgrade pip
pip install setuptools wheel
python setup.py sdist bdist_wheel
We're using twine, see the above mentioned guide for details.
pip install --upgrade twine
twine upload --repository testpypi dist/*
Create a new virtual environment, testenv.
And activate it.
cd ~
python3 -m virtualenv testenv
source testenv/bin/activate
Activate testenv and install dependencies from PyPi.
These specific versions aren't available from the test PyPi.
pip install pyyaml>=5.4.1
pip install lxml>=4.6.3
pip install typer>=0.3.2
Install teed from the test Python Package Index (https://test.pypi.org/simple/)
pip install -i https://test.pypi.org/simple/ teed
In console:
python -m teed bulkcm parse data/bulkcm.xml data
As a python library:
from teed import meas
meas.parse("data/mdc*xml", "data")