Skip to content

MNT: Compat with pytest>=8 - #15

Merged
bsipocz merged 5 commits into
astropy:mainfrom
pllim:pytest-8.1
Jan 9, 2024
Merged

bsipocz merged 5 commits into
astropy:mainfrom
pllim:pytest-8.1

Conversation

@pllim

@pllim pllim commented Jan 6, 2024 •

Copy link
Copy Markdown
Member

Fix #14 as suggested in pytest-dev/pytest#11779 (comment)

Out of scope: Fix the CI (looks very outdated but I don't have time to deal with it)

@pllim

This comment was marked as resolved.

@pllim
pllim marked this pull request as ready for review January 6, 2024 05:18
Comment thread pytest_filter_subpackage/plugin.py Resolved
@bsipocz

bsipocz commented Jan 8, 2024

Copy link
Copy Markdown
Member

Not sure how to easily add a pytest-dev job to this Azure stuff.

Can we just get rid of altogether it and copy-paste the GHA config over from doctestplus/remote-data?

by copying over config from pytest-doctestplus to use Actions instead of Azure Pipelines.

Added dependabot for future auto-updates.

Updated Action version for publish workflow.

Bump minimum versions to be consistent with pytest-doctestplus.

Add change logs.
@pllim

pllim commented Jan 8, 2024

Copy link
Copy Markdown
Member Author

@bsipocz , good idea on the copy paste. I copied from doctestplus instead since I think that one was updated more recently? Anyway, shouldn't matter if I copied from doctestplus or remote-data.

However, now that we have a proper pytest-dev job, it is failing because we have not merged this PR because apparently doctestplus is a test dependency here:

@bsipocz

bsipocz commented Jan 9, 2024

Copy link
Copy Markdown
Member

However, now that we have a proper pytest-dev job, it is failing because we have not merged this PR because apparently doctestplus is a test dependency here:

I've restarted CI after the upstream merge.

@bsipocz bsipocz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks all good. I suppose the repeated ~20-25 lines could be dumped into a shared functions, but then it's borderline than just simply keep the repeats.

However, I think we need to add tests with the 8.0.x branch. I'm adding a commit with that, and if all CI is green, will go ahead and merge.

python-version: '3.11'
toxenv: py311-test-pytest74
toxargs: --pre
- os: macos-latest

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If all else is looking good, I'll add the 8.0.x jobs here, too

Comment thread setup.cfg
author_email = [email protected]
classifiers =
Development Status :: 3 - Alpha
Development Status :: 5 - Production/Stable

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@bsipocz bsipocz linked an issue Jan 9, 2024 that may be closed by this pull request
Comment thread CHANGES.rst
@@ -1,7 +1,9 @@
0.1.3 (unreleased)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the stable metadata below, I would consider bumping the version number to either 0.2 or even 1.0

@bsipocz bsipocz added this to the v0.2.0 milestone Jan 9, 2024
@bsipocz
bsipocz merged commit 0b7f50f into astropy:main Jan 9, 2024
@bsipocz

bsipocz commented Jan 9, 2024

Copy link
Copy Markdown
Member

Thanks @pllim!

@pllim
pllim deleted the pytest-8.1 branch January 9, 2024 03:14
@pllim

pllim commented Jan 9, 2024

Copy link
Copy Markdown
Member Author

Thanks for cleaning this up and merging!

@pllim

pllim commented Jan 9, 2024

Copy link
Copy Markdown
Member Author

p.s. I pushed a commit directly to main to bump change log section to 0.2 to be consistent with milestone. FYI.

@bsipocz

bsipocz commented Jan 9, 2024

Copy link
Copy Markdown
Member

yeap, I just added the milestone that was already around, but as I said above, I would not be against calling it v1.0 in the next release.

@pllim

pllim commented Jan 9, 2024

Copy link
Copy Markdown
Member Author

Yeah, maybe it is time for 1.0.

But... if you have plans to move this to Scientific Python, maybe we should wait for that first? Or is this too astropy specific?

@bsipocz

bsipocz commented Jan 9, 2024

Copy link
Copy Markdown
Member

I don't see straight away who would be interested in using this (the main benefit is that this collects both from the source and docs, but if the narrative docs is not structured in the same submodule way, or doctesting is not done then there is no point using this.)

So, we can certainly upstream it if there are other users, but first would need to find some interest.

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.

Not compatible with pytest 8.0 ? MAINT: add cron

3 participants