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.19
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.19.dev2.tar.gz
(24.9 kB
view hashes)
Built Distribution
Close
Hashes for pyfunc_config-1.2.19.dev2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 489a3789bc5b711b6a112755f88eb79014fc382559626ec11ca3db54bfc0d6b0 |
|
MD5 | ff1637a1a625566cf4be1832f7f9bcbe |
|
BLAKE2b-256 | db0e4afae92a09f6e5e342439e45922f955f2d22b8ac01ea4ccd9f8b0846d8f0 |
Close
Hashes for pyfunc_config-1.2.19.dev2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1ca48e80d0e97f9cde203368a42965134795d3ed65c5f7902f7fe9b8a6ad25d |
|
MD5 | d53ebc9a0a0f28a5d36c0ba4ecf8be13 |
|
BLAKE2b-256 | d97e36a7b1f32adb98c0c27af83d9ce5d69b4a6d06a89a138c35e12b3302858c |