Skip to main content

Lib code deriving subproject versions from tags on git monorepos.

Project description

Version:
0.0.2a8
updated:

2018-05-24T00:50:38.794096

Documentation:

file:///D:/Work/polyvers.git/build/sphinx/html/usage.html#usage-of-polyversion-library

repository:

https://github.com/JRCSTU/polyvers

pypi-repo:

https://pypi-hypernode.com/project/polyversion/

license:

MIT License

The python 2.7+ library needed by (sub-)projects managed by polyvers cmd to derive their version-ids on runtime from Git.

Quickstart

There are 3 ways to use this library:
  • through its Python-API (to dynamically version your project);

  • through its barebone cmdline tool: polyversion (installation required);

  • through the standalone executable wheel: pvlib/bin/pvlib.whl (no installation, but sources required; behaves identically to polyversion command).

API usage

currentmodule: polyversion

An API sample of using func(polyversion.polyversion()) in a myproject.git/setup.py file:

...
setup(
    name='myproject',
    version=polyversion('myproject')
    ...
)

An API sample of using also func(polytime()) in a myproject.git/myproject/__init__.py file:

...
__version__ = polyversion()  # project assumed equal to module-name 'myproject'
__updated__ = polytime()
...

Console usage

A sample of command-line usage is given below:

user@host:~/ $ polyversion --help
Describe the version of a *polyvers* projects from git tags.

USAGE:
    polyversion [PROJ-1] ...

user@host:~/ $ polyversion polyversion
polyversion: 0.0.2a7+37.g0707a09
polyvers: 0.0.2a9.post0+7.g0707a09

user@host:~/polyvers.git (dev) $ polyversion --help
Describe the version of a *polyvers* projects from git tags.

USAGE:
    polyversion [PROJ-1] ...

A sample of the standalone wheel:

user@host:~/ $ cd ~/polyvers.git
user@host:~/polyvers.git (master) $ polyversion polyversion
polyversion: 0.0.2a7+37.g0707a09

For the rest, consult the polyvers project: https://polyvers.readthedocs.io

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

polyversion-0.0.2a8-py2.py3-none-any.whl (8.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file polyversion-0.0.2a8-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for polyversion-0.0.2a8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9e9718336432bc2678877a914dc920d04d5c1443d1b8ef68191541804e4844de
MD5 86d50be269da4c607e517fe33f2b8703
BLAKE2b-256 7d6dfb63f6f7a95c2fce88958be38ccdeb322047b1705e8b1b8d4245850bf5ea

See more details on using hashes here.

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