Skip to main content

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.16
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


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.16.dev1.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

pyfunc_config-1.2.16.dev1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file pyfunc_config-1.2.16.dev1.tar.gz.

File metadata

  • Download URL: pyfunc_config-1.2.16.dev1.tar.gz
  • Upload date:
  • Size: 24.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for pyfunc_config-1.2.16.dev1.tar.gz
Algorithm Hash digest
SHA256 de4b734c8173bac23cbb766ee259887aed42d425870f2fe2225d3503125900dc
MD5 30354b03fc59c3ab0833154a2efd26a7
BLAKE2b-256 9554f461e6708a07c69335d40b05dbd8de03ca0efcf80300f3b75c439594ba21

See more details on using hashes here.

File details

Details for the file pyfunc_config-1.2.16.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for pyfunc_config-1.2.16.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 70ccb090570d8eb8106f652d7f0261cc25ed8474093623e0183a978ef8c73671
MD5 423718afc3c427de5d1895c7359bea26
BLAKE2b-256 1bab582c83d22c1977f5cae18f8154e94f910d259ee3f07c47c612566ac1c9d6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page