astropy / astropy-healpix

BSD-licensed HEALPix for Astropy - maintained by @astrofrog and @lpsinger
https://astropy-healpix.readthedocs.io
BSD 3-Clause "New" or "Revised" License
52 stars 22 forks source link

TST: pytest header is misleading #145

Closed pllim closed 4 years ago

pllim commented 4 years ago
  1. Astropy version should be reported under dependencies.
  2. Where it reports Astropy version now should have been the package version.
Running tests with Astropy version 4.1rc1.
Running tests in astropy_healpix docs.

Date: 2020-05-26T21:46:14

Platform: Linux-5.3.0-1020-azure-x86_64-with-debian-buster-sid

Executable: /home/vsts/work/1/s/.tox/py36-test-cov/bin/python

Full Python Version: 
3.6.10 (default, May  5 2020, 13:45:55) 
[GCC 7.5.0]

encodings: sys: utf-8, locale: UTF-8, filesystem: utf-8
byteorder: little
float info: dig: 15, mant_dig: 15

Package versions: 
Numpy: 1.18.4
Scipy: not available
Matplotlib: not available
h5py: not available
Pandas: not available
astrofrog commented 4 years ago

Should I move this issue to pytest-astropy-header?

pllim commented 4 years ago

No, because the fix would be in this package's conftest.py. I have seen this problem in my own packages and was able to fix it like that.

astrofrog commented 4 years ago

Ah ok I understand, thanks!

bsipocz commented 4 years ago

I think this was due to using an older helpers version, shouldn't be an issue any more with the new infra.

pllim commented 4 years ago

Okay, feel free to close if it is no longer an issue. Thanks!

astrofrog commented 4 years ago

Not an issue anymore:

================================================================= test session starts =================================================================
platform darwin -- Python 3.8.0, pytest-6.1.1, py-1.9.0, pluggy-0.13.1

Running tests with astropy_healpix version 0.6.dev20+ga82dbce.
Running tests in astropy_healpix.

Date: 2020-10-06T13:09:43

Platform: macOS-10.15.5-x86_64-i386-64bit

Executable: /Users/tom/python/dev/bin/python3.8

Full Python Version: 
3.8.0 (v3.8.0:fa919fdf25, Oct 14 2019, 10:23:27) 
[Clang 6.0 (clang-600.0.57)]

encodings: sys: utf-8, locale: UTF-8, filesystem: utf-8
byteorder: little
float info: dig: 15, mant_dig: 15

Package versions: 
Numpy: 1.19.2
Scipy: 1.5.2
Matplotlib: 3.3.2
Astropy: 4.2.dev816+gad7b6c9ff
healpy: not available