Extracts the version from a Python file
Project description
This is a project created with the Cookiecutter Python Library template and ready to be used for creating a new Python library.
Just check the readme and docs, to adapt them to your project, and it is done.
Remember that if you want to create a new project it is better just reusing the Cookiecutter Python Library template, as this will set up the initial project according to a few pieces of data it will ask for.
Features
Travis configuration file
Customized setup.py module to minimize configuration, and using tox for the tests
Docs using Sphinx and the Sphinx Docs Theme
Prepared to run tests through tox
Prepared to run tests on Python 2 and 3
Prepared to run tests on pypy and pypy 3
Prepared to run coverage tests and integrate with Coveralls
Prepared to run tests for the Sphinx documentation
Documentation
Documentation sources are included with the project, and used to generate the documentation sites:
The latest docs are always generated for the latest release, kept in the ‘master’ branch
The development docs are generated from the latest code in the ‘develop’ branch
You can also create the documentation from the source files, kept in the ‘docs’ folder, with the help of Sphinx. For this use the makefile, or the make.bat file, contained on that folder.
Prerequisites
The project has been tested in the following versions of the interpreter:
Python 3.4
Python 3.5
Python 3.6
Pypy 3
All other dependencies are indicated on the requirements.txt file.
These can be installed with:
$ pip install --upgrade -r requirements.txt
Installing
The project is offered as a Pypi package, and using pip is the preferred way to install it. For this use the following command;
$ pip install bernardomg.version-extractor
If needed, manual installation is possible:
$ python setup.py install
Usage
The application has been coded in Python, and does not require any particular framework.
Testing
The tests included with the project can be run with:
$ python setup.py test
This will delegate the execution to tox.
It is possible to run just one of the test profiles, in this case the py36 profile:
$ python setup.py test -p "py36"
Collaborate
Any kind of help with the project will be well received, and there are two main ways to give such help:
Reporting errors and asking for extensions through the issues management
or forking the repository and extending the project
Issues management
Issues are managed at the GitHub project issues tracker, where any Github user may report bugs or ask for new features.
Getting the code
If you wish to fork or modify the code, visit the GitHub project page, where the latest versions are always kept. Check the ‘master’ branch for the latest release, and the ‘develop’ for the current, and stable, development version.
License
The project has been released 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
Hashes for bernardomg.version_extractor-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | df00fbac7c478cd6834ba0af2e6ec3f097e907d3f2763968b79b3d19e49b8407 |
|
MD5 | 7f2908cfada8b05bfdd18005ac08d9ad |
|
BLAKE2b-256 | ee966ae76644a53074154fc0749c502204318f8ed3b5880b8baa971224d77c22 |