Skip to content

Commit 1b2eaa4

Browse files
authored
[PEP-625] Update setuptools to canonicalize filename. (#225)
This patch updates `setuptools` to address PEP 625 (https://peps.python.org/pep-0625/). As a part of this patch, we have to update a number of GH dependencies that have been deprecated: - Artifact actions v3 will be closing down by January 30, 2025. - Starting February 1st, 2025, we will begin the process of closing down v1-v2 of actions/cache - The Ubuntu 20.04 runner image will be fully unsupported by April 1, 2025.
1 parent 3d63d10 commit 1b2eaa4

File tree

5 files changed

+26
-21
lines changed

5 files changed

+26
-21
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ jobs:
88
deploy:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v4
1212
- name: Set up Python
13-
uses: actions/setup-python@v2
13+
uses: actions/setup-python@v5
1414
with:
1515
python-version: '3.9'
1616
- name: Install Dependencies
1717
run: |
1818
sudo apt-get install pandoc
1919
python -m pip install --upgrade pip
2020
pip install pypandoc
21-
pip install -r requirements.txt
21+
pip install -e ".[dev,test]"
2222
- name: Test Package
2323
run: |
24-
python setup.py test
24+
python -m unittest
2525
- name: Build Package
2626
run: |
2727
python setup.py bdist_wheel sdist

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,24 @@ jobs:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
matrix:
14-
os: [ ubuntu-20.04, macos-latest ]
14+
os: [ ubuntu-latest, macos-latest ]
1515
python-version: [ 3.8, 3.9 ]
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
1818
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v2
19+
uses: actions/setup-python@v5
2020
with:
2121
python-version: ${{ matrix.python-version}}
2222
- name: Install Dependencies
2323
run: |
2424
python -m pip install --upgrade pip
25-
pip install -r requirements.txt
25+
pip install -e ".[dev,test]"
2626
- name: Lint with PyCodeStyle
2727
run: |
2828
pycodestyle .
2929
- name: Run Unit Tests
3030
run: |
31-
python setup.py test
31+
python -m unittest
3232
- name: Build a Wheel
3333
run: |
3434
python setup.py bdist_wheel

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ $ make html
117117
First install the development requirements by running:
118118

119119
```
120-
$ pip install -r requirements.txt
120+
pip install -e ".[dev,test]"
121121
```
122122

123123
After you've installed the requirements, decide on the development work you

requirements.txt

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

setup.cfg

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,19 @@ universal = 1
1111
[behave]
1212
color = True
1313
summary = True
14+
15+
[options.extras_require]
16+
dev =
17+
behave==1.2.5
18+
coverage==4.4.1
19+
psutil>=5.2.2
20+
pycodestyle>=2.3.1
21+
setuptools>=70.2.0
22+
six
23+
sphinx==1.4.8
24+
sphinx-argparse==0.1.15
25+
sphinx_rtd_theme==0.2.4
26+
sphinxcontrib-napoleon==0.5.3
27+
wheel
28+
test =
29+
mock==2.0.0

0 commit comments

Comments
 (0)