Skip to content

Support configuration from a pyproject.toml #185

Closed

Description

@nstarman

pytest is working to make configuration via pyproject.toml preferred to setup.cfg (see Warning section in https://docs.pytest.org/en/7.1.x/reference/customize.html#setup-cfg). I've been playing around with moving astropy's pytest settings and almost everything works except the pytest-doctest configuration. It would be great if pytest-doctestplus could also make this transition.

Activity

  1. added this to the 0.12.1 milestone on Sep 21, 2022
  2. modified the milestones: 0.12.1, 0.12.2 on Sep 26, 2022
  3. pllim commented on Sep 26, 2022

    @pllim
    Contributor

    Are you interested in submitting a PR for this? 😸

  4. saimn commented on Sep 26, 2022

    @saimn
    Contributor

    Not sure what needs to be done, we only use pytest API to access the configuration ?

  5. nstarman commented on Sep 27, 2022

    @nstarman
    Author

    From a perusal, doctest_subpackage_requires stands out as incompatible. There might be more issues.

    doctest_subpackage_requires =
        astropy/wcs/* = scipy>2.0;numpy>1.14
        astropy/cosmology/* = scipy>1.0
    
  6. nstarman commented on Oct 2, 2022

    @nstarman
    Author

    I'm not sure that pyproject.toml supports globs in dictionary keys. If it does, maybe that's the way to add support.

  7. removed this from the 0.12.2 milestone on Jun 8, 2023
  8. stefanv commented on Feb 23, 2024

    @stefanv
    Member

    It would be good to have pyproject.toml configuration support, so we are not forced to re-introduce a setup.cfg file.

  9. saimn commented on Mar 5, 2024

    @saimn
    Contributor

    pyproject.toml is already supported, and used by astropy. Some tests were added in #222 but maybe it should also be mentioned somewhere in the docs.

  10. pllim commented on Mar 6, 2024

    @pllim
    Contributor

    I added a couple of sentence in 9b747b8 . If one of you are passionate about proper doc update, please submit a follow-up PR. Thanks!

  11. bsipocz commented on Mar 6, 2024

    @bsipocz
    Member

    I added a couple of sentence in 9b747b8 . If one of you are passionate about proper doc update, please submit a follow-up PR. Thanks!

    please do PRs for small things, too, thanks!

  12. pllim commented on Mar 6, 2024

    @pllim
    Contributor

    please do PRs

    Oh, ok. I will keep that in mind for this repo next time. It was late and I just want to get this off my plate. Sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions