Python compatibility guidelines#169
Conversation
Co-Authored-By: liyanhui1228 <yanhuil@google.com>
Co-Authored-By: liyanhui1228 <yanhuil@google.com>
Co-Authored-By: liyanhui1228 <yanhuil@google.com>
|
|
||
| - It’s not recommended to depend on non-GA packages. | ||
| - Avoid depending on pre-release, post-release and development release version. | ||
| - Dependency version should be final release. (`PEP 440`_) |
There was a problem hiding this comment.
I don't know what this means.
There was a problem hiding this comment.
This is actually saying the same thing as the point above, any version which is not a pre-release, post-release and development release is a final release. Removed this point.
| - It’s not recommended to depend on non-GA packages. | ||
| - Avoid depending on pre-release, post-release and development release version. | ||
| - Dependency version should be final release. (`PEP 440`_) | ||
| - GA packages must not depend on non-GA packages. |
There was a problem hiding this comment.
Does your use of SHOULD and MUST match RFC terminology: https://www.ietf.org/rfc/rfc2119.txt
There was a problem hiding this comment.
Yes, mentioned this at the top of this file.
| - Dependency version should be final release. (`PEP 440`_) | ||
| - GA packages must not depend on non-GA packages. | ||
|
|
||
| **3. Version range upper bound should be updated when there is a newer version available as soon as possible.** |
There was a problem hiding this comment.
Didn't you already make this point?
There was a problem hiding this comment.
Oh I was thinking making this a separate point to emphasize on it.. and forgot to delete it from the sub-point in. Removed.
|
|
||
| - Packages should use Python built-in modules if possible. e.g. logging, unittest | ||
|
|
||
| **5. Never vendor dependencies** |
There was a problem hiding this comment.
You should explain what this means
|
|
||
| - Package must be self compatible | ||
| If package A depends on dependency B and C, and they require different version | ||
| of dependency D, package A is not self compatible. Packages that are not self |
There was a problem hiding this comment.
maybe "internally" rather than self?
Co-Authored-By: liyanhui1228 <yanhuil@google.com>
|
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
1 similar comment
|
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
Co-Authored-By: liyanhui1228 <yanhuil@google.com>
Co-Authored-By: liyanhui1228 <yanhuil@google.com>
Co-Authored-By: liyanhui1228 <yanhuil@google.com>
Co-Authored-By: liyanhui1228 <yanhuil@google.com>
|
A Googler has manually verified that the CLAs look good. (Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.) |
|
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
|
A Googler has manually verified that the CLAs look good. (Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.) |
Co-Authored-By: liyanhui1228 <yanhuil@google.com>
|
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
Co-Authored-By: liyanhui1228 <yanhuil@google.com>
Co-Authored-By: liyanhui1228 <yanhuil@google.com>
Co-Authored-By: liyanhui1228 <yanhuil@google.com>
Co-Authored-By: liyanhui1228 <yanhuil@google.com>
Co-Authored-By: liyanhui1228 <yanhuil@google.com>
Co-Authored-By: liyanhui1228 <yanhuil@google.com>
|
A Googler has manually verified that the CLAs look good. (Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.) |
|
Ping on this. |
| - A package makes breaking API changes and doesn't follow `Semantic Versioning`_ | ||
| - A package has a pinned dependency version which conflicts with other dependencies. | ||
| - A package depends on outdated dependencies. | ||
| - A package is dependent on deprecated dependencies. |
There was a problem hiding this comment.
Is there any way to automate detection of deprecated dependencies? It looks like pypi doesn't really have a concept of a deprecated package.
There was a problem hiding this comment.
Currently the deprecated dependency finder tool in our compatibility_lib uses the development status field in setup.py to determine whether a package is deprecated or not. If one pkg is deprecated, the status should be Development Status :: 7 - Inactive.
Co-Authored-By: liyanhui1228 <yanhuil@google.com>
|
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
|
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
|
A Googler has manually verified that the CLAs look good. (Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.) |
Closes #113