Skip to content

Commit

Permalink
feat: remove code and tests related to python 3.7 (#12175)
Browse files Browse the repository at this point in the history
This change removes code and tests related to Python 3.7.

## Checklist
- [x] PR author has checked that all the criteria below are met
- The PR description includes an overview of the change
- The PR description articulates the motivation for the change
- The change includes tests OR the PR description describes a testing
strategy
- The PR description notes risks associated with the change, if any
- Newly-added code is easy to change
- The change follows the [library release note
guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html)
- The change includes or references documentation updates if necessary
- Backport labels are set (if
[applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting))

## Reviewer Checklist
- [x] Reviewer has checked that all the criteria below are met 
- Title is accurate
- All changes are related to the pull request's stated goal
- Avoids breaking
[API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces)
changes
- Testing strategy adequately addresses listed risks
- Newly-added code is easy to change
- Release note makes sense to a user of the library
- If necessary, author has acknowledged and discussed the performance
implications of this PR as reported in the benchmarks PR comment
- Backport labels are set in a manner that is consistent with the
[release branch maintenance
policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)

---------

Co-authored-by: Taegyun Kim <[email protected]>
  • Loading branch information
emmettbutler and taegyunkim authored Feb 3, 2025
1 parent ea2a9a5 commit 6897792
Show file tree
Hide file tree
Showing 297 changed files with 551 additions and 8,258 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/generate-package-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ jobs:
with:
persist-credentials: false

- name: Setup Python 3.7
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: "3.7"

- name: Setup Python 3.8
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
Expand Down
15 changes: 5 additions & 10 deletions .github/workflows/generate-supported-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ jobs:
with:
persist-credentials: false

- name: Setup Python 3.7
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: "3.7"

- name: Setup Python 3.8
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
Expand All @@ -46,7 +41,7 @@ jobs:
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: "3.12"

- name: Setup Python 3.13
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
Expand All @@ -70,18 +65,18 @@ jobs:
pip install requests
pip install riot==0.20.1
pip install wrapt==1.16.0
- name: Install ddtrace
run: |
pip install -e .
- run: python scripts/freshvenvs.py generate

- name: Generate table
run: python scripts/generate_table.py

- run: git diff

- name: Create Pull Request
id: pr
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0
Expand All @@ -96,7 +91,7 @@ jobs:
body: |
Generates / updates the supported versions table for integrations.
This should be tied to releases, or triggered manually.
Workflow runs: [Generate Supported Integration Versions](https://github.com/DataDog/dd-trace-py/actions/workflows/generate-supported-versions.yml)
Workflow runs: [Generate Supported Integration Versions](https://github.com/DataDog/dd-trace-py/actions/workflows/generate-supported-versions.yml)
## Checklist
- [x] PR author has checked that all the criteria below are met
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/requirements-locks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"

- name: Set python interpreters
run: pyenv global 3.10 3.7 3.8 3.9 3.11 3.12 3.13
run: pyenv global 3.10 3.8 3.9 3.11 3.12 3.13

- name: Install Dependencies
run: pip install --upgrade pip && pip install riot==0.20.1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
# Keep this in sync with hatch.toml
python-version: ["3.7", "3.10", "3.12"]
python-version: ["3.10", "3.12"]

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand Down
2 changes: 0 additions & 2 deletions .gitlab/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ download_dependency_wheels:
needs: [ download_ddtrace_artifacts ]
parallel:
matrix: # The image tags that are mirrored are in: https://github.com/DataDog/images/blob/master/mirror.yaml
- PYTHON_IMAGE_TAG: "3.7"
PYTHON_VERSION: "3.7"
- PYTHON_IMAGE_TAG: "3.8"
PYTHON_VERSION: "3.8"
- PYTHON_IMAGE_TAG: "3.9.13"
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/testrunner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
timeout: 20m
before_script:
- ulimit -c unlimited
- pyenv global 3.12 3.7 3.8 3.9 3.10 3.11 3.13
- pyenv global 3.12 3.8 3.9 3.10 3.11 3.13
- export _CI_DD_AGENT_URL=http://${HOST_IP}:8126/
2 changes: 1 addition & 1 deletion .gitlab/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ build_base_venvs:
stage: riot
parallel:
matrix:
- PYTHON_VERSION: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
- PYTHON_VERSION: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
variables:
CMAKE_BUILD_PARALLEL_LEVEL: 12
PIP_VERBOSE: 1
Expand Down
26 changes: 0 additions & 26 deletions .riot/requirements/1001365.txt

This file was deleted.

26 changes: 0 additions & 26 deletions .riot/requirements/100cc0e.txt

This file was deleted.

31 changes: 0 additions & 31 deletions .riot/requirements/1012b6a.txt

This file was deleted.

38 changes: 0 additions & 38 deletions .riot/requirements/1026e4e.txt

This file was deleted.

25 changes: 0 additions & 25 deletions .riot/requirements/105d554.txt

This file was deleted.

26 changes: 0 additions & 26 deletions .riot/requirements/10733d8.txt

This file was deleted.

32 changes: 0 additions & 32 deletions .riot/requirements/10a626b.txt

This file was deleted.

25 changes: 0 additions & 25 deletions .riot/requirements/10aef09.txt

This file was deleted.

42 changes: 0 additions & 42 deletions .riot/requirements/10bb9be.txt

This file was deleted.

Loading

0 comments on commit 6897792

Please sign in to comment.