Skip to content

Commit 57653a3

Browse files
committed
Use pipenv for managing development dependencies
* Add `Pipfile[.lock]` * Update `CONTRUBUTING.md` instructions * Drop the `test-requirements.txt` file (no longer needed)
1 parent f17776a commit 57653a3

File tree

4 files changed

+661
-69
lines changed

4 files changed

+661
-69
lines changed

CONTRIBUTING.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,16 @@ brew cask install vagrant
3737
Now you can setup your virtual environment for testing:
3838

3939
```bash
40-
virtualenv --python=$(which python2.7) .venv
41-
source .venv/bin/activate
42-
pip install --no-deps -r tests/test-requirements.txt
40+
pip install -U pipenv
41+
pipenv install --dev
4342
```
4443

4544
Run the full lifecycle test on a given `<PLATFORM>`. Allowed values for
4645
`<PLATFORM>` are `mojave`, `highsierra`, `sierra`, `elcapitan`, and `yosemite`.
4746

4847
```bash
4948
source molecule/<PLATFORM>.sh
50-
molecule test
49+
pipenv run molecule test
5150
```
5251

5352
Unset the `MOLECULE_` environment variables:
@@ -56,6 +55,12 @@ Unset the `MOLECULE_` environment variables:
5655
source molecule/unset.sh
5756
```
5857

58+
Check for security vulnerabilities in the dependencies:
59+
60+
```bash
61+
pipenv check
62+
```
63+
5964
What if I just have a question?
6065
-------------------------------
6166

Pipfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[dev-packages]
7+
ansible = "<2.8.0"
8+
molecule = {extras = ["vagrant"],version = "<3.0.0"}
9+
testinfra = "<2.0.0"
10+
ansible-lint = "<4.0.0"
11+
yamllint = "<2.0.0"
12+
requests = "<3.0.0"
13+
python-vagrant = "*"
14+
15+
[requires]
16+
python_version = "2.7"

0 commit comments

Comments
 (0)