Skip to content

Commit fc158f2

Browse files
committed
Package updates
Signed-off-by: Prabhu Subramanian <[email protected]>
1 parent 9eb99c1 commit fc158f2

File tree

13 files changed

+270
-312
lines changed

13 files changed

+270
-312
lines changed

.github/workflows/containers.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
contents: write
2121
packages: write
2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
with:
2525
fetch-depth: 0
2626
- name: Set up JDK
27-
uses: actions/setup-java@v3
27+
uses: actions/setup-java@v4
2828
with:
2929
distribution: 'zulu'
3030
java-version: '21'
@@ -35,11 +35,11 @@ jobs:
3535
php-version: "8.3"
3636
tools: composer:v2
3737
- name: Set up Python
38-
uses: actions/setup-python@v4
38+
uses: actions/setup-python@v5
3939
with:
4040
python-version: '3.11'
4141
- name: Use Node.js
42-
uses: actions/setup-node@v3
42+
uses: actions/setup-node@v4
4343
with:
4444
node-version: '21.x'
4545
- name: Delete `.rustup` directory
@@ -48,7 +48,7 @@ jobs:
4848
- name: Delete `.cargo` directory # to save disk space
4949
run: rm -rf /home/runner/.cargo
5050
if: runner.os == 'Linux'
51-
- uses: actions/cache@v3
51+
- uses: actions/cache@v4
5252
with:
5353
path: |
5454
~/.sbt
@@ -69,7 +69,7 @@ jobs:
6969
run: |
7070
cd target
7171
echo $GITHUB_TOKEN | oras login ghcr.io -u $GITHUB_USERNAME --password-stdin
72-
oras push ghcr.io/$IMAGE_NAME:v1 \
72+
oras push ghcr.io/$IMAGE_NAME:v2 \
7373
--annotation-file ../ci/annotations.json \
7474
./chen.zip:application/vnd.appthreat.chen.layer.v1+tar \
7575
./chen-science-requirements.txt:application/vnd.appthreat.chen.layer.v1+tar \

.github/workflows/master.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
test:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
with:
1313
fetch-depth: 0
1414
- name: Set up JDK
15-
uses: actions/setup-java@v3
15+
uses: actions/setup-java@v4
1616
with:
1717
distribution: 'zulu'
1818
java-version: '21'
@@ -23,11 +23,11 @@ jobs:
2323
php-version: "8.3"
2424
tools: composer:v2
2525
- name: Set up Python
26-
uses: actions/setup-python@v4
26+
uses: actions/setup-python@v5
2727
with:
2828
python-version: '3.11'
2929
- name: Use Node.js
30-
uses: actions/setup-node@v3
30+
uses: actions/setup-node@v4
3131
with:
3232
node-version: '21.x'
3333
- name: Delete `.rustup` directory
@@ -57,7 +57,7 @@ jobs:
5757
python3.11 -m poetry config virtualenvs.create false
5858
python3.11 -m poetry install --no-cache
5959
python3.11 -m poetry run flake8 chenpy --count --select=E9,F63,F7,F82 --show-source --statistics
60-
- uses: actions/cache@v3
60+
- uses: actions/cache@v4
6161
with:
6262
path: |
6363
~/.sbt

