libs for cameramonit, ocr, fin-officer, cfo, and other projects
Project description
config.pyfunc.com
START
setup local environment
python3 -m venv pytest-env
source pytest-env/bin/activate
Install required tools
pip install setuptools wheel setuptools-git-versioning build twine pip-tools toml path
pip install --upgrade setuptools_scm
pip install --upgrade twine
pip list
UPDATE
VERSION=1.2.15
#echo $VERSION > src/pyfunc_config/VERSION
echo "__version__ = '${VERSION}'" >> src/pyfunc_config/__init__.py
quick update
VERSION=1.2.18
echo "__version__ = '${VERSION}'" >> src/pyfunc_config/__init__.py
git status
git tag $VERSION
git push origin --tags
git add pyproject.toml
git add .gitignore
git add *.py
git add *.md
git add src/*
git commit -m "new release"
git push
python -m setuptools_git_versioning
rm -rf build dist *.egg-info
python -m build
python -m twine upload dist/*
DETAILS
git tag 1.2.8
git push origin --tags
VERSION
python -m setuptools_git_versioning
update requirements
pip-compile pyproject.toml
pip-sync
build and publish your package:
Clean
rm -rf build dist *.egg-info
Build the Package with debug
python -m build --wheel -n
Build the Package
python -m build
Publish to PyPI
python -m twine upload dist/*
Another
Here's an updated GitHub Actions workflow to include the script execution:
py generate_init.py -p src/pyfunc_config
py -m build
twine check dist/*
test before publish
twine upload -r testpypi dist/*
publish
twine upload dist/*
Semantic versioning
The idea of semantic versioning (or SemVer) is to use 3-part version numbers, major.minor.patch, where the project author increments:
major when they make incompatible API changes,
minor when they add functionality in a backwards-compatible manner, and
patch, when they make backwards-compatible bug fixes.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyfunc_config-1.2.18.dev1.tar.gz
(24.9 kB
view hashes)
Built Distribution
Close
Hashes for pyfunc_config-1.2.18.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 805d4c9cd4628824611c2e791c5b17feb1843e395240c3e591b0a1d7c965d5a4 |
|
MD5 | 758e37093c3527d8da5826d1904e367c |
|
BLAKE2b-256 | 93ce2c21a8ffeacb6a6124a09c53387f4f6652353ab241deb012e17784dc7826 |
Close
Hashes for pyfunc_config-1.2.18.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11168bfbd2e3a0c9aef749beec042e2ddf6dbed2256479deadbbd81890d14c77 |
|
MD5 | 1fa1c8decc881ea81cb57b32dcf4f39a |
|
BLAKE2b-256 | e6c523a346d9756dee0bbcc3e517c1fae6dffdbfe7fcdbc6cfa1529e9d55347b |