Skip to content

Commit

Permalink
Update to python 3.13
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <[email protected]>
  • Loading branch information
prabhu committed Nov 16, 2024
1 parent 97b153e commit f16443e
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 26 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13'
- name: Use Node.js
uses: actions/setup-node@v4
with:
Expand All @@ -68,13 +68,13 @@ jobs:
sbt stage createDistribution
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SCALAPY_PYTHON_LIBRARY: "python3.12"
SCALAPY_PYTHON_LIBRARY: "python3.13"
- name: Export python requirements
run: |
python3.12 -m pip install --upgrade pip
python3.12 -m pip install poetry
python3.12 -m poetry export -f requirements.txt --with=science --without-hashes --output target/chen-science-requirements.txt
python3.12 -m poetry export -f requirements.txt --with=database --without-hashes --output target/chen-database-requirements.txt
python3.13 -m pip install --upgrade pip
python3.13 -m pip install poetry
python3.13 -m poetry export -f requirements.txt --with=science --without-hashes --output target/chen-science-requirements.txt
python3.13 -m poetry export -f requirements.txt --with=database --without-hashes --output target/chen-database-requirements.txt
- name: Upload chen to ghcr
run: |
cd target
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13'
- name: Use Node.js
uses: actions/setup-node@v4
with:
Expand All @@ -54,11 +54,11 @@ jobs:
run: |
bash ./platform/frontends/php2atom/install.sh
npm install -g @appthreat/atom
python3.12 -m pip install --upgrade pip
python3.12 -m pip install poetry
python3.12 -m poetry config virtualenvs.create false
python3.12 -m poetry install --no-cache
python3.12 -m poetry run flake8 chenpy --count --select=E9,F63,F7,F82 --show-source --statistics
python3.13 -m pip install --upgrade pip
python3.13 -m pip install poetry
python3.13 -m poetry config virtualenvs.create false
python3.13 -m poetry install --no-cache
python3.13 -m poetry run flake8 chenpy --count --select=E9,F63,F7,F82 --show-source --statistics
- uses: actions/cache@v4
with:
path: |
Expand All @@ -69,7 +69,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JAVA_TOOL_OPTIONS: "-Dfile.encoding=UTF-8 -Djna.library.path=${{ env.Python3_ROOT_DIR }}"
SCALAPY_PYTHON_LIBRARY: "python3.12"
SCALAPY_PYTHON_LIBRARY: "python3.13"
if: runner.os != 'Windows'
- name: Compile and run tests
run: sbt scalafmtCheck +test
Expand All @@ -84,4 +84,4 @@ jobs:
cdxgen -t sbt -o bom.json . -p --no-recurse
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SCALAPY_PYTHON_LIBRARY: "python3.12"
SCALAPY_PYTHON_LIBRARY: "python3.13"
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13'
- name: Use Node.js
uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JAVA_TOOL_OPTIONS: "-Dfile.encoding=UTF-8 -Djna.library.path=${{ env.Python3_ROOT_DIR }}"
SCALAPY_PYTHON_LIBRARY: "python3.12"
SCALAPY_PYTHON_LIBRARY: "python3.13"
if: runner.os != 'Windows'
- name: Compile and run tests
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13'
- name: Use Node.js
uses: actions/setup-node@v4
with:
Expand All @@ -57,14 +57,14 @@ jobs:
sbt createDistribution
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SCALAPY_PYTHON_LIBRARY: "python3.12"
SCALAPY_PYTHON_LIBRARY: "python3.13"
- name: sbt publish
run: |
sbt publish
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SCALAPY_PYTHON_LIBRARY: "python3.12"
SCALAPY_PYTHON_LIBRARY: "python3.13"
- name: Install and test
run: |
npm install -g @appthreat/atom
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
cdxgen -t sbt -o bom.json . --no-recurse
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SCALAPY_PYTHON_LIBRARY: "python3.12"
SCALAPY_PYTHON_LIBRARY: "python3.13"
- name: Create Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/win_compat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
python-version: ['3.10','3.11','3.12']
python-version: ['3.10','3.11','3.12','3.13']
with-science: ["--download", "--download --with-science"]
fail-fast: false

Expand Down
10 changes: 5 additions & 5 deletions chenpy/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,11 @@ def install_py_modules(pack="database"):
)
with Progress(transient=True) as progress:
conda_install_script = """conda create --name chenpy-local python=3.12 -y
conda install -n chenpy-local conda-libmamba-solver -y
conda install -n chenpy-local -c conda-forge networkx --solver=libmamba -y
conda install -n chenpy-local -c pytorch pytorch torchtext cpuonly --solver=libmamba -y
conda install -n chenpy-local -c conda-forge numpy packageurl-python nbconvert jupyter_core jupyter_client notebook --solver=libmamba -y
conda install -n chenpy-local -c conda-forge oras-py==0.1.26 httpx websockets orjson rich appdirs psutil gitpython --solver=libmamba -y"""
conda install -n chenpy-local -y
conda install -n chenpy-local -c conda-forge networkx -y
conda install -n chenpy-local -c pytorch pytorch torchtext cpuonly -y
conda install -n chenpy-local -c conda-forge numpy packageurl-python nbconvert jupyter_core jupyter_client notebook -y
conda install -n chenpy-local -c conda-forge oras-py==0.1.26 httpx websockets orjson rich appdirs psutil gitpython -y"""
for line in conda_install_script.split("\n"):
if line.strip():
task = progress.add_task(line, start=False, total=100)
Expand Down

0 comments on commit f16443e

Please sign in to comment.