Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: "3.9"
python-version: "3.13"

- id: cache
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
Expand Down
2 changes: 2 additions & 0 deletions publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ async def upload_with_twine(
}

python_path = os.path.join(virtualenv_dir, "bin", "python")
pip_path = os.path.join(virtualenv_dir, "bin", "pip")
twine_path = os.path.join(virtualenv_dir, "bin", "twine")

# Create source distribution and wheel.
await call([pip_path, "install", "setuptools"], env=environ, cwd=project_dir)
await call([python_path, "setup.py", "sdist"], env=environ, cwd=project_dir)
await call([python_path, "setup.py", "bdist_wheel"], env=environ, cwd=project_dir)
dist_files = os.listdir(os.path.join(project_dir, "dist"))
Expand Down
4 changes: 2 additions & 2 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import os
from subprocess import CalledProcessError

from pkg_resources import parse_version
from packaging.version import parse

from async_subprocess import (
call,
Expand Down Expand Up @@ -235,7 +235,7 @@ async def release(
working_dir=working_dir,
readonly=False,
)
if parse_version(old_version) >= parse_version(new_version):
if parse(old_version) >= parse(new_version):
raise ReleaseException(
f"old version is {old_version} but the new version {new_version} is not newer"
)
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ requests
sentry-sdk
tornado
virtualenv
packaging