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
py-metomi-isodatetime: fix url parsing #41415
py-metomi-isodatetime: fix url parsing #41415
Conversation
Thanks @adamjstewart. I tried your PR (cherry-picked your commit), but still getting:
Am I doing something wrong? |
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.
Confirmed the package's version sha256 are still valid with the change. Just a simple question.
var/spack/repos/builtin/packages/py-metomi-isodatetime/package.py
Outdated
Show resolved
Hide resolved
@tldahlgren This is unfortunately not working for me, but it's likely that it is a user error. |
Which part? The PR or the use of an f-string? |
The PR itself (sorry for not being clear) |
I didn't fix: > spack checksum py-metomi-isodatetime I did fix: > spack checksum py-metomi-isodatetime 3.1.0 The former is a completely different set of Spack code. I can fix it if you want, but will need to find time to adjust the regexes to add support for this. |
Ah, apparently my solution only works for versions that have already been checksummed. Will need to adjust the regex instead. |
We need to decide whether or not we care about the epoch number in https://peps.python.org/pep-0440/#public-version-identifiers. Like, should the version be called |
A few core Spack developers discussed this today. Our proposal is to model the epoch in the same manner that Python does (and Fedora as well). We will propose a PR with the |
That sounds great, thanks for following up @becker33 ! |
To me, this seems like it should be much lower priority (only affects 1 package) than supporting a/b/rc/dev as being less than stable (affects most packages). |
@adamjstewart while I agree about impact, I think it's much easier to support than the more important issue around pre-release versions. |
For information purposes, after scanning all 500644 packages present on Pypi, I identified 40 which appear to be concerned by the Epoch segment (the character "!" is present in an URL of a release). |
That's impressive work. So only 0.008% of packages. |
It was a bit long. The python modules |
Should we merge this as is? It doesn't fix: > spack checksum py-metomi-isodatetime but it does fix: > spack fetch py-metomi-isodate The latter is much more important. |
I think we can keep this modification which allows the installation of the package. We could possibly add a comment indicating that the checksum does not work. |
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 concur, a note that the checksum feature doesn't work for this package would be nice.
* py-metomi-isodatetime: fix url parsing * One-liner * Add note that checksum doesn't work
* py-metomi-isodatetime: fix url parsing * One-liner * Add note that checksum doesn't work
Closes #41414
Could have modified our regexes to better support this version identifier but this is literally the only case we have in Spack as far as I know so will wait until this is more common.