Skip to main content

setuptools-us4us

Common setuptools extensions used by the us4us Python packages, e.g. determining the package version from the state of the git repository (release tags and branches).

Installation

pip install setuptools_us4us

Usually it is needed only at build time, e.g. in the project's pyproject.toml:

[build-system]
requires = ["setuptools>=61", "wheel", "setuptools_us4us"]
build-backend = "setuptools.build_meta"

and setup.py:

import setuptools
from setuptools_us4us import setup_version

setuptools.setup(
    name="my_package",
    version=setup_version("my_package"),  # also writes my_package/version.py
    ...
)

Repository structure

  • setuptools_us4us/versioning.py: git-based version numbers (get_version, get_version_for_release_branch, find_parent_release_branch):
    • tagged commit va.b.c -> a.b.c,
    • release branch va.b.x -> a.b.(c+1).devYYYYMMDD,
    • feature branch -> parent release branch version + branch name as local label, e.g. 0.7.0.dev20260823+ref.mvandv.194.
  • setuptools_us4us/setup_helpers.py: helpers for setup.py (setup_version, write_version_file, read_version_file, is_dev_version).
  • setuptools_us4us/cmd.py: running shell commands (run_cmd).

Metadata

Release files for setuptools-us4us 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for setuptools-us4us 0.1.0
File Size Uploaded Provenance
setuptools_us4us-0.1.0.tar.gz 6.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for setuptools-us4us 0.1.0
File Interpreter ABI Platform
setuptools_us4us-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.8 kB

Release files / setuptools_us4us-0.1.0.tar.gz

Download URL setuptools_us4us-0.1.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
91481fe6a3a8b08390d733d757aa2e23174c412115b0fbc0ce8b823fb948e416
BLAKE2b-256 checksum
How to use checksums
db034934a5419fa5f194ed9807a5ce1aa8d89d709d4dfc1fb82ba132e625538a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.16

Release files / setuptools_us4us-0.1.0-py3-none-any.whl

Download URL setuptools_us4us-0.1.0-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c06391ac3d379e315f12e8c51785d14622c4f69b5f50e167f06ee33a1cc58176
BLAKE2b-256 checksum
How to use checksums
0413946f10a6de6a86bc016a0d7d7ccf153015a16cdf0eff6e6018a75a6000a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.16

Security for setuptools-us4us 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page