Metadata-Version: 2.1
Name: packagebuilder
Version: 0.1.0
Summary: A library for building python packages into binary or source distributions.
Home-page: https://github.com/sarugaku/packagebuilder
Author: Dan Ryan and Tzu-ping Chung
Author-email: dan@danryan.co
License: ISC License
Keywords: package management,resolver,pipenv,requirementslib,pipfile,dependencies,dependency management,package builder,package building
Classifier: Development Status :: 1 - Planning
Classifier: License :: OSI Approved :: ISC License (ISCL)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: !=3.0,!=3.1,!=3.2,!=3.3,>=2.6
Provides-Extra: tests
License-File: LICENSE

===========================================================================================
packagebuilder: A library for building python packages into binary or source distributions.
===========================================================================================

.. image:: https://img.shields.io/pypi/v/packagebuilder.svg
    :target: https://pypi.org/project/packagebuilder

.. image:: https://img.shields.io/pypi/l/packagebuilder.svg
    :target: https://pypi.org/project/packagebuilder

.. image:: https://api.travis-ci.com/sarugaku/packagebuilder.svg?branch=master
    :target: https://travis-ci.com/sarugaku/packagebuilder

.. image:: https://ci.appveyor.com/api/projects/status/y9kpdaqy4di5nhyk/branch/master?svg=true
    :target: https://ci.appveyor.com/project/sarugaku/packagebuilder

.. image:: https://img.shields.io/pypi/pyversions/packagebuilder.svg
    :target: https://pypi.org/project/packagebuilder

.. image:: https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg
    :target: https://saythanks.io/to/techalchemy

.. image:: https://readthedocs.org/projects/packagebuilder/badge/?version=latest
    :target: https://packagebuilder.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status


Summary
=======

Packagebuilder_ is a library designed for building packages. It takes `InstallRequirement`
objects as inputs and first attempts to build a wheel, but falls back to producing a
source distribution if necessary. Invocation is straightforward:

  ::

    >>> import packagebuilder
    >>> import pip_shims
    >>> ireq = pip_shims.shims.InstallRequirement.from_line('vistir')
    >>> builder = packagebuilder.BuiltDist(ireq, sources=packagebuilder.get_sources())
    >>> dist = builder.build()
    >>> dist.metadata.run_requires
    ['requests', 'six', 'backports.weakref; python_version < "3.3"', 'backports.shutil-get-terminal-size; python_version < "3.3"', 'pathlib2; python_version < "3.5"', "yaspin; extra == 'spinner'", "pytest; extra == 'tests'", "pytest-xdist; extra == 'tests'", "pytest-cov; extra == 'tests'", "pytest-timeout; extra == 'tests'", "hypothesis-fspaths; extra == 'tests'", "hypothesis; extra == 'tests'"]

`Read the documentation <https://packagebuilder.readthedocs.io/>`__.
