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

Best place to specify package optional dependencies #181

Open
nstarman opened this issue Jan 25, 2024 · 1 comment
Open

Best place to specify package optional dependencies #181

nstarman opened this issue Jan 25, 2024 · 1 comment

Comments

@nstarman
Copy link

In the tox test https://github-actions-workflows.openastronomy.org/en/stable/tox.html#test-a-python-package-using-tox, how does one specify optional dependencies. e.g. [test] in pip install .[tests]

@ConorMacBride
Copy link
Member

Hi @nstarman, the tox workflow itself doesn't install the package being tested – it's installed by tox. A list of dependency groups can be specified in the tox configuration, e.g., https://github.com/astropy/astropy/blob/954302f3a01c77c7294bb488eb742ca3d59b264b/tox.ini#L108.

Maybe you have some tox plugins that need to be installed before tox is called? These can be passed to the toxdeps input. There's no way to extract them from a dependency group unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants