Skip to content

Commit 679b1e2

Browse files
committed
Python module now builds on >=49 version of setuptools
1 parent 4eb3b5b commit 679b1e2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

rpm/usbrelay.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Name: usbrelay
2-
Version: 1.2
2+
Version: 1.3
33
Release: %autorelease
44
Summary: A library and command line tool to control USB-connected relays based on hidapi
55
License: GPL-2.0-or-later

usbrelay_py/pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616

1717
[build-system]
1818
requires = [
19-
"setuptools==42",
19+
"setuptools>=49",
2020
"wheel"
2121
]
2222
build-backend = "setuptools.build_meta"
23+
[project]
24+

usbrelay_py/setup.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
# with this program; if not, write to the Free Software Foundation, Inc.,
1515
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1616

17-
18-
from setuptools import setuptools, setup, Extension
19-
17+
from setuptools import setup, find_packages, Extension
2018
module1 = Extension(
2119
'usbrelay_py',
2220
libraries= ['usbrelay'],
@@ -35,7 +33,7 @@
3533
license = 'GPL-2.0-or-later',
3634
ext_modules = [module1],
3735
package_dir={"": "src"},
38-
packages=setuptools.find_packages(where="src"),
36+
packages=find_packages(where="src"),
3937
# packages = ['usbrelay_py'],
4038

4139
classifiers = [

0 commit comments

Comments
 (0)