-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Change to upstream tzdata #1
Change to upstream tzdata #1
Conversation
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( I do have some suggestions for making it better though... For recipe:
Documentation on acceptable licenses can be found here. |
@@ -1,41 +1,72 @@ | |||
{% set version = "2020.1" %} | |||
{% set version = "2020a" %} |
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.
Although conda
also uses Python-like versioning, tzdata
uses consistent versions for which the non-numeric suffix is always lexicographical increasing.
Meaning: It's fine for us to use the upstream version scheme.
|
||
requirements: | ||
build: | ||
- {{ compiler('c') }} |
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.
This uses a compiler because it builds its own tools. We add the ignore_run_exports
above to get a noarch: generic
package without any other dependencies.
recipe/build.sh
Outdated
TOPDIR="${PREFIX}" \ | ||
USRDIR='' \ | ||
POSIXRULES='' \ | ||
ZFLAGS='-b slim' \ |
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 would use -b fat
(or whatever the equivalent is) for now. pytz
and dateutil
will have problems with the slim versions, unfortunately.
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.
Ah, thanks. I assume you intend to change the Python package to -b fat
then too?
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.
No, the Python package is not used by anything except zoneinfo
at the moment, whereas dateutil
will automatically use the system time zone information, and pytz
has an option to use the system time zone data. Anyone who starts using the Python tzdata
package should support slim files.
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 see. Makes sense to assume everything that uses newly introduced functionality to support slim.
tzdata will now carry the upstream database as a noarch:generic package. refs: - conda-forge/tzdata-feedstock#1
ZIC='$(ZIC)' | ||
|
||
-INSTALL_DATA_DEPS = zic leapseconds yearistype tzdata.zi | ||
+INSTALL_DATA_DEPS = zic leapseconds yearistype tzdata.zi $(TABDATA) |
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.
Why do you need to patch this?
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.
Just to avoid the manual copying of those extra files ;).
But if we don't need them, we can remove that whole commit. I just don't know if it makes sense to include them or not.
(ref: python/tzdata#28)
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'm not sure why you have to patch anything to get those files. Upstream the way I unpack this is here. I do:
make DESTDIR={temporary_directory} POSIXRULES= ZFLAGS='-b slim' install
(You would use -b fat
) and then move everything that's in temporary_directory/usr/share/zoneinfo
over to the location I'm expecting. As far as I know no additional copying is necessary.
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 just wanted a Make target that installed everything in TZDIR
. But I'm also more than fine with the way you did it and added a commit to do just that!
The tests in this recipe will also catch when anything unexpected would get installed, so all good either way.
@mbargull thanks so much for doing this! I was planning to hack at it over the weekend but could not even get close to reading the build intructions. I would like to say I approve and this is ready to go but you have the much better expertise of @pganssle here so I'll defer to him to tell us when this is OK to merge. |
tzdata will now carry the upstream database as a noarch:generic package. refs: - conda-forge/tzdata-feedstock#1
@pganssle any last comments or is this OK to be merged? |
This is likely good to go now -- anything else we should change, @pganssle? Would you like to help maintaining this recipe, too? I took you off the maintainers list just to not enforce an additional recipe onto you -- but of course we'd be happy to have you! Just to recap what's different from https://github.com/conda-forge/python-tzdata:
|
Hey, sorry, this seemed low-priority since it was merged before I got back to it, but yeah I'm fine helping to maintain this feedstock. Thanks for putting this together, I think it looks great! (Now for the first test — |
tzdata will now carry the upstream database as a noarch:generic package. refs: - conda-forge/tzdata-feedstock#1
Checklist
0
(if the version changed)conda-smithy
(Use the phrase@conda-forge-admin, please rerender
in a comment in this PR for automated rerendering)This changes this repository to build the upstream Time Zone Database as the package named
tzdata
on conda-forge.Up until now, this recipe built the Python package
tzdata
, which is now living at https://github.com/conda-forge/python-tzdata-feedstock and will be available under thepython-tzdata
name on theconda-forge
channel.Following up on: conda-forge/python-feedstock#392 and conda-forge/staged-recipes#12828