Skip to main content

I need a new maintainer!

Darcsver needs a new maintainer. The original author, Zooko Wilcox-O’Hearn, is not planning to make further changes to it unless there is some unexpected need to do so.

What Does It Do

Create files containing version numbers, based upon the latest darcs release tag.

If your source tree is coming from darcs (i.e. it is in a darcs repository), this tool will determine the most recent release tag, count the patches that have been applied since then, and compute a version number to be written into _version.py (and optionally other version files). This version number will be available by doing:

from your_package_name import __version__

Source trees that do not come from darcs (e.g. release tarballs, nightly tarballs) and are not within a darcs repository should instead, come with a _version.py that was generated before the tarball was produced. In this case, this tool will quietly exit without modifying the existing _version.py .

‘release tags’ are tags in the source repository that match the following regexp:

^your_package_name-(d+)(.(d+)(.(d+))?)?((a|b|c|rc)(d+))?

Installation

With easy_install:

easy_install darcsver

Alternative manual installation:

tar -zxvf darcsver-X.Y.Z.tar.gz cd darcsver-X.Y.Z python setup.py install

Where X.Y.Z is a version number.

Alternative to make a specific package use darcsver without installing darcsver into the system:

Put “setup_requires=[‘darcsver’]” in the call to setup() in the package’s setup.py file.

Usage

There are two ways to use this: the command-line tool and the setuptools plugin.

To use the command-line tool, execute it as:

darcsver $PACKAGE_NAME $PATH_TO_VERSION_PY

To use the setuptools plugin (which enables you to write “./setup.py darcsver” and which cleverly figures out where the _version.py file ought to go), you must first package your python module with setup.py and use setuptools.

The former is well documented in the distutils manual:

http://docs.python.org/dist/dist.html

To use setuptools instead of distutils, just edit setup.py and change

from distutils.core import setup

to

from setuptools import setup

References

How to distribute Python modules with Distutils:

http://docs.python.org/dist/dist.html

Setuptools complete manual:

http://peak.telecommunity.com/DevCenter/setuptools

Thanks to Yannick Gingras for providing the prototype for this README.rst.

Release files for darcsver 1.7.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for darcsver 1.7.4
File Size Uploaded
darcsver-1.7.4.tar.gz 8.9 kB Details

Release files / darcsver-1.7.4.tar.gz

Download URL darcsver-1.7.4.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
66b1864999764459a61fb9048802309cde12b141cb6e1ef1c8c46fdce56061f9
BLAKE2b-256 checksum
How to use checksums
6d9f8c9ea1786f6e3380bad6717438faae1445e1e2757f9ed3ef1621844c44d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.7.4 This release

1 release file

1.7.3

1 release file

1.7.2

1 release file

1.7.1

1 release file

1.7.0

1 release file

1.6.3

1 release file

1.6.1

1 release file

1.5.7

1 release file

1.5.6

1 release file

1.5.5

1 release file

1.5.4

1 release file

1.5.3

1.5.2

1 release file

1.5.1

1 release file

1.5.0

1 release file

1.4.0

1 release file

1.3.1

1 release file

1.3.0

1 release file

1.2.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page