This project has been archived by its maintainers, and is no longer receiving any updates.
DateStamp
Automatically generates new software version stamp as year.month.day format.
Install, update & uninstall (Alpha)
Use pip to install, upgrade & uninstall:
pip install datestamp
pip install --upgrade datestamp
pip uninstall datestamp
Example #1
# ./pyproject.toml
[build-system]
requires = ["datestamp"]
# ./setup.py
from datestamp import stamp
setup(...,
version=stamp('package_name'), # '2020.2.9'
...)
Example #2
# ./datestamp.py
...
# ./MANIFEST.in
include datestamp.py
# ./setup.py
from datestamp import stamp
setup(...,
version=stamp('package_name'), # '2020.2.9'
...)
Options
version=stamp('package_name') # '2020.2.9'
version=stamp('package_name', '.post1') # '2020.2.9.post1'
version=stamp('package_name', 'rc1') # '2020.2.9rc1'
Note
Make sure to pre-install datestamp before running python3 setup.py sdist. This is only required for publishers, for users it will be build at setup time (but not installed).
New date stamp is only generated when you are ready to publish your project by python3 setup.py sdist or current version date is used.
When new date is generated at setup(version=stamp(...)) it also replaces __version__ line with __version__ = '2020.2.9' in __init__.py file.
Works for One-Off script file as well like datestamp.py package itself.
License
Free, No limit what so ever. Read more
Metadata
Release files for datestamp 2020.2.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| datestamp-2020.2.10.tar.gz | 4.1 kB | Without provenance | Details for datestamp-2020.2.10.tar.gz |
Release files / datestamp-2020.2.10.tar.gz
| Download URL | datestamp-2020.2.10.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
127217e3576aec6f87365c9e8394950f09f0f8df7b124b1b09dda500bf1a1d0b
|
|
BLAKE2b-256 checksum How to use checksums |
05f52ec8af6a5f7f3e81eb5f5171794995e198ba1da390ce0d537a5b604e89db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.8.1
|
Security for datestamp 2020.2.10
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.