This release is a pre-release and may not be stable for production use.
This module is a simple drop-in to support setup.py in mercurial based projects.
Its supposed to generate version numbers from mercurials meta-data.
It uses 4 strategies to archive its task:
try to directly ask hg for the meta-data
try to infer it from the .hg_archival.txt file
try to use the cache file if it exists
try to read the version from the ‘PKG-INFO’ file sdists contain (this is a nasty abuse)
The most simple usage is:
from setuptools import setup
from hgdistver import get_version
setup(
...,
version=get_version(),
...,
)
get_version takes the optional argument cachefile, which causes it to store the version info in a python script instead of abusing PKG-INFO from a sdist.
Release files for hgdistver 0.8.dev1-3c3e5fc8d549
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hgdistver-0.8.dev1-3c3e5fc8d549.tar.gz | 3.7 kB | Details |
Release files / hgdistver-0.8.dev1-3c3e5fc8d549.tar.gz
| Download URL | hgdistver-0.8.dev1-3c3e5fc8d549.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab78c163adb9c949383cb6565b8c6779d4cba1ec124a644fd833650f0ab103fb
|
|
BLAKE2b-256 checksum How to use checksums |
f86f99f6accc794bb9f3ecea540e3376fbfc144cefc6cfc4d21199913c65d3ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |