Skip to content

StyXman/pbt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pbt

image

Python build tool

What?

This tool plans to bring all the development tools for Python into a single, comprehensive and coherent set of commands that will provide a default setup and workflow to make it easy to start, build, test, package and publish a Python project.

All commands will be plugins, you can add and/or implement yours to suit your needs.

pbt will provide the default setup and workflow with sensible defaults, but the idea is that you can tweak every aspect if you need it.

Install pbt

To install pbt run the following commands:

$ git clone https://www.github.com/pebete/pbt
$ cd pbt
$ python3 setup.py install          # add sudo or --prefix at will

and that's all now you can start using pbt.

Basic usage

You can check the power of pbt with this commands :

# makes a flask project from a template
$ pbt new flask

# install deps listed on project.pbt
$ cd myflaskapp
$ pbt install

# runs the flask app from the entry point in project.pbt
$ pbt run

# checks the code with flake8
$ pbt check

# run the tests
$ pbt test

# makes the setup.py file from project.pbt
$ pbt setup

Testing

To run pbt core tests run from pbt base folder:

$ ./pbt.sh test

Dependencies

  • yaml
  • cookicutter
  • xdg
  • flake8

Resources

License

Apache 2.0

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.1%
  • Shell 0.9%