Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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

Release History

This version
History Node

1.1.2

History Node

1.1.1

History Node

1.1.0

History Node

1.0.1

History Node

1.0.0

History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
restricted_pkg-1.1.2.tar.gz (10.4 kB) Copy SHA256 Checksum SHA256 Source Jun 23, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting