skip to navigation
skip to content

Not Logged In

restricted_pkg 0.1.0

A simple setup.py helper for private repositories

Latest Version: 1.1.1

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.

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",
    ],
)
 
File Type Py Version Uploaded on Size
restricted_pkg-0.1.0.tar.gz (md5) Source 2012-08-29 9KB
  • Downloads (All Versions):
  • 12 downloads in the last day
  • 107 downloads in the last week
  • 452 downloads in the last month