Skip to main content

A program to help build, maintain, and release PEP 517-compliant projects.

Project description

bork Build Status PyPI

A frontend for building and releasing PEP 517 compliant projects, including support for generating a ZipApp.

Includes a basic task runner, in the form of bork run <task name>. Tasks are defined in your pyproject.toml file.

Bork requires Python 3.6 or newer.

Installation

$ pip3 install bork

Or download the latest zipapp releases

Usage

Downloading Existing Builds

To download a release from GitHub:

$ bork download gh:duckinator/emanate # download latest .pyz for Emanate
$ bork download gh:duckinator/emanate --directory bin/ # put files in ./bin
$ bork download gh:ppb/pursuedpybear --files '*.tar.gz' # download latest .tar.gz file

To download a wheel from a PyPi release:

$ bork download pypi:emanate 6.0.0 --files '*.whl'

To download a wheel from a release on PyPi's test instance:

$ bork download testpypi:whaledo 1.0.1 --files '*.whl'

Building and Releasing

Assuming a project is PEP 517 compliant, you can just do:

$ bork clean # Remove anything in build/, dist/, *.egg-info/
$ bork build # Build the project
$ bork release # Release to PyPI

ZipApp Support

If you want to build a ZipApp, add this to your pyproject.toml:

[tool.bork.zipapp]
enabled = true
main = "<entrypoint>"

Where <entrypoint> is of the form "module.submodule:function", and may be equivalent to a console_script entrypoint in setup.cfg.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/duckinator/bork. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

The code for Bork is available under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bork-4.0.1.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bork-4.0.1-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file bork-4.0.1.tar.gz.

File metadata

  • Download URL: bork-4.0.1.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

File hashes

Hashes for bork-4.0.1.tar.gz
Algorithm Hash digest
SHA256 3b672bc171c1681da39b5a95a60f3b71ea9d0f4ab527eb87df4141dc61339b98
MD5 41f2fe18ebbe0d16de79911705227746
BLAKE2b-256 0e81a4603006e3bd8bf27e4c8ec8db635a6f59a33701f793046582c9e7239914

See more details on using hashes here.

File details

Details for the file bork-4.0.1-py3-none-any.whl.

File metadata

  • Download URL: bork-4.0.1-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

File hashes

Hashes for bork-4.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 69180daf71bf95a1e8532703354a7617e3e720fedc87812e04b53a60e20824a7
MD5 2711782e7d1d9f9dd24c94deddb020e0
BLAKE2b-256 00e35ac17c5e7e0850f8da5ab646826668cb6cabbdb465ab41ec1950afff464e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page