Skip to content

Commit

Permalink
feat(pipenv) Update client to use pipenv to manage dependencies.
Browse files Browse the repository at this point in the history
Pipenv is the recommended tool for managing dependencies in modern Python
packages. It utilizes pip under the hood, adding version pinning like any
sane dependency manager.

Note that this change only impacts individuals working *on* lob-python; it
does not change the usage pattern/practice for consumers of the package.
  • Loading branch information
nyergler committed May 1, 2018
1 parent 75cc6b7 commit 555dd67
Show file tree
Hide file tree
Showing 5 changed files with 220 additions and 9 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ python:
- '3.5'
- '3.6'
- 'pypy'
before_install:
- pip install pipenv
install:
- pip install -r requirements.txt
- pipenv install --dev
script:
- nosetests --with-coverage --cover-package=lob
- pipenv run nosetests --with-coverage --cover-package=lob
after_success:
- coveralls
notifications:
Expand Down
15 changes: 15 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

[packages]
requests = "*"

[dev-packages]
nose = "*"
"flake8" = "*"
coverage = "*"
coveralls = "*"

[requires]
188 changes: 188 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,23 @@ There are simple scripts to demonstrate how to create all the core Lob objects (

## Testing

Install all requirements with `pip install -r requirements.txt`.
lob-python uses [Pipenv](https://docs.pipenv.org/) to manage development environments and dependencies.

You install all the development requirements by running

```shell
$ pipenv install --dev
$ pipenv shell
```

You can run all tests with the command `nosetests` in the main directory.

```shell
$ nosetests
```

=======================

Copyright © 2013 Lob.com
Copyright © 2013-2018 Lob.com

Released under the MIT License, which can be found in the repository in `LICENSE.txt`.
5 changes: 0 additions & 5 deletions requirements.txt

This file was deleted.

0 comments on commit 555dd67

Please sign in to comment.