Skip to content

Latest commit

 

History

History
69 lines (48 loc) · 1.19 KB

BUILD.md

File metadata and controls

69 lines (48 loc) · 1.19 KB

Package and publish teed

Sequence of commands how to package teed and publish to PYPI.

Based on the guide:

https://packaging.python.org/tutorials/packaging-projects/

Package

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

Publish

We're using twine, see the above mentioned guide for details.

pip install --upgrade twine
twine upload --repository testpypi dist/*

Deploy from testpypi

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

Use 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")