File tree Expand file tree Collapse file tree 6 files changed +19
-35
lines changed
Expand file tree Collapse file tree 6 files changed +19
-35
lines changed Original file line number Diff line number Diff line change 55
66jobs :
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 🏗️
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 55
66jobs :
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
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ source bin/activate
3535# clone codebase and install
3636git clone https://github.com/World-Meteorological-Organization/pywis-topics.git
3737cd 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:
105105python3 tests/run_tests.py
106-
107- # or this:
108- python3 setup.py test
109106```
110107
111108## Releasing
Original file line number Diff line number Diff line change 1+ [build-system ]
2+ requires = [" setuptools>=46.4" , " wheel" ]
3+ build-backend = " setuptools.build_meta"
Original file line number Diff line number Diff line change 2121
2222from pathlib import Path
2323import re
24- from setuptools import Command , find_packages , setup
25- import sys
26-
27-
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 )
24+ from setuptools import find_packages , setup
4125
4226
4327def read (filename , encoding = 'utf-8' ):
@@ -105,5 +89,5 @@ def get_package_version():
10589 'Operating System :: OS Independent' ,
10690 'Programming Language :: Python'
10791 ],
108- cmdclass = { 'test' : PyTest }
92+ test_suite = 'tests.run_tests'
10993)
You can’t perform that action at this time.
0 commit comments