Skip to main content

A simple setup.py helper for private repositories

Project description

This python package provide a simple wrapper around Distribute to handle private projects. It is mostly intended for use in a package’s setup.py script.

It provides the following features:

  • Using a private package index when fetching package dependencies during python setup.py install

  • Restricting the register and upload commands to a private package index, or to disable them completely

  • Easy support for authenticated URLs when accessing the index.

Compatibility

The restricted_pkg package requires Distribute, and supports Python 2.6 and later (including Python3).

Usage

In your setup.py script, ensure you have the following lines:

from setuptools import find_packages
from restricted_pkg import setup

setup(
    ...,
    private_repository="https://@myrepo.example.tld/path/to/repo",
    install_requires=[
        "distribute",
        "restricted_pkg",
    ],
)

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

restricted_pkg-1.0.0.tar.gz (10.1 kB view details)

Uploaded Source

File details

Details for the file restricted_pkg-1.0.0.tar.gz.

File metadata

File hashes

Hashes for restricted_pkg-1.0.0.tar.gz
Algorithm Hash digest
SHA256 87ab775e01af9fecd6ebf885a2de47b67fea7fd702cb534c70d5e156372d137b
MD5 b1fcbaba17cfeb66fa07658497d0d263
BLAKE2b-256 e71a08f42b547d8d2fb6c54567e8ae3a2f329e4f3035994fa48af2d743e99acf

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