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

Release files for restricted_pkg_ext 1.1.3

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

Source distribution (sdist)

Source distribution for restricted_pkg_ext 1.1.3
File Size Uploaded
restricted_pkg_ext-1.1.3.tar.gz 12.8 kB Details

Release files / restricted_pkg_ext-1.1.3.tar.gz

Download URL restricted_pkg_ext-1.1.3.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
272e116d633553a6f991a91cbd4504dc0062fedc3c7b1e6ded304ff5ad616139
BLAKE2b-256 checksum
How to use checksums
9d72fab86fbd10b114494ddfd64f870bb37e01c2c1342ae5be79ee5c7333323b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.1.3 This release

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