Skip to content

Commit f8f5824

Browse files
committed
update to Python 3.12, Ubuntu 24.04
1 parent 27bade7 commit f8f5824

File tree

5 files changed

+15
-33
lines changed

5 files changed

+15
-33
lines changed

.github/workflows/debian.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ on:
55

66
jobs:
77
debian_publishing:
8-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-24.04
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@master
1111
- name: Install system dependencies 📦
1212
run: sudo apt-get update && sudo apt-get install -y dh-python build-essential devscripts fakeroot debhelper python3-all python3-setuptools
13-
- uses: actions/setup-python@v3
13+
- uses: actions/setup-python@v6
1414
name: setup Python
1515
with:
16-
python-version: 3.8
16+
python-version: '3.12'
1717
- name: Checkout pywis-pubsub
1818
uses: actions/checkout@master
1919
- name: build Debian package 🏗️

.github/workflows/flake8.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ jobs:
77
flake8_py3:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
11-
- uses: actions/setup-python@v3
10+
- uses: actions/checkout@master
11+
- uses: actions/setup-python@v6
1212
name: setup Python
1313
with:
14-
python-version: 3.8
14+
python-version: '3.12'
1515
- name: Checkout pywis-topics
1616
uses: actions/checkout@master
1717
- name: Install flake8

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ on:
55

66
jobs:
77
main:
8-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-24.04
99
steps:
10-
- uses: actions/checkout@v3
11-
- uses: actions/setup-python@v3
10+
- uses: actions/checkout@master
11+
- uses: actions/setup-python@v6
1212
name: setup Python
1313
with:
14-
python-version: 3.8
14+
python-version: '3.12'
1515
- name: Install pywis-topics
1616
run: |
17-
python3 setup.py install
17+
pip3 install -e .
1818
pywis-topics --version
1919
pywis-topics bundle sync
2020
- name: run tests
21-
run: python3 setup.py test
21+
run: python3 tests/run_tests.py

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ source bin/activate
3535
# clone codebase and install
3636
git clone https://github.com/World-Meteorological-Organization/pywis-topics.git
3737
cd pywis-topics
38-
python3 setup.py install
38+
pip3 install .
3939
```
4040

4141
## Running
@@ -103,9 +103,6 @@ pip3 install -r requirements-dev.txt
103103

104104
# run tests like this:
105105
python3 tests/run_tests.py
106-
107-
# or this:
108-
python3 setup.py test
109106
```
110107

111108
## Releasing

setup.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,6 @@
2525
import sys
2626

2727

28-
class PyTest(Command):
29-
user_options = []
30-
31-
def initialize_options(self):
32-
pass
33-
34-
def finalize_options(self):
35-
pass
36-
37-
def run(self):
38-
import subprocess
39-
errno = subprocess.call([sys.executable, 'tests/run_tests.py'])
40-
raise SystemExit(errno)
41-
42-
4328
def read(filename, encoding='utf-8'):
4429
"""read file contents"""
4530

@@ -105,5 +90,5 @@ def get_package_version():
10590
'Operating System :: OS Independent',
10691
'Programming Language :: Python'
10792
],
108-
cmdclass={'test': PyTest}
93+
test_suite='tests.run_tests'
10994
)

0 commit comments

Comments
 (0)