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

Implement --bound-options to select one ore more additional pyproject dependencies. #79

Closed
flexatone opened this issue Nov 9, 2024 · 0 comments · Fixed by #81
Closed

Comments

@flexatone
Copy link
Collaborator

flexatone commented Nov 9, 2024

Support optional additional dependencies in pyproject.toml

You may want to make some of your dependencies optional, if they are only needed for a specific feature of your package. In that case, put them in optional-dependencies.

[project.optional-dependencies]
gui = ["PyQt5"]
cli = [
"rich",
"click",
]

Each of the keys defines a “packaging extra”. In the example above, one could use, e.g., pip install your-project-name[gui] to install your project with GUI support, adding the PyQt5 dependency.

this should also work for poetry style groups

// [tool.poetry.group.dev.dependencies]
// pre-commit = ">=2.10"
// setuptools = { version = ">=60", python = "<3.10" }

// [tool.poetry.group.test.dependencies]
// coverage = ">=7.2.0"
// deepdiff = ">=6.3"
// httpretty = ">=1.1"
@flexatone flexatone changed the title Impement --bound-option to select one ore more additional pyproject dependencies. Implement --bound-options to select one ore more additional pyproject dependencies. Nov 9, 2024
@flexatone flexatone linked a pull request Nov 11, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant