Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pipenv for managing development dependencies #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,16 @@ brew cask install vagrant
Now you can setup your virtual environment for testing:

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

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

```bash
source molecule/<PLATFORM>.sh
molecule test
pipenv run molecule test
```

Unset the `MOLECULE_` environment variables:
Expand All @@ -56,6 +55,12 @@ Unset the `MOLECULE_` environment variables:
source molecule/unset.sh
```

Check for security vulnerabilities in the dependencies:

```bash
pipenv check
```

What if I just have a question?
-------------------------------

Expand Down
16 changes: 16 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[dev-packages]
ansible = "<2.8.0"
molecule = {extras = ["vagrant"],version = "<3.0.0"}
testinfra = "<2.0.0"
ansible-lint = "<4.0.0"
yamllint = "<2.0.0"
requests = "<3.0.0"
python-vagrant = "*"

[requires]
python_version = "2.7"
Loading