Skip to main content

Writes Homebrew stanzas for pypi packages

Project description

Build Status Code Health PyPI page MIT license

Invoked like poet foo for some package foo which is presently installed in sys.path, determines which packages foo and its dependents depend on, downloads them from pypi and computes their checksums, and spits out Homebrew resource stanzas.

poet -f foo will give you a complete Homebrew formula.

poet -s foo will write a resource stanza for a single package foo, which does not need to be installed, without considering its dependencies.

poet will use the versions of the packages that you presently have installed. If a package it wants to reference is not installed, the latest version on pypi will be downloaded and checksummed and its dependencies will not be considered.

The easiest way to use poet is to create a virtualenv, use pip or setuptools to install the target package and its dependencies in the virtualenv, and then pip install homebrew-pypi-poet and run poet inside the virtualenv.

Usage is like:

usage: poet [-h] [--single package [package ...] | --formula package |
                  --resources package]

Generate Homebrew resource stanzas for pypi packages and their dependencies.

optional arguments:
  -h, --help            show this help message and exit
  --single package [package ...], -s package [package ...]
                        Generate a resource stanza for one or more packages,
                        without considering dependencies.
  --formula package, -f package
                        Generate a complete formula for a pypi package with
                        its recursive pypi dependencies as resources.
  --resources package, -r package
                        Generate resource stanzas for a package and its
                        recursive dependencies (default).

License

homebrew-pypi-poet is offered under the MIT license.

Contributors

homebrew-pypi-poet is maintained by Tim D. Smith. Robson Peixoto, Alessio Bogon, and Julien Maupetit are thanked for their helpful contributions!

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

homebrew-pypi-poet-0.7.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

homebrew_pypi_poet-0.7.1-py2.py3-none-any.whl (6.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file homebrew-pypi-poet-0.7.1.tar.gz.

File metadata

File hashes

Hashes for homebrew-pypi-poet-0.7.1.tar.gz
Algorithm Hash digest
SHA256 8b3bba0b5f49ca76453464a2aa5c7cc19a8e85df141c86c98e1998796bedeafc
MD5 f8e4f4b8697f7083ddc16b9c6ccf3ff3
BLAKE2b-256 186dc6d1543d2272696f22893eff382eb4b7d2594c983f87e7786abf6ad3ec9e

See more details on using hashes here.

File details

Details for the file homebrew_pypi_poet-0.7.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for homebrew_pypi_poet-0.7.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ab1596adbc82fbff9160cc42d1095f0428bc20bd189b1be3896d1ac36add42f7
MD5 9194c8cf2e11372a5930ded8396fb966
BLAKE2b-256 6e3fcde9fbec5aa61b98dbfdea8b5457cb5e7eb64b2826e52bfd31bfe61f3bb8

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