Skip to main content

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",
    ],
)

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.1.2.tar.gz (10.4 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for restricted_pkg-1.1.2.tar.gz
Algorithm Hash digest
SHA256 aeb0ed2b8e1ac8fdbf73549357fdc11d3dde62963122bfdb9affda648920981d
MD5 2a30f0da05c2413976c39852668256f1
BLAKE2b-256 ac635ac2d21284e642d9963e63c9bbe415d61f5f545df8c3e92d4dc82fe84495

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.2 This release

1 file

1.1.1

1 file

1.1.0

1 file

1.0.1

1 file

1.0.0

1 file

0.1.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page