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

allow wildcards in file-replacements #3

Open
woutervh opened this issue Mar 30, 2023 · 0 comments
Open

allow wildcards in file-replacements #3

woutervh opened this issue Mar 30, 2023 · 0 comments

Comments

@woutervh
Copy link

in pyproject.toml I 'd like to use wildcard instead of hardcoding package-names.

This way I can just copy-paste sections to other pyproject.toml-files:

release-replacements = [
    { file = "docs/changes.md", pattern = "Unreleased \\(YYYY-MM-DD\\)", replace = "{version} ({date})" },
    { file = "src/*/__init__.py", pattern = '__version__ = "{version}"', replace = '__version__ = "{next_version}"' },
]

This now fails with:

> poetry release 
Release package-foo 1.0.1? (yes/no) [no] yes

[Errno 2] No such file or directory: 'src/*/__init__.py'
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

1 participant