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

Pipe 518 python 3.12 upgrade #4074

Closed ayubshahab closed 5 months ago

ayubshahab commented 7 months ago

Description: This PR is regarding the Python 3.12 upgrade and includes config file updates, code formatting, removed deprecated code and updated class imports.

Technical details: Includes config files updates as well as dependency upgrades. Updated deprecated code & libraries and formatted codebase to adhered to new versions of black, flake8, and Dredd.

Other: This PR is not mean to be merged into QAT until the full upgrade to Python 3.12 is completed. All tests passing and all api endpoints have been verified. Further code changes that need to occur to ensure all tests passing will have their respective branches merged into the change branch pipe-518-python-3.12-upgrade

Requirements for PR merge:

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

Area for explaining above N/A when needed:

ayubshahab commented 5 months ago

Since we decided on updating to python 3.10.12 from python 3.8.16. The feature branch pipe-518-python-3.12-upgrade itself can be stashed away until we are ready to update to python 3.12.