-
Notifications
You must be signed in to change notification settings - Fork 590
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
it is time to deprecate python 3.8 #4817
Conversation
WalkthroughThe pull request primarily updates the Python version requirements across multiple files, transitioning from Python 3.8 to 3.9. This includes changes in workflow configurations for documentation and testing, adjustments in the README and other documentation files, and modifications in Changes
Possibly related PRs
Suggested labels
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Outside diff range and nitpick comments (2)
docs/source/getting_started/troubleshooting.rst (1)
47-47
: Update the example Python version.The error message aligns with the PR objective of updating the Python version requirement to 3.9. However, consider updating the example Python version from
3.4.10
to a more recent version that is closer to the new requirement, such as3.8.15
.README.md (1)
136-136
: Looks good! Consider improving the typography.The change in the Python version requirement correctly reflects the deprecation of Python 3.8.
As a minor typographical improvement, consider using an en dash (–) instead of a hyphen (-) for the numerical range:
- [Python](https://www.python.org) (3.9 - 3.11) + [Python](https://www.python.org) (3.9 – 3.11)
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (15)
- .github/workflows/build-docs.yml (1 hunks)
- .github/workflows/build.yml (1 hunks)
- .github/workflows/test.yml (0 hunks)
- README.md (1 hunks)
- docs/README.md (1 hunks)
- docs/source/deprecation.rst (1 hunks)
- docs/source/environments/index.rst (1 hunks)
- docs/source/getting_started/install.rst (1 hunks)
- docs/source/getting_started/troubleshooting.rst (1 hunks)
- docs/source/getting_started/virtualenv.rst (2 hunks)
- fiftyone/init.py (0 hunks)
- package/db/setup.py (1 hunks)
- package/desktop/setup.py (1 hunks)
- package/graphql/setup.py (1 hunks)
- setup.py (1 hunks)
Files not reviewed due to no reviewable changes (2)
- .github/workflows/test.yml
- fiftyone/init.py
Files skipped from review due to trivial changes (2)
- docs/README.md
- docs/source/deprecation.rst
Additional context used
Additional comments not posted (12)
.github/workflows/build.yml (1)
29-32
: Python version upgrade looks good! Verify compatibility and update documentation.The Python version upgrade from 3.8 to 3.9 aligns with the PR objective of deprecating Python 3.8. This change may provide enhancements, new features, and improved performance.
Please ensure that:
- All dependencies are compatible with Python 3.9.
- The codebase has been thoroughly tested with Python 3.9.
You can run the following script to verify the compatibility:
Please update the documentation to reflect the Python version upgrade, including:
- README.md
- CHANGELOG.md
- Any other relevant documentation
This will ensure that the users are aware of the change and can take necessary actions to upgrade their Python version.
package/graphql/setup.py (1)
59-59
: Deprecation of Python 3.8 supportThe change to the
python_requires
parameter and the removal of the Python 3.8 classifier align with the PR objective of deprecating Python 3.8 support.Please ensure that the release notes clearly communicate this breaking change and its implications for users who are still on Python 3.8. It's important to guide them on the necessary steps to upgrade their Python version.
Additionally, verify if any other parts of the codebase or documentation still reference Python 3.8, and update them accordingly:
# Search for references to Python 3.8 in Python files rg --type py '3\.8' # Search for references to Python 3.8 in documentation files (e.g., Markdown, reStructuredText) rg --type-add 'docs:*.md' --type-add 'docs:*.rst' --type docs '3\.8'.github/workflows/build-docs.yml (1)
56-59
: LGTM!The Python version update aligns with the PR objective of deprecating Python 3.8. This is a good practice to ensure the project stays up to date with the latest features and improvements.
Please ensure that the project's dependencies are compatible with Python 3.9. You can run the following script to verify the compatibility:
Verification successful
Python 3.9 update is consistent with project requirements
The change from Python 3.8 to 3.9 in the GitHub Actions workflow is appropriate and aligns with the project's requirements. Here's why:
- The
setup.py
file already specifiespython_requires=">=3.9"
, indicating that the project is designed to work with Python 3.9 and above.- No explicit dependencies on Python 3.8 were found in the requirements files.
- The main requirements file (
requirements/common.txt
) doesn't contain any Python version-specific packages that might cause compatibility issues.This change ensures that the CI/CD pipeline uses a Python version that's consistent with the project's declared requirements, which is a good practice for maintaining compatibility and leveraging the latest features and improvements in Python 3.9.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the compatibility of the project's dependencies with Python 3.9. # Test: Install the project's dependencies using Python 3.9. Expect: No errors. python3.9 -m venv venv source venv/bin/activate pip install -r requirements/dev.txt pip install -r fiftyone-teams/requirements/dev.txt pip install fiftyone-brain fiftyone-db pip install pycocotools tensorflow torch torchvision pip install typing_extensions==4.10.0 pip install .Length of output: 893
Script:
#!/bin/bash # Description: Examine project files for Python version requirements and potential incompatibilities # Check setup.py for Python version requirements echo "Checking setup.py for Python version requirements:" grep -n "python_requires" setup.py # Check requirements files for any version-specific packages echo -e "\nChecking requirements files for version-specific packages:" grep -n -R "==3.8" requirements/ grep -n -R ">=3.8,<3.9" requirements/ # Check for any mentions of Python 3.8 or 3.9 in the project echo -e "\nChecking for mentions of Python 3.8 or 3.9 in the project:" grep -n -R "python 3.8" . grep -n -R "python 3.9" . # List all requirements files echo -e "\nListing all requirements files:" find . -name "*requirements*.txt" # Display the content of the main requirements file echo -e "\nContent of the main requirements file:" cat requirements/common.txtLength of output: 1391
setup.py (2)
158-158
: Deprecation of Python 3.8 support looks good!The change to the
python_requires
field correctly reflects the deprecation of Python 3.8 support. Users will now need Python 3.9 or later to install and use the package.Please ensure that the deprecation is clearly communicated in the release notes, as mentioned in the PR summary, to help users prepare for the transition.
Line range hint
1-158
: Removal of Python 3.8 classifier is consistent.The removal of the
"Programming Language :: Python :: 3.8"
classifier from the list of supported programming languages aligns with the deprecation of Python 3.8 support.docs/source/getting_started/virtualenv.rst (2)
29-29
: LGTM!The Python version update in the documentation from 3.8.9 to 3.9.20 aligns with the PR objective to deprecate Python 3.8 and recommend a newer version. This change provides clear guidance to users about the recommended Python version for setting up the virtual environment.
74-74
: Looks good!Updating the Python version from 3.8.3 to 3.9.20 in this part of the documentation ensures consistency with the previous change and aligns with the goal of deprecating Python 3.8. This helps maintain clarity and avoids confusion for users following the virtual environment setup guide.
package/desktop/setup.py (1)
194-194
: Looks good! Ensure the deprecation notices and release notes are updated.The change to raise the minimum required Python version from 3.8 to 3.9 aligns with the PR objective of deprecating Python 3.8. This will require users to have a more recent Python version to use this package.
Please make sure the deprecation notices clearly explain the rationale behind this change and that the release notes call out this user-facing update, directing users to the relevant deprecation notices for more details.
docs/source/getting_started/install.rst (1)
23-23
: Looks good! Ensure this is documented in the release notes.The change in the supported Python version range from
3.8 - 3.11
to3.9 - 3.11
aligns with the PR's objective of deprecating Python 3.8.As this is a user-facing change, please ensure it is clearly communicated in the release notes so that users are aware of the new minimum Python version required to use FiftyOne going forward.
docs/source/getting_started/troubleshooting.rst (1)
49-52
: LGTM!The updated Python and pip version requirements align with the PR objective. The reference to the installation guide is helpful for users to get more details.
package/db/setup.py (1)
327-327
: LGTM! Remember to include this in the release notes.The change to bump the minimum required Python version from 3.8 to 3.9 looks good. It aligns with the PR objective of deprecating Python 3.8.
Please ensure this user-facing change is prominently mentioned in the release notes, as indicated in the PR summary, so that users are aware of the updated Python version requirement.
docs/source/environments/index.rst (1)
418-424
: LGTM!The changes to update the default Python version to 3.11 and provide a build argument for 3.10 are good improvements.
8df1c5e
to
e930c22
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Outside diff range and nitpick comments (1)
README.md (1)
136-136
: The Python version requirement update looks good!It aligns with the PR objective to deprecate Python 3.8.
For improved formatting, consider using an en dash (–) instead of a hyphen (-) for the numerical range:
-[Python](https://www.python.org) (3.9 - 3.11) +[Python](https://www.python.org) (3.9 – 3.11)
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (17)
- .github/workflows/build-docs.yml (1 hunks)
- .github/workflows/build.yml (1 hunks)
- .github/workflows/test.yml (0 hunks)
- README.md (1 hunks)
- docs/README.md (1 hunks)
- docs/source/deprecation.rst (1 hunks)
- docs/source/environments/index.rst (1 hunks)
- docs/source/getting_started/install.rst (1 hunks)
- docs/source/getting_started/troubleshooting.rst (1 hunks)
- docs/source/getting_started/virtualenv.rst (2 hunks)
- fiftyone/init.py (0 hunks)
- package/db/setup.py (2 hunks)
- package/desktop/setup.py (1 hunks)
- package/graphql/setup.py (1 hunks)
- requirements/common.txt (1 hunks)
- requirements/docs.txt (1 hunks)
- setup.py (2 hunks)
Files not reviewed due to no reviewable changes (2)
- .github/workflows/test.yml
- fiftyone/init.py
Files skipped from review as they are similar to previous changes (14)
- .github/workflows/build-docs.yml
- .github/workflows/build.yml
- docs/README.md
- docs/source/deprecation.rst
- docs/source/environments/index.rst
- docs/source/getting_started/install.rst
- docs/source/getting_started/troubleshooting.rst
- docs/source/getting_started/virtualenv.rst
- package/db/setup.py
- package/desktop/setup.py
- package/graphql/setup.py
- requirements/common.txt
- requirements/docs.txt
- setup.py
Co-authored-by: Benjamin Kane <[email protected]>
2df4b56
to
f61995c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Outside diff range and nitpick comments (1)
README.md (1)
136-136
: Approve updating the Python version and suggest typographical improvement.The change in the Python version requirement from "3.8 - 3.11" to "3.9 - 3.11" aligns with the objective of deprecating Python 3.8. This is an important user-facing change that is appropriately documented in the README file.
To improve typography, consider using an en dash (–) instead of a hyphen (-) for the numerical range:
-[Python](https://www.python.org) (3.9 - 3.11) +[Python](https://www.python.org) (3.9 – 3.11)
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (18)
- .github/workflows/build-db.yml (2 hunks)
- .github/workflows/build-docs.yml (1 hunks)
- .github/workflows/build.yml (1 hunks)
- .github/workflows/test.yml (0 hunks)
- README.md (1 hunks)
- docs/README.md (1 hunks)
- docs/source/deprecation.rst (1 hunks)
- docs/source/environments/index.rst (1 hunks)
- docs/source/getting_started/install.rst (1 hunks)
- docs/source/getting_started/troubleshooting.rst (1 hunks)
- docs/source/getting_started/virtualenv.rst (2 hunks)
- fiftyone/init.py (0 hunks)
- package/db/setup.py (2 hunks)
- package/desktop/setup.py (1 hunks)
- package/graphql/setup.py (1 hunks)
- requirements/common.txt (1 hunks)
- requirements/docs.txt (1 hunks)
- setup.py (1 hunks)
Files not reviewed due to no reviewable changes (2)
- .github/workflows/test.yml
- fiftyone/init.py
Files skipped from review as they are similar to previous changes (15)
- .github/workflows/build-db.yml
- .github/workflows/build-docs.yml
- .github/workflows/build.yml
- docs/README.md
- docs/source/deprecation.rst
- docs/source/environments/index.rst
- docs/source/getting_started/install.rst
- docs/source/getting_started/troubleshooting.rst
- docs/source/getting_started/virtualenv.rst
- package/db/setup.py
- package/desktop/setup.py
- package/graphql/setup.py
- requirements/common.txt
- requirements/docs.txt
- setup.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
What changes are proposed in this pull request?
Deprecate python 3.8 as as foretold by prophecy
How is this patch tested? If it is not, please explain why.
Local Build
Release Notes
Is this a user-facing change that should be mentioned in the release notes?
notes for FiftyOne users.
Python 3.8 is no longer supported; see our deprecation notices for details
What areas of FiftyOne does this PR affect?
fiftyone
Python library changesSummary by CodeRabbit
Summary by CodeRabbit
New Features
Bug Fixes
Documentation