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

Attempt Python 3.12 support for ok-client #487

Merged
merged 11 commits into from
Jan 23, 2024
Merged

Conversation

cycomachead
Copy link
Contributor

@cycomachead cycomachead commented Jan 17, 2024

This is just building off Gabe's work. I haven't done any more investigations, but tried to update CI to use recent Python

@cycomachead cycomachead changed the title Try fixing okpy for python 3.12 Attempt Python 3.12 support for ok-client Jan 17, 2024
@cycomachead
Copy link
Contributor Author

@LarynQi Can you or someone else approve my fork to run workflows. :)

https://github.com/cs88-website/ok-client/actions/runs/7550596522/job/20556482294
if I update CI, following Gabe's work, tests seem to pass.

@@ -1,6 +1,6 @@
name: CI

on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This allows manually rerunning workflows, which is handy for folks using a fork

@@ -10,44 +10,44 @@ jobs:
fail-fast: false
matrix:
name: [
Python 3.12 (Windows),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

3.7 is deprecated, 3.8 will be soon.
I skipped 3.10 since we have 3.11 + 3.12 and it didn't seem worth the CI time. 🤷
(Also so many lines to add!)

@@ -102,4 +102,4 @@ jobs:
esac
. "${VENV_DIR}/${scripts}/activate"
echo "Using $(python --version) on ${{ matrix.os }}" 1>&2
nosetests --traverse-namespace --with-coverage tests
nose2 -v --with-coverage tests
Copy link
Contributor Author

Choose a reason for hiding this comment

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

-v may not be necessary, but it was helpful to make sure things were running.
I don't know what --traverse-namespace does, but it is not supported in nose2

@@ -0,0 +1,5 @@
"<Mock name='mock.name' id='2137274846528'>-correct", (0, 66)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are these necessary?
Seems like not.

@@ -0,0 +1,3 @@
[unittest]
start-dir = tests
test-file-pattern = *_test.py
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
test-file-pattern = *_test.py
test-file-pattern = *_test.py

@papajohn
Copy link
Contributor

@cycomachead It would be great to try to get the CI tests to run, but I would prefer to merge this tonight even if we haven't done that, rather than wait. Suggestions? @gabeclasson Any reason why this shouldn't be merged?

@papajohn
Copy link
Contributor

We fixed the buildserver yesterday, so maybe just making a trivial change will trigger the build.

Copy link
Contributor

@papajohn papajohn left a comment

Choose a reason for hiding this comment

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

Looks fine to me.

@papajohn papajohn merged commit 57352fa into okpy:master Jan 23, 2024
9 checks passed
@cycomachead cycomachead mentioned this pull request Jan 23, 2024
10 tasks
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