Skip to main content

bobtemplates to create python packages with pbr

Project description

Creating python packages that use pbr via mr.bob

Install

$ pip install bobtemplates.pypbr

Usage

mrbob bobtemplates.pypbr:package
...
mrbob bobtemplates.pypbr:namespace_package

Variables

Set in ~/.mrbob

[variables]
user.name = My Name
user.email = my.name@example.com
user.homepage = http://www.example.com/

You will be asked for the relevant values anyway, but the default values of the fields will be the defined ones.

If these variables are not defined, they are queried via git. mr.bob will ask you for this variables, and recommend the configured ones for default.

There are more variables you could configure, and which are used in the header of setup.py. Again this could be done in ~/.mrbob or git.

[variables]
...
user.copyright_name = Your Company
user.copyright_year = 2014

If user.copyright_name is not set, author name is used. If user.copyright_year is not set, the current year is used.

Templates

python_package

Usual python package with pbr

python-simple_package
python-simple_package/.gitignore
python-simple_package/LICENSE
python-simple_package/MANIFEST.in
python-simple_package/README.rst
python-simple_package/setup.cfg
python-simple_package/setup.py
python-simple_package/simple_package
python-simple_package/simple_package/__init__.py

python_namespace_package

python namspace package with pbr

python-simple-namespace
python-simple-namespace/.gitignore
python-simple-namespace/LICENSE
python-simple-namespace/MANIFEST.in
python-simple-namespace/README.rst
python-simple-namespace/setup.cfg
python-simple-namespace/setup.py
python-simple-namespace/simple
python-simple-namespace/simple/__init__.py
python-simple-namespace/simple/namespace
python-simple-namespace/simple/namespace/__init__.py

Known issues

Recommendation of name etc. from git does not work on python < 2.7

mr.bob does not install as a requirement with pip < 6. Consider to mr.bob by hand.

$ pip install mr.bob
$ pip install bobtemplates.pypbr

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

bobtemplates.pypbr-0.3.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

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

bobtemplates.pypbr-0.3-py2.py3-none-any.whl (22.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file bobtemplates.pypbr-0.3.tar.gz.

File metadata

File hashes

Hashes for bobtemplates.pypbr-0.3.tar.gz
Algorithm Hash digest
SHA256 22890e8f7ddb345bba1f43f0f7bb3be9a9647cd45cfcbcf1383955bdf453fa75
MD5 52ca208399ae6d4bcb855c1b237b1d2b
BLAKE2b-256 154de411301815e9f932c695bf237dba5908a1797f39501722a49f6e247bef65

See more details on using hashes here.

File details

Details for the file bobtemplates.pypbr-0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for bobtemplates.pypbr-0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2626beb7bb83b825df97a5400d573970676815fd0e1365588b3853930383433b
MD5 9c9260e08b160c4e45bc14f2855487a7
BLAKE2b-256 60c024630aa88ca31e3635b36b9046d3e7d5add5cf7f71b7c5e44fc35fbae29a

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