Skip to content

Enable testing for Python 3.8 #970

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

Merged

Conversation

Jamim
Copy link
Contributor

@Jamim Jamim commented Sep 25, 2019

Hello,

Python 3.8 is almost there, so I believe that it would be nice to have tests for it on CI.

Best regards!

@k8s-ci-robot
Copy link
Contributor

Welcome @Jamim!

It looks like this is your first PR to kubernetes-client/python 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-client/python has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 25, 2019
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 25, 2019
@roycaihw roycaihw requested a review from micw523 September 25, 2019 21:53
@yliaog
Copy link
Contributor

yliaog commented Sep 25, 2019

3.8.0 final: Monday, 2019-10-21

we want to merge this after that, right?

@Jamim
Copy link
Contributor Author

Jamim commented Sep 25, 2019

Hello @yliaog,
I believe it makes sense to merge it now in order to be aware in case something became broken for 3.8 due to some changes.

@micw523
Copy link
Contributor

micw523 commented Sep 25, 2019

/hold
Even though Python 3.8 will be here soon, Travis CI will probably be ready much later. Therefore there’s no rush getting this PR in since we’ll have to wait.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 25, 2019
Copy link
Contributor

@micw523 micw523 left a comment

Choose a reason for hiding this comment

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

I appreciate the cleanup of the CI script, but we’d be better off waiting on Travis CI side.

.travis.yml Outdated
@@ -28,6 +28,10 @@ matrix:
env: TOXENV=py37
- python: 3.7
env: TOXENV=py37-functional
- python: 3.8-dev
Copy link
Contributor

Choose a reason for hiding this comment

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

3.8-dev is still a development build and is not ready for production yet.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But it's good enough for testing purposes.

Copy link
Contributor

Choose a reason for hiding this comment

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

The reason we want to test a certain version is that we’ll be confident supporting this version in PyPI wheels. Therefore, I would stick to stable release only.

@Jamim
Copy link
Contributor Author

Jamim commented Sep 25, 2019

In fact, Travis CI is ready.
Please take a look at the corresponding build.

@micw523
Copy link
Contributor

micw523 commented Sep 25, 2019

Yet, 3.8 dev is not 3.8 final. Also, I don’t know how I selected approve for this PR - I meant “comment”.

@Jamim
Copy link
Contributor Author

Jamim commented Sep 25, 2019

https://pythoninsider.blogspot.com/2019/08/python-380b4-is-now-available-for.html

We strongly encourage maintainers of third-party Python projects to test with 3.8 during the beta phase and report issues found to the Python bug tracker as soon as possible. Please note this is the last beta release, there is not much time left to identify and fix issues before the release of 3.8.0. If you were hesitating trying it out before, now is the time.

@micw523
Copy link
Contributor

micw523 commented Sep 27, 2019

https://pythoninsider.blogspot.com/2019/08/python-380b4-is-now-available-for.html

Please keep in mind that this is a preview release and its use is not recommended for production environments.

Please do notice that this repo is used in production environments. We won't be confident in supporting Python 3.8 unless it's production ready.

@micw523
Copy link
Contributor

micw523 commented Oct 14, 2019

/hold cancel
Please update the environment to 3.8 stable and we'll see from there

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 14, 2019
@Jamim
Copy link
Contributor Author

Jamim commented Oct 14, 2019

Hello @micw523,
3.8 is not available on Travis CI yet.
Currently, there is 3.8-dev only.

Python 3.8 is there, so I believe that it would be nice
to declare support and add tests for it on CI.

Python 3.8.0 release announcement:
https://discuss.python.org/t/python-3-8-0-is-now-available/2478
@Jamim Jamim force-pushed the feature/python3.8-tests branch from 1b2b09c to 4d85892 Compare October 16, 2019 21:01
@Jamim
Copy link
Contributor Author

Jamim commented Oct 16, 2019

Hi @micw523,
I believe this PR is ready to be merged now.

@micw523
Copy link
Contributor

micw523 commented Oct 16, 2019

/lgtm
/cc @roycaihw
/assign @roycaihw
This looks good to me.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 16, 2019
@@ -77,5 +77,6 @@
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
Copy link
Contributor

Choose a reason for hiding this comment

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

As a side note, we'll need py38 wheels in the next release possibly.

@yliaog
Copy link
Contributor

yliaog commented Oct 16, 2019

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Jamim, yliaog

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 16, 2019
@k8s-ci-robot k8s-ci-robot merged commit ca4f311 into kubernetes-client:master Oct 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants