Skip to main content

Automated software version generator and replacer based on `year.month.day` as its format.

Project description

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

Usage

./setup.py

from datestamp import stamp

setup(...,
      setup_requires=['datestamp'],
      version=stamp('package_name'),
      ...)

Note

  • New version 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 package itself.

License

Free, No limit what so ever. Read more

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

datestamp-2020.2.9.tar.gz (3.8 kB view hashes)

Uploaded Source

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