Skip to content

Commit 7293a97

Browse files
Merge pull request #512 from pepkit/peppy0_50_modernize
Modernize stages -- all
2 parents bcc3079 + 70e48eb commit 7293a97

55 files changed

Lines changed: 896 additions & 3042 deletions

Some content is hidden

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

‎.flake8‎

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

‎.github/workflows/black.yml‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
name: Lint
22

3-
on:
4-
pull_request:
5-
branches: [ main ]
3+
on: [push, pull_request]
64

75
jobs:
86
lint:
97
runs-on: ubuntu-latest
108
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions/setup-python@v2
13-
- uses: psf/black@stable
9+
- uses: actions/checkout@v6
10+
- uses: actions/setup-python@v6
11+
with:
12+
python-version: "3.12"
13+
- run: pip install ruff
14+
- run: ruff check .
15+
- run: ruff format --check .

‎.github/workflows/cli-coverage.yml‎

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,16 @@ on:
66

77
jobs:
88
cli-coverage-report:
9-
strategy:
10-
matrix:
11-
python-version: [ "3.12" ]
12-
os: [ ubuntu-latest ]
13-
r: [ release ]
14-
runs-on: ${{ matrix.os }}
9+
runs-on: ubuntu-latest
1510
steps:
16-
- uses: actions/checkout@v5
11+
- uses: actions/checkout@v6
1712

18-
- uses: actions/setup-python@v5
13+
- uses: actions/setup-python@v6
1914
with:
20-
python-version: '3.12'
15+
python-version: "3.13"
2116

22-
- name: Install test dependencies
23-
run: if [ -f requirements/requirements-test.txt ]; then pip install -r requirements/requirements-test.txt; fi
24-
25-
- run: pip install .
17+
- name: Install package with test dependencies
18+
run: pip install ".[test]"
2619

2720
- name: Run tests
2821
run: coverage run -m pytest
@@ -37,4 +30,4 @@ jobs:
3730
SMOKESHOW_GITHUB_CONTEXT: coverage
3831
SMOKESHOW_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3932
SMOKESHOW_GITHUB_PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
40-
SMOKESHOW_AUTH_KEY: ${{ secrets.SMOKESHOW_AUTH_KEY }}
33+
SMOKESHOW_AUTH_KEY: ${{ secrets.SMOKESHOW_AUTH_KEY }}

‎.github/workflows/pytest-windows.yml‎

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,19 @@ jobs:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
matrix:
14-
python-version: ["3.11"]
14+
python-version: ["3.13"]
1515
os: [windows-latest]
1616

1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v6
1919

2020
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v2
21+
uses: actions/setup-python@v6
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424

25-
- name: Install all dependencies
26-
run: pip install -r requirements/requirements-all.txt
27-
28-
- name: Install test dependencies
29-
run: pip install -r requirements/requirements-test.txt
30-
31-
- name: Install package
32-
run: python -m pip install .
25+
- name: Install package with test dependencies
26+
run: python -m pip install ".[test]"
3327

3428
- name: Run pytest tests
35-
run: pytest tests -v
29+
run: pytest tests -v

‎.github/workflows/pytest.yml‎

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,19 @@ jobs:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
matrix:
14-
python-version: ["3.9", "3.13"]
14+
python-version: ["3.10", "3.13"]
1515
os: [ubuntu-latest]
1616

1717
steps:
18-
- uses: actions/checkout@v5
18+
- uses: actions/checkout@v6
1919

2020
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v5
21+
uses: actions/setup-python@v6
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424

25-
- name: Install all dependencies
26-
run: if [ -f requirements/requirements-all.txt ]; then pip install -r requirements/requirements-all.txt; fi
27-
28-
- name: Install test dependencies
29-
run: if [ -f requirements/requirements-test.txt ]; then pip install -r requirements/requirements-test.txt; fi
30-
31-
- name: Install package
32-
run: python -m pip install .
25+
- name: Install package with test dependencies
26+
run: python -m pip install ".[test]"
3327

3428
- name: Run pytest tests
3529
run: pytest tests -v

‎.github/workflows/python-publish.yml‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,21 @@ on:
66

77
jobs:
88
deploy:
9-
name: upload release to PyPI
109
runs-on: ubuntu-latest
10+
name: upload release to PyPI
1111
permissions:
12+
contents: read
1213
id-token: write
14+
1315
steps:
1416
- uses: actions/checkout@v6
1517
- name: Set up Python
1618
uses: actions/setup-python@v6
1719
with:
1820
python-version: '3.x'
19-
- name: Install dependencies
20-
run: |
21-
python -m pip install --upgrade pip
22-
pip install setuptools wheel twine
23-
- name: Build and publish
24-
run: |
25-
python setup.py sdist bdist_wheel
21+
- name: Install build dependencies
22+
run: python -m pip install --upgrade pip build
23+
- name: Build package
24+
run: python -m build
2625
- name: Publish package distributions to PyPI
27-
uses: pypa/gh-action-pypi-publish@release/v1
26+
uses: pypa/gh-action-pypi-publish@release/v1

‎.pre-commit-config.yaml‎

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

‎MANIFEST.in‎

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

‎docs_jupyter/build/.gitignore‎

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

0 commit comments

Comments
 (0)