Find er-client source here in github.
We use uv for managing the setup and builds
- install uv link to docs
- setup a venv for development using uv venv. Here we are developing under python 3.10. Do this in the root directory of the er-client
this installs python in the .venv directory
uv venv --python 3.10source .venv/bin/activate - sync the dependencies, if you get an error, try removing file .python-version
uv sync
example adding the requests library
uv add requests
an example adding pytest as a dev library
uv add --dev pytest
- Use pre-commit to enforce our coding style
Establish the git hooks.
Manually run pre-commit
pre-commit installUpdate pre-commitpre-commit run --all-filesSee the following for more information and a library of hooks: http://pre-commit.com/pre-commit autoupdate - increment version as appropriate in version.py
- verify the version number using hatch command
hatch version
- build wheels
uv build
- publish new wheel to project in github and pypi
- First get a pypi publishing token.
- you can either set an environment variable UV_PUBLISH_TOKEN, or on command line include --token ...
- Then run publish
uv publish