Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Fix customization of pytest-astropy-header when running with tox #439

Closed
astrofrog opened this issue Jan 31, 2020 · 3 comments
Closed

Fix customization of pytest-astropy-header when running with tox #439

astrofrog opened this issue Jan 31, 2020 · 3 comments
Labels
bug won't fix: deprecated Template is deprecated here

Comments

@astrofrog
Copy link
Member

astrofrog commented Jan 31, 2020

In #438 @mhvk pointed out that the pytest-astropy-header isn't picking up the custom configuration in conftest.py in time and the header is therefore not being customized, so this issue is a reminder to fix this.

One idea mentioned in #438 was to make setup.cfg the primary place to specify the packages to show in the pytest-astropy-header and to somehow have that be copied into the package, either by generating/modifying the conftest.py file or by generating a secondary file, e.g. conftest.header that gets read in by conftest.py. An argument against just generating conftest.py is that that file can also be used for other purposes/customizations.

@astrofrog
Copy link
Member Author

One elegant solution would be to do something along the lines of what https://github.com/noirbizarre/setuptools-meta does - because it means we don't actually create additional files but the installed distribution can be given access to more of the metadata in setup.cfg.

@pllim
Copy link
Member

pllim commented Jan 31, 2020

@pllim
Copy link
Member

pllim commented Aug 11, 2023

@pllim pllim closed this as not planned Won't fix, can't repro, duplicate, stale Aug 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug won't fix: deprecated Template is deprecated here
Projects
None yet
Development

No branches or pull requests

2 participants