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
File details
Details for the file restricted_pkg-1.1.1.tar.gz
.
File metadata
- Download URL: restricted_pkg-1.1.1.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad83d68abf522de2a65f5748af0619ffab9930b7ba3f2bc70194b9144734e09a |
|
MD5 | af75b56837fab9bedb177ecc9163ebd5 |
|
BLAKE2b-256 | 435e2381d320a90730c0ec6ff9f6d2dda844ed081868502e1b2a8df251c1a9f2 |