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

Show sources in rye show and support inline tables #631

Merged
merged 2 commits into from
Feb 9, 2024

Conversation

mitsuhiko
Copy link
Collaborator

Add support for inline tables for sources. Now the following two formats are equivalent:

[[tool.rye.sources]]
name = "test"
url = "https://test.pypi.org/simple/)"

[tool.rye]
sources = [
  { name = "test", url = "https://test.pypi.org/simple/)" }
]

Additionally rye show now spits out which sources are configured:

$ rye show
project: x
...
configured sources:
  default (index: https://pypi.org/simple/)
  test (index: https://test.pypi.org/simple/)

Fixes #485

@mitsuhiko mitsuhiko merged commit 96c9dfd into main Feb 9, 2024
12 checks passed
@mitsuhiko mitsuhiko deleted the feature/better-toml branch February 9, 2024 22:13
j178 pushed a commit to j178/rye that referenced this pull request Feb 18, 2024
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 this pull request may close these issues.

TOML inline table list is not working.
1 participant