question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Specifying extras when installing the project package

See original GitHub issue

It doesn’t look like this is possible but let me know if it is:

# noxfile.py
import nox
import nox_poetry.patch
from nox.sessions import Session

@nox.session
def tests(session: Session) -> None:
    """Run the test suite."""
    session.install(".[extra]")
    session.install("pytest")
    session.run("pytest")

I think the logic would need to be handled to detect the leading . and then take the eventual wheel path and add on the suffix [extra].

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
epenetcommented, Dec 4, 2020

Thanks @cjolowicz, working perfectly !

0reactions
alexifmcommented, Dec 3, 2020

Thanks @cjolowicz !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Specify extras_require with pip install -e - Stack Overflow
I know that you can do pip install project[extra] when the project is on pypi. And you have to do pip install -e...
Read more >
Help packaging optional application features, using extras?
Hey everyone! Excuse the long post. I've broken it up into sections to hopefully make it easier to jump between sections.
Read more >
pip install extras requires and install requires, but not ... - GitHub
Projects I've worked on typically specify development requirements in a requirements file, not as an extra. However, I find it hard to argue ......
Read more >
Reference for package extras - Apache Airflow
These providers extras are simply convenience extras to install provider packages so that you can install the providers with simple command - including...
Read more >
Advanced Usage of Pipenv - Read the Docs
If you'd like to specify that a specific package only be installed on certain systems, you can use PEP 508 specifiers to accomplish...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found