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

Update references to Python 3.7 in docs/ #2524

Merged

Conversation

AvlWx2014
Copy link
Contributor

@AvlWx2014 AvlWx2014 commented Dec 28, 2023

Pull Request Checklist

  • A news fragment is added in news/ describing what is new.
  • Test cases added for changed code. (N/A)

Describe what you have changed in this PR.

Drop references to Python 3.7 in docs/ files. I was reading the index page on pdm-project.org/latest when I noticed that some vestigial references to Python 3.7 were still hanging around after the 2.11.0 release.

There's also #2494, but it looks like that PR doesn't touch these files, only ci.yml.

@@ -62,9 +62,9 @@ The value of `requires-python` is a [version specifier as defined in PEP 440](ht
| `>=3.7,<3.11` | Python 3.7, 3.8, 3.9 and 3.10 |
| `>=3.6,!=3.8.*,!=3.9.*` | Python 3.6 and above, except 3.8 and 3.9 |

## Working with Python < 3.7
## Working with Python <= 3.7
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@frostming is this paragraph still accurate with this change?


Although PDM run on Python 3.7 and above, you can still have lower Python versions for your **working project**. But remember, if your project is a library, which needs to be built, published or installed, you make sure the PEP 517 build backend being used supports the lowest Python version you need. For instance, the default backend `pdm-backend` only works on Python 3.7+, so if you run [`pdm build`](../reference/cli.md#build) on a project with Python 3.6, you will get an error. Most modern build backends have dropped the support for Python 3.6 and lower, so it is highly recommended to upgrade the Python version to 3.7+. Here are the supported Python range for some commonly used build backends, we only list those that support PEP 621 since otherwise PDM can't work with them.
Although PDM run on Python 3.8 and above, you can still have lower Python versions for your **working project**. But remember, if your project is a library, which needs to be built, published or installed, you make sure the PEP 517 build backend being used supports the lowest Python version you need. For instance, the default backend `pdm-backend` only works on Python 3.7+, so if you run [`pdm build`](../reference/cli.md#build) on a project with Python 3.6, you will get an error. Most modern build backends have dropped the support for Python 3.6 and lower, so it is highly recommended to upgrade the Python version to 3.7+. Here are the supported Python range for some commonly used build backends, we only list those that support PEP 621 since otherwise PDM can't work with them.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's also a reference here, but I couldn't find anything for pdm-backend to suggest that Python 3.7 support has been dropped there, so I left this one.

@AvlWx2014 AvlWx2014 force-pushed the AvlWx2014-update-python37-references branch from 8b4cb04 to cfa253e Compare December 28, 2023 00:15
@AvlWx2014 AvlWx2014 force-pushed the AvlWx2014-update-python37-references branch from 844d708 to 88fda25 Compare December 28, 2023 13:59
@frostming frostming merged commit 4d8beff into pdm-project:main Jan 2, 2024
1 check passed
@j178 j178 mentioned this pull request Apr 3, 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.

2 participants