Skip to content

Commit ca96499

Browse files
authored
Merge pull request #352 from EasyPost/py313
chore: test on python 3.13
2 parents 6c21081 + b45d2d5 commit ca96499

File tree

4 files changed

+8
-14
lines changed

4 files changed

+8
-14
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,17 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- uses: actions/setup-python@v5
1515
with:
16-
python-version: '3.12'
16+
python-version: '3.13'
1717
- name: Install Dependencies
1818
run: make install
1919
- name: Lint
2020
run: make lint
2121
run-tests:
22-
runs-on: ubuntu-latest
22+
# TODO: Use `latest` once we drop support for Python 3.7
23+
runs-on: ubuntu-22.04
2324
strategy:
2425
matrix:
25-
pythonversion: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
26+
pythonversion: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
2627
steps:
2728
- uses: actions/checkout@v4
2829
- uses: actions/setup-python@v5
@@ -47,7 +48,7 @@ jobs:
4748
- uses: actions/checkout@v4
4849
- uses: actions/setup-python@v5
4950
with:
50-
python-version: '3.12'
51+
python-version: '3.13'
5152
- name: Install Dependencies
5253
run: make install
5354
- name: Generate Docs

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v4
1313
- uses: actions/setup-python@v5
1414
with:
15-
python-version: '3.12'
15+
python-version: '3.13'
1616
- name: Build package
1717
run: make install build
1818
- name: Publish to PyPI

Makefile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,7 @@ lint-fix: black isort
6868

6969
## mypy - Run mypy type checking on the project
7070
mypy:
71-
$(VIRTUAL_BIN)/mypy $(PROJECT_NAME)/ $(TEST_DIR)/ --config-file examples/style_guides/python/pyproject.toml
72-
73-
## publish - Publish the project to PyPI
74-
publish:
75-
$(VIRTUAL_BIN)/twine upload dist/*
71+
$(VIRTUAL_BIN)/mypy $(PROJECT_NAME)/ $(TEST_DIR)/ --config-file examples/style_guides/python/pyproject.toml --install-types --non-interactive
7672

7773
## release - Cuts a release for the project on GitHub (requires GitHub CLI)
7874
# tag = The associated tag title of the release
@@ -88,4 +84,4 @@ scan:
8884
test:
8985
$(VIRTUAL_BIN)/pytest
9086

91-
.PHONY: help black black-check build clean coverage docs flake8 install isort isort-check lint lint-fix mypy publish release scan test
87+
.PHONY: help black black-check build clean coverage docs flake8 install isort isort-check lint lint-fix mypy release scan test

setup.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
"pytest-cov==4.*",
2121
"pytest-vcr==1.*",
2222
"pytest==7.*",
23-
"twine==5.*;python_version>='3.8'", # TODO: remove python pin when 3.7 is dropped
24-
"types-requests",
25-
"types-urllib3",
2623
"vcrpy==4.*", # TODO: vcrpy v5 requires Python 3.8+
2724
]
2825

0 commit comments

Comments
 (0)