Skip to content

Commit bad7b5d

Browse files
authored
Merge pull request #67 from EnzymeML/v2-migration
PyEnzyme v2.0.0
2 parents 427290b + 280c42e commit bad7b5d

250 files changed

Lines changed: 51757 additions & 301297 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

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

.github/workflows/lint.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Ruff
2+
on: [push, pull_request]
3+
jobs:
4+
ruff:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- uses: chartboost/ruff-action@v1
9+
with:
10+
src: "./pyenzyme"
11+
- uses: chartboost/ruff-action@v1
12+
with:
13+
src: "./tests"

.github/workflows/python-publish.yml

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

.github/workflows/stale.yml

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

.github/workflows/unit-tests.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Unit Tests
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
max-parallel: 4
10+
fail-fast: false
11+
matrix:
12+
python-version: ['3.10', '3.11', '3.12', '3.13']
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
python3 -m pip install --upgrade pip
24+
python3 -m pip install pytest-cov openpyxl pytest-httpx pysces lmfit seaborn numexpr python-libcombine deepdiff
25+
pip3 install -e .
26+
27+
- name: Test with pytest
28+
run: |
29+
python3 -m pytest -v

.gitignore

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,24 @@ dmypy.json
131131
# Pyre type checker
132132
.pyre/
133133

134+
# pyrightconfig
135+
pyrightconfig.json
136+
134137
# pytype static type analyzer
135138
.pytype/
136139

137140
# Cython debug symbols
138141
cython_debug/
139142
pyenzyme/Examples/getJSONValid.py
140143

141-
# test dirs
144+
# test dirs
142145
tests/tmp
143146

144147
# PyCharm IDE
145-
.idea/
148+
.idea/
149+
150+
# Mac OS
151+
.DS_Store
152+
153+
# Poetry
154+
poetry.lock

.readthedocs.yaml

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

Dockerfile

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
1-
FROM python:3.9
2-
WORKDIR /app
3-
4-
COPY . /app
1+
ARG PYTHON_VERSION=3.11.9
2+
FROM python:${PYTHON_VERSION}-slim-bullseye
53

6-
RUN apt-get update \
7-
&& apt-get install -y --no-install-recommends git \
8-
&& apt-get install -y --no-install-recommends gcc \
9-
&& apt-get install -y --no-install-recommends cmake \
10-
&& apt-get purge -y --auto-remove
4+
RUN apt-get update
5+
RUN pip install poetry
116

7+
WORKDIR /app
8+
COPY . /app
129

13-
RUN pip3 install git+https://github.com/EnzymeML/PyEnzyme.git
14-
RUN pip3 install fastapi uvicorn jinja2
15-
16-
COPY pyenzyme_server.py /app
10+
RUN poetry install --with tests
1711

18-
CMD ["uvicorn", "pyenzyme_server:app", "--host", "0.0.0.0", "--port", "80"]
12+
ENTRYPOINT ["poetry", "run", "pytest", "-vv"]

0 commit comments

Comments
 (0)