# pkutils
## Introduction
pkutils is a Python library that simplifies python module packaging.
With pkutils, you can
- Parse requirements files
- Read text files
- and much more...
## Requirements
pkutils has been tested on the following configuration:
- MacOS X 10.9.5
- Python 2.7.9
pkutils requires the following in order to run properly:
- [Python >= 2.7](http://www.python.org/download) (MacOS X comes with python preinstalled)
## Installation
(You are using a [virtualenv](http://www.virtualenv.org/en/latest/index.html), right?)
sudo pip install pkutils
## Usage
`cat setup.py`
```python
import pkutils
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = list(pkutils.parse_requirements('requirements.txt'))
dependencies = list(pkutils.parse_requirements('requirements.txt', True))
dev_requirements = list(pkutils.parse_requirements('dev-requirements.txt'))
readme = pkutils.read('README.md')
setup(
long_description=readme,
install_requires=requirements,
tests_require=dev_requirements,
dependency_links=dependencies,
classifiers=[
pkutils.LICENSES['MIT'],
...
],
...
)
```
## Scripts
pkutils comes with a built in task manager `manage.py` and a `Makefile`.
### Setup
pip install -r dev-requirements.txt
### Examples
*Run python linter and nose tests*
```bash
manage lint
manage test
```
Or if `make` is more your speed...
```bash
make lint
make test
```
## Contributing
View [CONTRIBUTING.rst](https://github.com/reubano/pkutils/blob/master/CONTRIBUTING.rst)
## License
pkutils is distributed under the [MIT License](http://opensource.org/licenses/MIT).
## Introduction
pkutils is a Python library that simplifies python module packaging.
With pkutils, you can
- Parse requirements files
- Read text files
- and much more...
## Requirements
pkutils has been tested on the following configuration:
- MacOS X 10.9.5
- Python 2.7.9
pkutils requires the following in order to run properly:
- [Python >= 2.7](http://www.python.org/download) (MacOS X comes with python preinstalled)
## Installation
(You are using a [virtualenv](http://www.virtualenv.org/en/latest/index.html), right?)
sudo pip install pkutils
## Usage
`cat setup.py`
```python
import pkutils
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = list(pkutils.parse_requirements('requirements.txt'))
dependencies = list(pkutils.parse_requirements('requirements.txt', True))
dev_requirements = list(pkutils.parse_requirements('dev-requirements.txt'))
readme = pkutils.read('README.md')
setup(
long_description=readme,
install_requires=requirements,
tests_require=dev_requirements,
dependency_links=dependencies,
classifiers=[
pkutils.LICENSES['MIT'],
...
],
...
)
```
## Scripts
pkutils comes with a built in task manager `manage.py` and a `Makefile`.
### Setup
pip install -r dev-requirements.txt
### Examples
*Run python linter and nose tests*
```bash
manage lint
manage test
```
Or if `make` is more your speed...
```bash
make lint
make test
```
## Contributing
View [CONTRIBUTING.rst](https://github.com/reubano/pkutils/blob/master/CONTRIBUTING.rst)
## License
pkutils is distributed under the [MIT License](http://opensource.org/licenses/MIT).
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pkutils-0.6.1-py27-none-any.whl.
File metadata
- Download URL: pkutils-0.6.1-py27-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 2.7
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cf12bb5cf7b777d28d9c5ce18111a200ddfd5c5e507c0d8d68893aa2901851b
|
|
| MD5 |
4790afc7788bc490efa3f4dc3f9d9889
|
|
| BLAKE2b-256 |
378d2f4bf166c2d8c867c2e73bbc63bfcffd0a7be730d37e1f031f4aa6172b3c
|