Skip to content

Commit

Permalink
Package updates
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
  • Loading branch information
prabhu committed Jan 30, 2024
1 parent 9eb99c1 commit fc158f2
Show file tree
Hide file tree
Showing 13 changed files with 270 additions and 312 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
contents: write
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
Expand All @@ -35,11 +35,11 @@ jobs:
php-version: "8.3"
tools: composer:v2
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '21.x'
- name: Delete `.rustup` directory
Expand All @@ -48,7 +48,7 @@ jobs:
- name: Delete `.cargo` directory # to save disk space
run: rm -rf /home/runner/.cargo
if: runner.os == 'Linux'
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.sbt
Expand All @@ -69,7 +69,7 @@ jobs:
run: |
cd target
echo $GITHUB_TOKEN | oras login ghcr.io -u $GITHUB_USERNAME --password-stdin
oras push ghcr.io/$IMAGE_NAME:v1 \
oras push ghcr.io/$IMAGE_NAME:v2 \
--annotation-file ../ci/annotations.json \
./chen.zip:application/vnd.appthreat.chen.layer.v1+tar \
./chen-science-requirements.txt:application/vnd.appthreat.chen.layer.v1+tar \
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
Expand All @@ -23,11 +23,11 @@ jobs:
php-version: "8.3"
tools: composer:v2
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '21.x'
- name: Delete `.rustup` directory
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
python3.11 -m poetry config virtualenvs.create false
python3.11 -m poetry install --no-cache
python3.11 -m poetry run flake8 chenpy --count --select=E9,F63,F7,F82 --show-source --statistics
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.sbt
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
jvm: ['21']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.jvm }}
Expand All @@ -23,11 +23,11 @@ jobs:
php-version: "8.3"
tools: composer:v2
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '21.x'
- name: Delete `.rustup` directory
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
python3 -m poetry config virtualenvs.create false
python3 -m poetry install --no-cache
poetry run flake8 chenpy --count --select=E9,F63,F7,F82 --show-source --statistics
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.sbt
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
contents: write
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
Expand All @@ -27,11 +27,11 @@ jobs:
php-version: "8.3"
tools: composer:v2
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '21.x'
- name: Delete `.rustup` directory
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Delete `.cargo` directory # to save disk space
run: rm -rf /home/runner/.cargo
if: runner.os == 'Linux'
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.sbt
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 @@ -14,7 +14,7 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install
Expand Down
3 changes: 2 additions & 1 deletion chenpy/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def install_py_modules(pack="database"):
conda install -n chenpy-local -c pytorch pytorch torchtext cpuonly --solver=libmamba -y
pip install pyg_lib -f https://data.pyg.org/whl/torch-2.1.0+cpu.html
conda install -n chenpy-local -c conda-forge scipy numpy packageurl-python nbconvert jupyter_core jupyter_client notebook --solver=libmamba -y
conda install -n chenpy-local -c conda-forge oras-py httpx websockets orjson rich appdirs psutil gitpython --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"""
for line in conda_install_script.split("\n"):
if line.strip():
task = progress.add_task(line, start=False, total=100)
Expand Down Expand Up @@ -227,6 +227,7 @@ def detect_python_lib_path():
return lib_dir, py_version
cp = subprocess.run(
["python3-config", "--ldflags", "--embed"],
check=True,
capture_output=True,
encoding="utf-8",
shell=USE_SHELL,
Expand Down
2 changes: 1 addition & 1 deletion chenpy/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
os.makedirs(chen_home)

# chen oras distribution url
chen_distribution_url = "ghcr.io/appthreat/chen-platform:v1"
chen_distribution_url = "ghcr.io/appthreat/chen-platform:v2"
8 changes: 0 additions & 8 deletions contrib/README.md

This file was deleted.

39 changes: 0 additions & 39 deletions contrib/java21.patch

This file was deleted.

2 changes: 1 addition & 1 deletion meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ requirements:
- conda-forge::websockets>=11.0.2,<12.0.0
- conda-forge::orjson>=3.9.0,<4.0.0
- conda-forge::rich>=13.4.1,<14.0.0
- conda-forge::oras-py>=0.1.25
- conda-forge::oras-py==0.1.26
- conda-forge::appdirs>=1.4.4,<2.0.0
- conda-forge::psutil>=5.9.5,<6.0.0
- conda-forge::packageurl-python>=0.11.2,<0.12.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class EasyTagsPass(atom: Cpg) extends CpgPass(atom):
atom.call.methodFullName("java.security.*doFinal.*").newTagNode(
"crypto-generate"
).store()(dstGraph)
atom.call.methodFullName("org.bouncycastle.*(doFinal|generate).*").newTagNode(
atom.call.methodFullName("org.bouncycastle.*(doFinal|generate|build).*").newTagNode(
"crypto-generate"
).store()(dstGraph)
atom.call.methodFullName("javax.(security|crypto).*doFinal.*").newTagNode(
Expand Down
Loading

0 comments on commit fc158f2

Please sign in to comment.