-
Notifications
You must be signed in to change notification settings - Fork 127
Add Pipfile to support Pipenv for development #710
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #710 +/- ##
=======================================
Coverage 96.03% 96.03%
=======================================
Files 12 12
Lines 3356 3356
=======================================
Hits 3223 3223
Misses 133 133Continue to review full report at Codecov.
|
kotfu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest adding a note to CONTRIBUTING saying we have support for pipenv. You can probably just take the second half of the text from the body of the PR and paste it into a new section in CONTRIBUTING and call it good.
Also: - Made various other updates to CONTRIBUTING.md
…nt it taking a long time when using a venv
|
I added a section to CONTRIBUTING.md with info on our support for |
kotfu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me.
This PR adds a Pipfile for using Pipenv for development.
Pipenvessentially combines the features ofpipandvirtualenvinto a single tool. Adding this Pipfile makes it extremely easy to setup acmd2development environment usingpipenv.Also:
Pipfile.lockand.venvto .gitignore sincecmd2is a library, not an application and as such we do not intend to usepipenvfor deployment purposes, only developmentpylintwithflake8in the dev section since we are usingflake8for linting as part of our CI processPipenvflake8to exclude unnecessary directories so thatflake8doesn't take forever when using a virtual environment embedded in thecmd2directoryTo create a virtual environment and install everything needed for
cmd2development, do the following from a GitHub checkout:To create a new virtualenv, using a specific version of Python you have installed (and on your PATH), use the --python VERSION flag, like so:
Then you can enter that virtual environment with: