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.org/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 hashes)

Uploaded Python 2 Python 3

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