Skip to content

Commit eca0824

Browse files
committed
Merge branch 'update-docs'
2 parents 1c13e47 + d4b0d39 commit eca0824

File tree

124 files changed

+14770
-13025
lines changed

Some content is hidden

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

124 files changed

+14770
-13025
lines changed

.github/workflows/docs.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build and deploy Astro docs
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout your repository using git
18+
uses: actions/checkout@v6
19+
20+
- name: Install, build, and upload your site
21+
uses: withastro/action@v5
22+
with:
23+
path: './docs'
24+
25+
deploy:
26+
needs: build
27+
runs-on: ubuntu-latest
28+
environment:
29+
name: github-pages
30+
url: ${{ steps.deployment.outputs.page_url }}
31+
steps:
32+
- name: Deploy to GitHub Pages
33+
id: deployment
34+
uses: actions/deploy-pages@v4

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
- uses: actions/checkout@v4
88
- uses: chartboost/ruff-action@v1
99
with:
10-
src: "./pyenzyme"
10+
src: './pyenzyme'
1111
- uses: chartboost/ruff-action@v1
1212
with:
13-
src: "./tests"
13+
src: './tests'

.github/workflows/publish.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,17 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v2
13-
- name: 'Build and publish to PyPi'
14-
uses: JRubics/poetry-publish@v2.0
15-
with:
16-
pypi_token: ${{ secrets.PYPI_API_TOKEN }}
12+
- name: Checkout
13+
uses: actions/checkout@v6
14+
- name: Install uv
15+
uses: astral-sh/setup-uv@v7
16+
- name: Build
17+
run: uv build
18+
- name: Smoke test (wheel)
19+
run: uv run --isolated --no-project --with dist/*.whl tests/smoke_test.py
20+
- name: Smoke test (source distribution)
21+
run: uv run --isolated --no-project --with dist/*.tar.gz tests/smoke_test.py
22+
- name: Publish to PyPI
23+
run: uv publish
24+
env:
25+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Remote Tests
2+
3+
on: [push]
4+
5+
jobs:
6+
remote-tests:
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@v6
17+
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
23+
- name: Install uv
24+
uses: astral-sh/setup-uv@v7
25+
26+
- name: Install the project
27+
run: uv sync --locked --all-extras --all-groups
28+
29+
- name: Run remote tests
30+
run: uv run pytest -vv -m "remote"

.github/workflows/test-publish.yaml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,17 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v2
11-
- name: 'Build and publish to TestPyPi'
12-
uses: JRubics/poetry-publish@v2.0
13-
with:
14-
pypi_token: ${{ secrets.TEST_PYPI_TOKEN }}
15-
repository_name: 'testpypi'
16-
repository_url: 'https://test.pypi.org/legacy/'
10+
- uses: actions/checkout@v6
11+
12+
- name: Install uv
13+
uses: astral-sh/setup-uv@v7
14+
- name: Build
15+
run: uv build
16+
- name: Smoke test (wheel)
17+
run: uv run --isolated --no-project --with dist/*.whl tests/smoke_test.py
18+
- name: Smoke test (source distribution)
19+
run: uv run --isolated --no-project --with dist/*.tar.gz tests/smoke_test.py
20+
- name: Publish to TestPyPI
21+
run: uv publish --publish-url https://test.pypi.org/legacy/
22+
env:
23+
UV_PUBLISH_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}

.github/workflows/unit-tests.yaml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,14 @@ jobs:
1313

1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v6
1717
- name: Set up Python ${{ matrix.python-version }}
1818
uses: actions/setup-python@v4
1919
with:
2020
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 copasi-basico lmfit seaborn numexpr python-libcombine deepdiff deprecation
25-
pip3 install -e .
26-
27-
- name: Test with pytest
28-
run: |
29-
python3 -m pytest -v
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v7
23+
- name: Install the project
24+
run: uv sync --locked --all-extras --all-groups
25+
- name: Run tests
26+
run: uv run pytest -vv -m "not remote"

docs/.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# build output
2+
dist/
3+
# generated types
4+
.astro/
5+
6+
# dependencies
7+
node_modules/
8+
9+
# logs
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
pnpm-debug.log*
14+
15+
16+
# environment variables
17+
.env
18+
.env.production
19+
20+
# macOS-specific files
21+
.DS_Store

docs/Makefile

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

docs/README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Starlight Starter Kit: Basics
2+
3+
[![Built with Starlight](https://astro.badg.es/v2/built-with-starlight/tiny.svg)](https://starlight.astro.build)
4+
5+
```
6+
npm create astro@latest -- --template starlight
7+
```
8+
9+
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
10+
11+
## 🚀 Project Structure
12+
13+
Inside of your Astro + Starlight project, you'll see the following folders and files:
14+
15+
```
16+
.
17+
├── public/
18+
├── src/
19+
│ ├── assets/
20+
│ ├── content/
21+
│ │ └── docs/
22+
│ └── content.config.ts
23+
├── astro.config.mjs
24+
├── package.json
25+
└── tsconfig.json
26+
```
27+
28+
Starlight looks for `.md` or `.mdx` files in the `src/content/docs/` directory. Each file is exposed as a route based on its file name.
29+
30+
Images can be added to `src/assets/` and embedded in Markdown with a relative link.
31+
32+
Static assets, like favicons, can be placed in the `public/` directory.
33+
34+
## 🧞 Commands
35+
36+
All commands are run from the root of the project, from a terminal:
37+
38+
| Command | Action |
39+
| :------------------------ | :----------------------------------------------- |
40+
| `npm install` | Installs dependencies |
41+
| `npm run dev` | Starts local dev server at `localhost:4321` |
42+
| `npm run build` | Build your production site to `./dist/` |
43+
| `npm run preview` | Preview your build locally, before deploying |
44+
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
45+
| `npm run astro -- --help` | Get help using the Astro CLI |
46+
47+
## 👀 Want to learn more?
48+
49+
Check out [Starlight’s docs](https://starlight.astro.build/), read [the Astro documentation](https://docs.astro.build), or jump into the [Astro Discord server](https://astro.build/chat).

docs/_apiref/modules.rst

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

0 commit comments

Comments
 (0)