Skip to content

Commit

Permalink
Make parsenvy importable with import parsenvy
Browse files Browse the repository at this point in the history
This commit changes parsenvy importing from `from parsenvy import
parsenvy` to `import parsenvy`.

This entails:
- Updating __init__.py to import everything
- Updating setup.py for PyPI's sake
- Updating tests
- Updating the README
- Updating the CHANGELOG (is this supposed to be in commit messages?)
  • Loading branch information
nkantar committed Jul 31, 2017
1 parent 3b484cb commit 9fa46f1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Parsenvy Changelog

## [1.0.0]

### Changed
- Neater import: `from parsenvy import parsenvy` is now `import parsenvy`.

## [0.1.2]

### Added
Expand All @@ -18,6 +23,7 @@
### Added
- Basic functionality

[1.0.0]: https://github.com/nkantar/Parsenvy/compare/0.1.2...1.0.0
[0.1.2]: https://github.com/nkantar/Parsenvy/compare/0.1.1...0.1.2
[0.1.1]: https://github.com/nkantar/Parsenvy/compare/0.1.0...0.1.1
[0.1.0]: https://github.com/nkantar/Parsenvy/commit/34a3ef490e0c2f3fdb03a471181d04e349118c86
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Examples

.. code-block:: python
>>> from parsenvy import parsenvy
>>> import parsenvy
>>> parsenvy.bool('BOOL_ENV_VAR') # BOOL_ENV_VAR=True
True
>>> parsenvy.int('INT_ENV_VAR') # INT_ENV_VAR=13
Expand Down
1 change: 1 addition & 0 deletions parsenvy/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .parsenvy import *
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

setup(name = 'parsenvy',
packages = ['parsenvy'],
version = '0.1.2',
version = '1.0.0',
description = 'Enviously elegant environment variable parsing',
author = 'Nik Kantar',
author_email = '[email protected]',
url = 'https://github.com/nkantar/Parsenvy',
download_url = 'https://github.com/nkantar/Parsenvy/tarball/0.1.2',
download_url = 'https://github.com/nkantar/Parsenvy/tarball/1.0.0',
keywords = ['environment variables'],
classifiers = [],
license = 'BSD-3-Clause',
Expand Down
2 changes: 1 addition & 1 deletion tests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from parsenvy import parsenvy
import parsenvy
import unittest


Expand Down

0 comments on commit 9fa46f1

Please sign in to comment.