fedspendingtransparency / usaspending-api

Server application to serve U.S. federal spending data via a RESTful API
https://www.usaspending.gov
Creative Commons Zero v1.0 Universal
310 stars 113 forks source link

[DEV-10645] Research Upgrade to Python 3.10.* #4040

Closed ayubshahab closed 8 months ago

ayubshahab commented 8 months ago

Description: While researching upgrade to python 3.10.13 from python 3.8.16, there were many dependencies that were outdated and needed to be upgraded to python 3.10.13 compatible versions. Some dependencies, such as elasticsearch and elasticsearch-dsl, were capped at version below 8 as upgrading them would require switching to opensearch. Code changes are also necessary with this upgrade, some of which have been adressed, others have not.

The unit test suit was affected by this upgrade in python version and the upgraded respective dependencies as further code changes are necessary to enable to test suit to run fully without ERRORS.

Technical details: The technical details for the knowledge of other developers. Any detailed caveats or specific deployment steps should be outlined here.

Requirements for PR merge:

  1. [x] Unit & integration tests updated - N/A
  2. [x] API documentation updated - N/A
  3. [x] Necessary PR reviewers:
    • [x] Backend
    • [x] Operations
  4. [x] Appropriate Operations ticket(s) created
  5. [x] Jira Ticket DEV-10645:
    • [x] Link to this Pull-Request

Area for explaining above N/A when needed:

ayubshahab commented 8 months ago

A more detailed branch for dev-10645 was created (dev-10645-python-upgrade-3.10) which will have all the tickets related to python 3.10.13 upgrade merged into