Skip to main content

Setuptools plugin for finding files under Mercurial version control.

Project description

setuptools_hg is a plugin for setuptools that enables setuptools to find files under the Mercurial version control system.

It uses the Mercurial Python library by default and falls back to use the command line programm hg(1). That’s especially useful inside virtualenvs that don’t have access to the system wide installed Mercurial lib (e.g. when created with --no-site-packages).

Usage

Here’s an example of a setup.py that uses setuptools_hg:

from setuptools import setup, find_packages
setup(
    name="HelloWorld",
    version="0.1",
    packages=find_packages(),
    setup_requires=["setuptools_hg"],
)

If you run this setup.py setuptools will automatically download setuptools_hg to the directory where the setup.py is located at (and won’t install it anywhere else) to get all package data files from the Mercurial repository.

Options

Set the HG_SETUPTOOLS_FORCE_CMD environment variable before running setup.py if you want to enforce the use of the hg command.

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

setuptools_hg-0.1.3.tar.gz (10.1 kB view details)

Uploaded Source

File details

Details for the file setuptools_hg-0.1.3.tar.gz.

File metadata

File hashes

Hashes for setuptools_hg-0.1.3.tar.gz
Algorithm Hash digest
SHA256 8f8ee85b7b35bd0a34ce1e311e972e6d217510b33a40c8ac357ff8f0d1096337
MD5 bc16bb4eedc0a9ccfaa448a419366961
BLAKE2b-256 e445f499f5393727b74e6553089c846c4d0a22e608d8a0241cb6beef072eaff2

See more details on using hashes here.

Provenance

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