0.1.3 • Published 6 years ago
generator-py-struct v0.1.3
Py-struct
Introduction
py-struct is a yeoman-generator for Python projects using setuptools. Projects created with py-struct are ready for publication to pypi and conda. The generator creates a package barebone that support:
- a standard
setup.py,MANIFEST.in. - project automationg
tox. - static code analysis and reports using
pylint. - a unit-test suite using
pytest/unittest, build.shforcondapackages,- documentation with
readthedocs.ioandsphinx, - custom README.md, and VERSIONS.md files,
.gitignore,.gitattributes,coveragerc,
The resulting folder-structure looks like this:
.
├── build.sh
├── credentials.json
├── docs
│ ├── Makefile
│ └── source
│ ├── conf.py
│ ├── examples.rst
│ ├── index.rst
│ ├── modules.rst
│ └── tutorial.rst
├── emptyproject.py
├── gitattributes
├── gitignore
├── __init__.py
├── LICENSE
├── MANIFEST.in
├── prepare_environment.sh
├── pylintrc
├── README.rst
├── run_test.sh
├── setup.py
├── test.py
├── tree
└── VERSIONS.mdInstallation
Yeoman comes with npm, so install it first and then call:
npm install -g yo
npm install -g generator-py-structOnce you have the package, you can create a scaffold using:
yo py-structThis builds the skeleton. Afterwards modify the sources and documentation and build both using:
./prepare_environment.sh
cd docs && make htmlAuthor
- Cristian Rincón cristian.o.rincon.b@gmail.com