Skip to content

Commit

Permalink
⚙️ rm 3.9 support due to multiple problems
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Oct 30, 2024
1 parent 8382a54 commit e2cef2e
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 26 deletions.
1 change: 1 addition & 0 deletions .github/workflows/auto-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
- uses: actions/checkout@v2
- uses: eifinger/setup-rye@v1
with:
python-version: 3.10
enable_cache: true
cache_prefix: "venv-codeboxapi"
- run: rye sync
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
pre-commit:
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
python-version: 3.10
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
Expand Down
33 changes: 16 additions & 17 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,22 @@ permissions:

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
14 changes: 9 additions & 5 deletions requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,24 @@
# generate-hashes: false

-e file:.
anyio==4.4.0
anyio==4.6.2.post1
# via httpx
certifi==2024.7.4
certifi==2024.8.30
# via httpcore
# via httpx
exceptiongroup==1.2.2
# via anyio
h11==0.14.0
# via httpcore
httpcore==1.0.5
httpcore==1.0.6
# via httpx
httpx==0.27.0
httpx==0.27.2
# via codeboxapi
idna==3.7
idna==3.10
# via anyio
# via httpx
sniffio==1.3.1
# via anyio
# via httpx
typing-extensions==4.12.2
# via anyio
4 changes: 2 additions & 2 deletions src/codeboxapi/codebox.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from codeboxapi import CodeBox
codebox = CodeBox.create(api_key="local")
codebox = CodeBox(api_key="local")
codebox.healthcheck()
codebox.exec("print('Hello World!')")
Expand All @@ -24,7 +24,7 @@
from codeboxapi import CodeBox
codebox = CodeBox.create(api_key="local")
codebox = CodeBox(api_key="local")
await codebox.ahealthcheck()
await codebox.aexec("print('Hello World!')")
Expand Down

0 comments on commit e2cef2e

Please sign in to comment.