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

Remove astropy<4.0 constraint in setup.py #188

Closed
wants to merge 1 commit into from
Closed

Conversation

cdeil
Copy link
Contributor

@cdeil cdeil commented Aug 28, 2019

@zblz - I see you added a astropy<4.0 constraint in install_requires in setup.py here:
https://github.com/zblz/naima/pull/186/files#diff-2eeaed663bd0d25b7e608891384b7298R99

From the naima maintainer perspective it's understandable, you can't be sure if something will break with Astropy 4.0.

But from the user perspective and for us in Gammapy from the "depends on both" perspective it's problematic. As soon as Astropy 4.0 is released and shipped with conda, pip install naima will fail or pick an oder version, because you forbid it here.

In practice, it's very rare for Python packages to put constraints in this direction, and I think it's very unlikely that Astropy 4.0 will break things for Naima (or Gammapy).

So: OK to remove this constraint again?

@zblz
Copy link
Owner

zblz commented Aug 28, 2019

The reason is that 0.8.4 uses astropy.extern.six, which will be removed in astropy 4.0. Therefore, naima 0.8.4 is sure to break with astropy 4.0.

I'm in the process of dropping Python 2 support, which obviously removes any use of astropy.extern.six, in #187. The upper limit on astropy will definitely be removed in that PR and subsequent releases of naima.

We can merge this PR to make sure it gets removed before next release.

@cdeil
Copy link
Contributor Author

cdeil commented Aug 28, 2019

Ah, great!

Don't care if you merge this PR or not, as you like.

Note that if you modernise anyways, you could consider dropping astropy-helpers as well.
See gammapy/gammapy#2279 and astropy/astropy-APEs#52 .

In Gammapy we plan to go very modern and Python 3.6+ and modern Numpy / Astropy only very soon: https://github.com/gammapy/gammapy/blob/1536061257f60b56e6db95c412ec62bd461e9232/docs/development/pigs/pig-013.rst

Let me know if there's anything I can help with in Naima ...

@zblz
Copy link
Owner

zblz commented Aug 28, 2019

Yeah, removing astropy-helpers would make quite a lot of sense. Right now, for pure python packages it does add enough value for the added complexity.

I'll add an issue and try to tackle it after the Python2 PR.

Your change is in #187, so I'll close this PR.

@zblz zblz closed this Aug 28, 2019
@cdeil
Copy link
Contributor Author

cdeil commented Sep 30, 2019

@zblz - I still see this error:

ERROR: naima 0.8.4 has requirement astropy<4.0,>=1.0.2, but you'll have astropy 4.0.dev25805 which is incompatible.

https://travis-ci.org/gammapy/gammapy/jobs/591549571#L1199

Did you release a Naima version that doesn't have the astropy<4.0 constraint?
If no - could you please do it soon?

Thanks!

cc @adonath

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

Successfully merging this pull request may close these issues.

None yet

2 participants