.github/workflows/pr.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
os: [ubuntu-latest, windows-latest, macos-latest]
99
jvm: ['21']
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
with:
1313
fetch-depth: 1
1414
- name: Set up JDK
15-
uses: actions/setup-java@v3
15+
uses: actions/setup-java@v4
1616
with:
1717
distribution: 'zulu'
1818
java-version: ${{ matrix.jvm }}
@@ -23,11 +23,11 @@ jobs:
2323
php-version: "8.3"
2424
tools: composer:v2
2525
- name: Set up Python
26-
uses: actions/setup-python@v4
26+
uses: actions/setup-python@v5
2727
with:
2828
python-version: '3.11'
2929
- name: Use Node.js
30-
uses: actions/setup-node@v3
30+
uses: actions/setup-node@v4
3131
with:
3232
node-version: '21.x'
3333
- name: Delete `.rustup` directory
@@ -57,7 +57,7 @@ jobs:
5757
python3 -m poetry config virtualenvs.create false
5858
python3 -m poetry install --no-cache
5959
poetry run flake8 chenpy --count --select=E9,F63,F7,F82 --show-source --statistics
60-
- uses: actions/cache@v3
60+
- uses: actions/cache@v4
6161
with:
6262
path: |
6363
~/.sbt

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
contents: write
1313
packages: write
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818
- name: Set up JDK
19-
uses: actions/setup-java@v3
19+
uses: actions/setup-java@v4
2020
with:
2121
distribution: 'zulu'
2222
java-version: '21'
@@ -27,11 +27,11 @@ jobs:
2727
php-version: "8.3"
2828
tools: composer:v2
2929
- name: Set up Python
30-
uses: actions/setup-python@v4
30+
uses: actions/setup-python@v5
3131
with:
3232
python-version: '3.11'
3333
- name: Use Node.js
34-
uses: actions/setup-node@v3
34+
uses: actions/setup-node@v4
3535
with:
3636
node-version: '21.x'
3737
- name: Delete `.rustup` directory
@@ -40,7 +40,7 @@ jobs:
4040
- name: Delete `.cargo` directory # to save disk space
4141
run: rm -rf /home/runner/.cargo
4242
if: runner.os == 'Linux'
43-
- uses: actions/cache@v3
43+
- uses: actions/cache@v4
4444
with:
4545
path: |
4646
~/.sbt

.github/workflows/win_compat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v4
17-
- uses: actions/setup-python@v4
17+
- uses: actions/setup-python@v5
1818
with:
1919
python-version: ${{ matrix.python-version }}
2020
- name: Install

chenpy/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def install_py_modules(pack="database"):
184184
conda install -n chenpy-local -c pytorch pytorch torchtext cpuonly --solver=libmamba -y
185185
pip install pyg_lib -f https://data.pyg.org/whl/torch-2.1.0+cpu.html
186186
conda install -n chenpy-local -c conda-forge scipy numpy packageurl-python nbconvert jupyter_core jupyter_client notebook --solver=libmamba -y
187-
conda install -n chenpy-local -c conda-forge oras-py httpx websockets orjson rich appdirs psutil gitpython --solver=libmamba -y"""
187+
conda install -n chenpy-local -c conda-forge oras-py==0.1.26 httpx websockets orjson rich appdirs psutil gitpython --solver=libmamba -y"""
188188
for line in conda_install_script.split("\n"):
189189
if line.strip():
190190
task = progress.add_task(line, start=False, total=100)
@@ -227,6 +227,7 @@ def detect_python_lib_path():
227227
return lib_dir, py_version
228228
cp = subprocess.run(
229229
["python3-config", "--ldflags", "--embed"],
230+
check=True,
230231
capture_output=True,
231232
encoding="utf-8",
232233
shell=USE_SHELL,

chenpy/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
os.makedirs(chen_home)
88

99
# chen oras distribution url
10-
chen_distribution_url = "ghcr.io/appthreat/chen-platform:v1"
10+
chen_distribution_url = "ghcr.io/appthreat/chen-platform:v2"

contrib/README.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

contrib/java21.patch

Lines changed: 0 additions & 39 deletions
This file was deleted.

meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ requirements:
2424
- conda-forge::websockets>=11.0.2,<12.0.0
2525
- conda-forge::orjson>=3.9.0,<4.0.0
2626
- conda-forge::rich>=13.4.1,<14.0.0
27-
- conda-forge::oras-py>=0.1.25
27+
- conda-forge::oras-py==0.1.26
2828
- conda-forge::appdirs>=1.4.4,<2.0.0
2929
- conda-forge::psutil>=5.9.5,<6.0.0
3030
- conda-forge::packageurl-python>=0.11.2,<0.12.0

0 commit comments

Comments
 (0)