This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

About

Re-implementing bluepeppers/pip2arch with some improvements:

  • Supports generating PKGBUILD contained multiple packages.
  • Smarter package license detection.

Installation

  • Install from AUR:
    $ yaourt -S pip2pkgbuild
    
  • Install from PyPi:
    $ pip install pip2pkgbuild
    
  • Install manually:
    $ cp pip2pkgbuild/pip2pkgbuild.py ~/bin/pip2pkgbuild
    $ chmod u+x ~/bin/pip2pkgbuild
    

Usage

usage: pip2pkgbuild [-h] [-v MODULE_VERSION] [-p {python,python2,multi}]
                    [-b PKGBASE] [-n PKGNAME]
                    [--python2-package-name PY2_PKGNAME]
                    [-d [DEPENDS [DEPENDS ...]]]
                    [--python2-depends [DEPENDS [DEPENDS ...]]]
                    [--python3-depends [DEPENDS [DEPENDS ...]]]
                    [-m [MKDEPENDS [MKDEPENDS ...]]] [-o] [-V]
                    module

Generate PKGBUILD file for a Python module from PyPi

positional arguments:
  module                The Python module name

optional arguments:
  -h, --help            show this help message and exit
  -v MODULE_VERSION, --module-version MODULE_VERSION
                        Use the specified version of the Python module
  -p {python,python2,multi}, --python-version {python,python2,multi}
                        The Python version on which the PKGBUILD bases
  -b PKGBASE, --package-basename PKGBASE
                        Specifiy the pkgbase value, the first value in the
                        pkgname array is used by default
  -n PKGNAME, --package-name PKGNAME
                        Specify the pkgname value or the name for the Python 3
                        based package in a package group
  --python2-package-name PY2_PKGNAME
                        Specify the name for the Python 2 based package in a
                        package group
  -d [DEPENDS [DEPENDS ...]], --depends [DEPENDS [DEPENDS ...]]
                        Dependencies for the whole PKGBUILD
  --python2-depends [DEPENDS [DEPENDS ...]]
                        Dependencies for the Python 2 based package in a
                        package group
  --python3-depends [DEPENDS [DEPENDS ...]]
                        Dependencies for the Python 3 based package in a
                        package group
  -m [MKDEPENDS [MKDEPENDS ...]], --make-depends [MKDEPENDS [MKDEPENDS ...]]
                        Dependencies required while running the makepkg
                        command
  -o, --print-out       Print on screen rather than saving to PKGBUILD file
  -V, --version         show program's version number and exit

Examples

  • Generate a Python 2 based PKGBUILD for Django with pkgname “django”:
    $ pip2pkgbuild django -p python2 -n django
    
  • Generate PKGBUILD for Flask, containing both Python 2 and 3 packages with pkgbase “flask”:
    $ pip2pkgbuild flask -p multi -b flask
    
Release History

Release History

0.2.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.2.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.2.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.5

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.4

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.3

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pip2pkgbuild-0.2.2.tar.gz (6.5 kB) Copy SHA256 Checksum SHA256 Source Nov 27, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development 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