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

[Dev-10645] Upgrade python to version 3.10.12 #4079

Open
wants to merge 77 commits into
base: qat
Choose a base branch
from

Conversation

ayubshahab
Copy link
Contributor

@ayubshahab ayubshahab commented Apr 25, 2024

Description:
This feature branch is an accumulation of multiple tickets that spawned from initially updating usaspending-api from python 3.8.16 to python 3.10.12. This PR includes config file updates, code formatting changes, legacy code updates, deprecated functionality updates, testing suite updates and more.

Technical details:
DEV-10645 was decided as the feature branch were all work regarding python 3.10.12 upgrade would get merged into. After this branch is in a stable condition and has been thoroughly tested in different environments such as Sandbox, then it can be safely merged into QAT.

Requirements for PR merge:

  1. Unit & integration tests updated
  2. API documentation updated
  3. Necessary PR reviewers:
    • Backend\
  4. Data validation completed
  5. Appropriate Operations ticket(s) created
  6. Jira Ticket DEV-10645:
    • Link to this Pull-Request

Area for explaining above N/A when needed:

ayubshahab and others added 27 commits March 18, 2024 02:07
…onfig files as well as the library imports are interdependent.
…ot yet been moved to the current sprint. However, I implemented the changes so travis build could proceed to the unit tests where I can see the spark/unit tests that are failing.
…we upgraded the black dependency to make it compatible with version 3.10.13. This ticket has not yet been moved to the current sprint. However, I implemented the changes so travis build could proceed to the unit tests where I can see the spark/unit tests that are failing.
…rrors.InvalidCursorName as seemingly certain functionality has been changed in newer versions. However, the version of Django we were previously using, 3.2.* the minor version is still compatible with python 3.10.13 so reverted back to that and the error resolved itself.
…n version 3.10.13 but so is django version 4.2.11. Testing this now to see if it causes any additional errors with existing functinality and tests.
…e-config-files

[DEV-10756] update config files [DEV-10745] update library imports
…8-remove-unused-imports

[DEV-10804] Removed unused imports flagged by flake8
…-reformatting

[DEV-10805] Reformat files flagged by black
…nit-tests

[DEV-10748] Fix for psycopg2.errors.InvalidCursorName while running tests
…rigger_test_db_setup-fix

[Pipe-528] Fix for test_trigger_test_db_setup error
@ayubshahab ayubshahab changed the title Dev 10645 python upgrade 3.10 [Dev-106450] Upgrade python to version 3.10.13 May 1, 2024
@ayubshahab ayubshahab added the do not merge [pr] This PR should not be merged label May 1, 2024
@ayubshahab ayubshahab changed the title [Dev-106450] Upgrade python to version 3.10.13 [Dev-10645] Upgrade python to version 3.10.13 May 2, 2024
@ayubshahab ayubshahab removed the do not merge [pr] This PR should not be merged label Jun 13, 2024
@ayubshahab ayubshahab force-pushed the dev-10645-python-upgrade-3.10 branch from b9266cb to 2211ed7 Compare June 13, 2024 19:45
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.

None yet

3 participants