Skip to content

Commit d9eac90

Browse files
committed
switching to pyproject.toml
1 parent 70e8e3d commit d9eac90

File tree

255 files changed

+2086
-29057
lines changed

Some content is hidden

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

255 files changed

+2086
-29057
lines changed

.coveragerc

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

.github/workflows/ci.yml

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

.github/workflows/main-cd.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: CD
2+
3+
on:
4+
workflow_run:
5+
workflows: CI
6+
types:
7+
- completed
8+
branches:
9+
- main
10+
11+
env:
12+
PYTHON_VERSION: "3.10"
13+
14+
# Allow one concurrent deployment
15+
concurrency:
16+
group: "pages"
17+
cancel-in-progress: true
18+
19+
jobs:
20+
makedocs:
21+
name: Deploy API Documentation
22+
runs-on: ubuntu-latest
23+
if: success()
24+
25+
steps:
26+
- name: Get the docs_build artifact
27+
uses: actions/download-artifact@v4
28+
with:
29+
name: docs_final
30+
path: docs_build
31+
run-id: ${{ github.event.workflow_run.id }}
32+
github-token: ${{ secrets.GITHUB_TOKEN }}
33+
34+
- name: Display structure of docs
35+
run: ls -R docs_build/
36+
37+
- name: Deploy to GitHub Pages
38+
uses: peaceiris/actions-gh-pages@v4
39+
with:
40+
github_token: ${{ secrets.GITHUB_TOKEN }}
41+
publish_dir: ./docs_build
42+
destination_dir: . # Ensure you deploy to the root of the gh-pages branch
43+
publish_branch: gh-pages
44+
keep_files: false
45+
46+
build-n-publish:
47+
name: Build and publish Python ?? distributions ?? to TestPyPI
48+
runs-on: ubuntu-latest
49+
steps:
50+
- name: Checkout
51+
uses: actions/checkout@v3
52+
- name: Get history and tags for SCM versioning to work
53+
run: |
54+
git fetch --prune --unshallow
55+
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
56+
- name: Set up Python 3.10
57+
uses: actions/setup-python@v4
58+
with:
59+
python-version: "3.10"
60+
61+
- name: Install pypa/build
62+
run: |
63+
python -m pip install build twine
64+
python -m pip install .
65+
66+
- name: Build a binary wheel and a source tarball
67+
run: |
68+
python -m build --sdist --wheel --outdir dist/ .
69+
70+
- name: Check Dist
71+
run: |
72+
python -m twine check dist/*
73+
- name: Upload to Test PyPI
74+
run: |
75+
python -m twine upload -r testpypi -u __token__ -p ${{ secrets.TEST_PYPI_API }} dist/*

.github/workflows/tags-release.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Release on PyPi
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v[0-9]+.[0-9]+.[0-9]+'
7+
jobs:
8+
build-n-publish:
9+
name: Build and publish to PyPI
10+
runs-on: ubuntu-latest
11+
environment: pypi-release
12+
permissions:
13+
id-token: write
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
- name: Get history and tags for SCM versioning to work
18+
run: |
19+
git fetch --prune --unshallow
20+
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
21+
- name: Set up Python 3.10
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: "3.10"
25+
26+
- name: Install pypa/build
27+
run: |
28+
python -m pip install build
29+
python -m pip install .
30+
31+
- name: Build a binary wheel and a source tarball
32+
run: |
33+
python -m build --sdist --wheel --outdir dist/ .
34+
35+
- name: Publish distribution ?? to PyPI
36+
uses: pypa/gh-action-pypi-publish@release/v1
37+
38+
gh-release:
39+
name: Create release
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
runs-on: ubuntu-latest
43+
steps:
44+
- name: Checkout
45+
uses: actions/checkout@v3
46+
with:
47+
fetch-depth: 100
48+
- name: Create Relase
49+
run: gh release create "$GITHUB_REF_NAME" --generate-notes -d

0 commit comments

Comments
 (0)