-
Notifications
You must be signed in to change notification settings - Fork 221
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
Make Skyfield, Astronomy optional #660
Comments
One other possible solution could be to have a different package (in the same codebase) that uses those libs to generate the astronomical information and that we can run once a year or once a release with everything, and have workalendar use these information but not require the libs themselves. That would take advantage of the fact it's very predictible for long term. We could generate 50y worth of astromonical data and it's likely not to change a lot in the next 50 years. |
Yes that seems to be a good idea. |
(Would that be compatible with our dependencies' licences ? I think so but I don't know) |
How can I help getting this done? |
I would have like to get an opinion from @brunobord before spending time on this. He's the maintainer and he's the architect for this lib :) If he says 👍 then I believe you can start working on a PR. Then once this is done, we need a script that will generate those JSON files, and we'll need a bit of "packaging magic" so that it's easy to run the script with the astronomy libs, and we can safely remove them from the runtime workalendar ( Does this make sense ? |
Yes totally. I wait for @brunobord opinion. Thanks for the quick answer. |
Made a 16.0.0rc1 release ; will have to make a few tests tomorrow, we're getting closer. |
**Warning**: Important changes in the runtime requirements. Please have a look at the README for more information. **New calendar** - New calendar: Added Philippines calendar by @micodls (#396) **Internal changes** - Remove `skyfield` dependency, added `[astronomy]` as extra dependency (#660). - Replace `pyCalverter` with `convertdate` (#536). - Remove unused `JalaliMixin` - Replace `pkg_resources` with `importlib_metadata` to fetch the version number in `__init__.py` (#657) - Added new badges (pypi, conda, license) and installation instructions (pip, conda) to readme file @sugatoray (#673). - Added the "Workalendar maintainers" in the LICENSE file. - Changed the maintainer email.
The latest release (16.0.0) includes your tremendous work. Thank you a million for your time and your patience. You rock!
Happy upgrading! |
astronomy
module might interest some people I’m sure, but theskyfield
dependency will pullnumpy
which is huge (and maybe complex to build on some environment).So is it possible to have a
workalendar
package with a[astronomy]
extra that will pullskyfield
andskyfield-data
?That way, people who also needs the
astronomy
module will requestworkalendar[astronomy]
and others justworkalendar
.This is, of course, if it’s possible.
What do you think?
The text was updated successfully, but these errors were encountered: