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
pythonPackages.astroquery 0.3.10 -> 0.4 #80552
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.
please checkout from github to get unit tests https://github.com/astropy/pytest-astropy-header/tree/master/tests, the sdist on pypi doesn't contain any:
running build_ext
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
Finished executing setuptoolsCheckPhase
pkgs/development/python-modules/pytest-astropy-header/default.nix
Outdated
Show resolved
Hide resolved
@jonringer: Done. Thanks. |
}; | ||
|
||
propagatedBuildInputs = [ astropy requests keyring beautifulsoup4 html5lib ]; | ||
propagatedBuildInputs = [ astropy requests keyring beautifulsoup4 html5lib numpy ]; |
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 don't think that numpy
is needed here. astroquery
depends on astropy
and astropy
itself depends on numpy
.
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.
Done, thanks.
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.
if it's listed in install-requires, you'll want to keep it. astropy is free to drop a dependency in the future.
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.
There's no install requires in setup.py. But numpy is imported in various places and their own CI seems to always install it (https://github.com/astropy/astroquery/blob/7fa89014d2743028f4263473b5b0343e0e6400a4/.travis.yml). Please advice.
pkgs/development/python-modules/pytest-astropy-header/default.nix
Outdated
Show resolved
Hide resolved
d409db0
to
4c2e900
Compare
So this sort of led down a rabbit hole of changes caused by new dependencies. Hopefully it looks ok now. |
is the hypothesis bump really necessary? It essentially rebuilds all of python packges (it's a dependency of pytest, which is used heavily) |
Depends if this is true: https://github.com/astropy/pytest-astropy/blob/master/setup.cfg#L41 |
ah, this is awkward. Hmm.... @FRidh are you okay with a |
I think we should avoid it. One or a couple of packages is not worth it IMO |
Hypothesis dropped Python 2 support so a straight update isn't doable either. |
I'm inclined to close this PR as the impact seems too big. But I made a last attempt on updating hypothesis for Python 3 only. |
@xbreak, eventually the python community will migrate over to using the latest hypothesis. Eventually we will be adding hypothesis>=5.0 to nixpkgs, and at the time, this package would be easily merge-able. If you would like to wait a few weeks, we can pick this back up. |
@jonringer: Sure, no problem. I'll leave the PR as-is for the moment then and rebase/update as necessary then? |
Can we disable the tests for the time being? This would allow |
Tests are disabled until pytest-astropy is updated with pytest-astropy-header.
@jonringer: I updated PR with only updated astroquery and disabled tests. |
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.
Tested on macos with nix-review
. It looks good to me.
@jonringer Can you please merge 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.
LGTM
I would like tests, but they can't be active due to python package set, so it's understandably not running right now
[4 built, 0.0 MiB DL]
https://github.com/NixOS/nixpkgs/pull/80552
2 package built:
python37Packages.astroquery python38Packages.astroquery
@GrahamcOfBorg build python37Packages.astroquery python38Packages.astroquery |
Motivation for this change
ZHF: #80379
Things done
Check phase is now OK.
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)