Git Product home page Git Product logo

piprepo's Introduction

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]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.