A library for building python packages into binary or source distributions.
Project description
===========================================================================================
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/>`__.
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/>`__.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
packagebuilder-0.1.0.tar.gz
(12.7 kB
view details)
Built Distribution
File details
Details for the file packagebuilder-0.1.0.tar.gz
.
File metadata
- Download URL: packagebuilder-0.1.0.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e85c4e0e994322996b93cd6685c12834d30f3558889154f8e3de8fb1f3fd1e7 |
|
MD5 | 1d954687e7f7e7df3fc7fa75fc2185a4 |
|
BLAKE2b-256 | f47d0457b6b2c9c73dfa7c4f4c5037fdd4bf98ad0183dc0a40f58436177e72f6 |
File details
Details for the file packagebuilder-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: packagebuilder-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc525d06ecd102db23ab421b879d7d27021d784ff933e33e8c411a53af5c9dbe |
|
MD5 | 57d89e6e7ea622ee14045975bc7b9b6d |
|
BLAKE2b-256 | a9a07fcb21fe9db29c14601b6cf5758c74c34c119faacef089faaf4b57b2778c |