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.17
#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.17.dev1.tar.gz
(24.9 kB
view details)
Built Distribution
File details
Details for the file pyfunc_config-1.2.17.dev1.tar.gz
.
File metadata
- Download URL: pyfunc_config-1.2.17.dev1.tar.gz
- Upload date:
- Size: 24.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b39d66f3214c1031988f8e24ced9a315318a4e72b07048192d93ba4a433e7eaa |
|
MD5 | 691dd0df465bfe0be146469a060e41c3 |
|
BLAKE2b-256 | eb370f6ac164e83424d78d3600331b0e5640f0512e54190de794001cf842e497 |
File details
Details for the file pyfunc_config-1.2.17.dev1-py3-none-any.whl
.
File metadata
- Download URL: pyfunc_config-1.2.17.dev1-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5843ebce3dedc7a756baac8e07ad217ae09aac4518c36c5f8fb5d79716ec172e |
|
MD5 | 6838b2c5e5df581a61e69516e0287dad |
|
BLAKE2b-256 | 0b3d817dda06201d214b1da6f6f3b400833386495e9d3662993dd6469df1bb44 |