Skip to content

Commit

Permalink
[PEP-625] Update setuptools to canonicalize filename. (#225)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hkpeprah authored Mar 7, 2025
1 parent 3d63d10 commit 1b2eaa4
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 21 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install Dependencies
run: |
sudo apt-get install pandoc
python -m pip install --upgrade pip
pip install pypandoc
pip install -r requirements.txt
pip install -e ".[dev,test]"
- name: Test Package
run: |
python setup.py test
python -m unittest
- name: Build Package
run: |
python setup.py bdist_wheel sdist
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-20.04, macos-latest ]
os: [ ubuntu-latest, macos-latest ]
python-version: [ 3.8, 3.9 ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version}}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -e ".[dev,test]"
- name: Lint with PyCodeStyle
run: |
pycodestyle .
- name: Run Unit Tests
run: |
python setup.py test
python -m unittest
- name: Build a Wheel
run: |
python setup.py bdist_wheel
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ $ make html
First install the development requirements by running:

```
$ pip install -r requirements.txt
pip install -e ".[dev,test]"
```

After you've installed the requirements, decide on the development work you
Expand Down
11 changes: 0 additions & 11 deletions requirements.txt

This file was deleted.

16 changes: 16 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,19 @@ universal = 1
[behave]
color = True
summary = True

[options.extras_require]
dev =
behave==1.2.5
coverage==4.4.1
psutil>=5.2.2
pycodestyle>=2.3.1
setuptools>=70.2.0
six
sphinx==1.4.8
sphinx-argparse==0.1.15
sphinx_rtd_theme==0.2.4
sphinxcontrib-napoleon==0.5.3
wheel
test =
mock==2.0.0

0 comments on commit 1b2eaa4

Please sign in to comment.