Calculate package versions following LSST code conventions.
Project description
lsst_versions
This package is used to calculate a version dynamically from a Git repository when it is being built by pip. It is not needed for EUPS-only packages, and the calculated package version will be pip-compatible and thus differ from that produced by EUPS’s pkgautoversion. It avoids the need to hard-code and continually update a version string. It assumes the use of LSST DM release and tagging practices.
lsst-versions 1.6.0 2025-01-21
New Features
Adds support for [Hatchling](https://hatch.pypa.io/latest/config/build/#build-system). Implements a Hatch “version source plugin” interface. (DM-48515)
Miscellaneous Changes of Minor Interest
Refreshes development and build environment specifications.
Removes retired pytest-openfiles testing dependency.
Uses secure tarfile data filter when supported by Python.
lsst-versions 1.5.0 2023-11-29
Package has been verified to work with python 3.12.
lsst-versions 1.4.0 2023-02-08
New Features
The calculation of the developer version has been modified. Previously alpha releases were constructed from weekly release tags. This approach, 26.0.0a20230500, resulted in confusion in PyPI installs once a formal release was made. To simplify installations with pip weekly developer release versions are now of the form 25.2023.500 – the weekly is encoded in the minor and patchlevel parts of the version and these are now releases derived from the release currently being worked (and not alphas towards the next release).
lsst-versions 1.3.0 2022-07-10
API Changes
Added a new function get_lsst_version. This allows to get a version string of a GitHub or metadata directory.
lsst-versions 1.2.0 2022-06-27
New Features
Now falls back to looking at PKG-INFO file if no git version can be determined. This allows a source distribution to be built.
The find_lsst_version API can now run without any parameters.
lsst-versions 1.1.0 2022-06-14
New Features
Added a new lsst-version command line that can be used to determine the version of a package. This command can also be used to create a version file in the package using the configuration found in a pyproject.toml file. (DM-35064)
API Changes
Renamed the find_dev_lsst_version function to find_lsst_version to reflect the fact that it does more than finding developer versions. (DM-35064)
Miscellaneous Changes of Minor Interest
Replaced some debug prints with logging.
Significantly improved the test coverage. (DM-35064)
lsst-versions 1.0.0 2022-04-18
New Features
Initial release of lsst-versions package. This package can be used as a setuptools entry point to determine the version of a package from the Git repository. (DM-32408)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lsst_versions-1.6.0.tar.gz.
File metadata
- Download URL: lsst_versions-1.6.0.tar.gz
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2847b041e788dfa9e0bc453b2945442d5238a2a81bbfcd76f80233754d144ae6
|
|
| MD5 |
63e7af4fa4b56bbc8e7ae660a22ab691
|
|
| BLAKE2b-256 |
8e01efb1fb46ad41605e1a37c63c74540ae5fa5612a52f59a6d763b737c99686
|
File details
Details for the file lsst_versions-1.6.0-py3-none-any.whl.
File metadata
- Download URL: lsst_versions-1.6.0-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a6116f8e23c51b332a5d73244fd52482ca9b741c6b0eed0286bb1dd78f52cf1
|
|
| MD5 |
f670468fd4dcae0d48e160889c068a63
|
|
| BLAKE2b-256 |
c2e36c8973233b8c370cd279bb6a9bd4421a2fe1a2d53ff6b26049bc50f2caed
|