-
Notifications
You must be signed in to change notification settings - Fork 1
Add support for Upstream-Version-{Prefix,Suffix} #4
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that the current approach is not correct.
The suffix applies to source_pkg_name not to debver (note that there are other suffixes that can be applied to debinc but that is a different history and won't help to take precedence over a package that it is: foo+ds-1 . I've never seen a prefix applied to package source names. Probably needs to be something like:
source_pkg_name += config_parser.get(pkg.name, 'Source-Package-Name-Suffix', fallback='')
f'deb_dist/{source_pkg_name}_{pkg.version}-{debinc}.debian.tar.gz',
...
|
I don't think Here's a demo for this PR. I added the following lines to my ...and ran Additionally: These options seem to do exactly what we want, and are applied as a prefix or suffix to the automatically discovered package version number from the Python sources. |
|
To clarify, this PR doesn't change stdeb behavior and doesn't actually make the artifacts change name. This PR changes publish-python so that it correctly predicts the change to the output file names from stdeb. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re-reading what I posted first, sorry I think I completely confuse the name part with the version part and the version part with the debinc part. Apologies, heavy lack of coffee.
You are totally right about not changing the name itself. Changes make sense, yes.
These options change the name of the output artifacts, so we need to check for and use them appropriately.
https://github.com/astraw/stdeb/tree/master?tab=readme-ov-file#stdebcfg-configuration-file