-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
Consider a .[dev]
optional extra in setup.cfg
#570
Comments
You could achieve the same with a requirements-dev.txt, no? It can reference the others and perform an editable install of Nox. There is no need to change the package metadata this way. |
That works too 👍🏻 |
I actually like using nox for this. @nox.session(reuse_venv=True)
def dev(session):
session.install("pytest", "black", "isort", "mypy")
session.install("-e", ".")
if session.posargs:
session.run(*session.posargs, external=True) Now you can use it. nox -e dev # builds the environment
. .nox/dev/bin/activate # activates it or... nox -e dev -- bash
# you are now in your environment, only an "exit" away from cleanup |
@ktbarrett Check out the Coming back to this. Are we interested in a |
I made #582 for adding a |
How would this feature be useful?
When developing against nox, I like to create a virtual environment and install the project in editable mode with all the linters and formatters etc. so VSCode helps me out with mypy and things like that. Currently I do something along the lines of:
Some of this probably isn't necessary? But I like to have everything in my environment 🤓
Describe the solution you'd like
If we put a
[dev]
optional extra insetup.cfg
a user can simply dopython -m pip install -e .[dev]
to get everything needed in one easy command.This would look like:
Describe alternatives you've considered
Just continue using my list of commands.
The text was updated successfully, but these errors were encountered: