Skip to content

Commit af55c55

Browse files
authored
Merge pull request #397 from mitodl/renovate/python-3.x
chore(deps): update dependency python to 3.13
2 parents c2c20a7 + f5961cf commit af55c55

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Set up Python
1414
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
1515
with:
16-
python-version: "3.9"
16+
python-version: "3.13"
1717

1818
- id: cache
1919
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3

publish.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ async def upload_with_twine(
5757
}
5858

5959
python_path = os.path.join(virtualenv_dir, "bin", "python")
60+
pip_path = os.path.join(virtualenv_dir, "bin", "pip")
6061
twine_path = os.path.join(virtualenv_dir, "bin", "twine")
6162

6263
# Create source distribution and wheel.
64+
await call([pip_path, "install", "setuptools"], env=environ, cwd=project_dir)
6365
await call([python_path, "setup.py", "sdist"], env=environ, cwd=project_dir)
6466
await call([python_path, "setup.py", "bdist_wheel"], env=environ, cwd=project_dir)
6567
dist_files = os.listdir(os.path.join(project_dir, "dist"))

release.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
from subprocess import CalledProcessError
66

7-
from pkg_resources import parse_version
7+
from packaging.version import parse
88

99
from async_subprocess import (
1010
call,
@@ -235,7 +235,7 @@ async def release(
235235
working_dir=working_dir,
236236
readonly=False,
237237
)
238-
if parse_version(old_version) >= parse_version(new_version):
238+
if parse(old_version) >= parse(new_version):
239239
raise ReleaseException(
240240
f"old version is {old_version} but the new version {new_version} is not newer"
241241
)

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ requests
44
sentry-sdk
55
tornado
66
virtualenv
7+
packaging

0 commit comments

Comments
 (0)