Skip to content
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

Modernize Python support #59

Merged
merged 1 commit into from
Mar 1, 2023

Conversation

jugmac00
Copy link
Contributor

This is a first start.

  • I have not added support for Python 3.10, as this needs a new version of hypothesis which needs some tests to be rewritten
  • I have updated hypothesis to the latest compatible version
  • I have added/kept support for 2.7 - 3.9 + pypy3 until there is a decision which Python versions should be supported
  • I have not added coveralls integration yet
  • GH Actions is green, see https://github.com/jugmac00/pymacaroons/actions/runs/2207686890
  • This supersedes nose to pytest #54 - thanks to @pgajdos for the intial work

Also see discussion at #58

Given this PR gets merged, there should be follow-up PRs with adding back coverage report and adding support for Python 3.10 and possibly for dropping support for obsolete Python versions.

arkamar added a commit to arkamar/gentoo that referenced this pull request Oct 29, 2022
This revision bump backports parts of the upstream PR gentoo#59 related to
nose to pytest transition. Additionally, py3.11 support is enabled.

Upstream-PR: ecordell/pymacaroons#59
Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
arkamar added a commit to arkamar/pymacaroons that referenced this pull request Oct 29, 2022
Only parts related to nose to pytest transition are backported.

Backported-from: ecordell#59
arkamar added a commit to arkamar/gentoo that referenced this pull request Oct 29, 2022
This revision bump applies patch which backports parts of the upstream
PR gentoo#59 related to nose to pytest transition. Additionally, py3.11
support is enabled.

Upstream-PR: ecordell/pymacaroons#59
Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
arkamar added a commit to arkamar/gentoo that referenced this pull request Oct 29, 2022
This revision bump applies patch which backports parts of the upstream
PR gentoo#59 related to nose to pytest transition.

Additionally:
- py3.11 support is enabled
- update DESCRIPTION

Upstream-PR: ecordell/pymacaroons#59
Co-authored-by: Michał Górny <mgorny@gentoo.org>
Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
arkamar added a commit to arkamar/gentoo that referenced this pull request Oct 29, 2022
This revision bump applies patch which backports parts of the upstream
PR gentoo#59 related to nose to pytest transition.

Additionally:
- py3.11 support is enabled
- update DESCRIPTION

Upstream-PR: ecordell/pymacaroons#59
Co-authored-by: Michał Górny <mgorny@gentoo.org>
Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
gentoo-bot pushed a commit to gentoo/gentoo that referenced this pull request Oct 29, 2022
This revision bump applies patch which backports parts of the upstream
PR #59 related to nose to pytest transition.

Additionally:
- py3.11 support is enabled
- update DESCRIPTION

Upstream-PR: ecordell/pymacaroons#59
Co-authored-by: Michał Górny <mgorny@gentoo.org>
Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
Closes: #28022
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Copy link

@di di left a comment

Choose a reason for hiding this comment

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

Thank you!

Copy link
Owner

@ecordell ecordell left a comment

Choose a reason for hiding this comment

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

Thanks for picking this up!

This looks good to me, if we find any issues after merging we can can fix them afterwards (GHA changes sometimes take a couple of tries).

push:
pull_request:
schedule:
- cron: '0 12 * * 0' # run once a week on Sunday
Copy link
Owner

Choose a reason for hiding this comment

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

why run once a week if there have been no changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because of #60 - my PR was green a year ago when I created it, but there will be changes which break CI, e.g. updated dependencies, transitive dependencies or updated system packages / os. It is just a best practice to run CI jobs weekly to fix such breakages in a timely manner, and not e.g. when one needs to fix an urgent security issue.

@ecordell ecordell merged commit cd17fb8 into ecordell:master Mar 1, 2023
@ecordell ecordell mentioned this pull request Mar 1, 2023
@jugmac00 jugmac00 deleted the modernize-python-support branch March 1, 2023 20:56
@miketheman miketheman mentioned this pull request Jan 17, 2024
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.

3 participants