Skip to main content
https://travis-ci.org/colinhoglund/piprepo.svg?branch=master https://coveralls.io/repos/github/colinhoglund/piprepo/badge.svg?branch=master Latest Version

piprepo

piprepo is a tool for building and synchronizing PEP-503 compliant package repositories.

It currently supports synchronization to a local directory as well as AWS S3.

Installation

pip install piprepo

Usage

Build:

usage: piprepo build [-h] directory

positional arguments:
  directory   Local directory to build

optional arguments:
  -h, --help  show this help message and exit

Sync:

usage: piprepo sync [-h] source destination

positional arguments:
  source       Repository source
  destination  Repository destination

optional arguments:
  -h, --help   show this help message and exit

Building a local package repo

The piprepo build command builds a simple package index from packages contained in the specified directory.

Download some source tarballs or wheels:

pip download -d /tmp/localrepo pyyaml
pip wheel -w /tmp/localrepo pip

Or create a wheel from your source and copy it out (be sure to pip install wheel):

python setup.py sdist bdist_wheel
cp dist/*.whl /tmp/localrepo/

Build a simple package repository from downloaded packages:

piprepo build /tmp/localrepo

Build and sychronize to a destination repo

The piprepo sync command builds a simple package index from packages contained in the local source directory, and syncs packages and index files to the specified destination.

Download some source tarballs or wheels:

pip download -d /tmp/syncrepo pyyaml
pip wheel -w /tmp/syncrepo pip

Synchronize to local directory:

piprepo sync /tmp/syncrepo /tmp/newrepo

Synchronize to an S3 bucket:

piprepo sync /tmp/syncrepo s3://my-bucket/piprepo

Install from a local repo

Once you have built your repo, you can install using:

pip install my-pkg --extra-index-url file:///tmp/localrepo/simple/

Development

Installing development requirements:

pip install -e .[dev]

Metadata

Release files for piprepo 0.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 piprepo 0.1.3
File Size Uploaded
piprepo-0.1.3.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for piprepo 0.1.3
File Interpreter ABI Platform
piprepo-0.1.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 11.8 kB

Release files / piprepo-0.1.3.tar.gz

Download URL piprepo-0.1.3.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
24ef2fd41b573b1c8d62fddcf5ce46e5020b5f85ba0c1a798775f121ca498ea6
BLAKE2b-256 checksum
How to use checksums
12e247fb5f33df50dbe22aa52fc6c64ccd44d27e5795c009f3ad1b83c1d24957
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

Release files / piprepo-0.1.3-py2.py3-none-any.whl

Download URL piprepo-0.1.3-py2.py3-none-any.whl
Size 6.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
018126333c7153f245695ba7e1e382759c45bfae98943fbd0fcca97d70ea8cc0
BLAKE2b-256 checksum
How to use checksums
0ff35a7c536f31f44556e1e69ca6403a02d780785907234bcf06d061037334b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

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