Skip to content

Commit ad8ba51

Browse files
committed
WIP: Use pyproject.toml
1 parent e363d92 commit ad8ba51

5 files changed

Lines changed: 32 additions & 2 deletions

File tree

Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ dbus/org.fedoraproject.Config.Printing.service: dbus/org.fedoraproject.Config.Pr
5959

6060
# Use distutils to build the module.
6161
all-local: .stamp-distutils-in-builddir config.py cupshelpers/config.py
62-
$(PYTHON) setup.py build
62+
$(PYTHON) -m build
6363

6464
# Use distutils to install the module.
6565
install-exec-local: .stamp-distutils-in-builddir
66-
$(PYTHON) setup.py install --root $(DESTDIR) --prefix=$(prefix)
66+
$(PYTHON) -m pip install --root $(DESTDIR) --prefix=$(prefix) .
6767

6868
# Uninstall the module, crossing our fingers that we know enough
6969
# about how distutils works to do this. Unfortunately, distutils

README

Whitespace-only changes.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ Build requirements:
8888
- desktop-file-install
8989
- intltool
9090
- xmlto
91+
- gcc
92+
- python3-setuptools
93+
- python3-build
9194

9295
Runtime requirements:
9396
---------------------

bootstrap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ autopoint --force
33
aclocal
44
automake --foreign --copy --add-missing
55
autoconf
6+
rm README
67

78
# If this is a git repository, and git-merge-changelog is available,
89
# use it.

pyproject.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0"]
3+
build-backend = "setuptools.build-meta"
4+
5+
[project]
6+
name = "cupshelpers"
7+
version = "1.0"
8+
description = "Helper functions and classes for using CUPS"
9+
authors = [
10+
{ name = "Tim Waugh", email = "twaugh@redhat.com" },
11+
{ name = "Till Kamppeter", email = "till.kamppeter@gmail.com" },
12+
{ name = "Jiri Popelka", email = "jpopelka@redhat.com" },
13+
{ name = "Zdenek Dohnal", email = "zdohnal@redhat.com" },
14+
]
15+
license = { file = "COPYING" }
16+
readme = "README.md"
17+
classifiers = [
18+
"Programming Language :: Python :: 3",
19+
"License :: OSI Approved :: GPL 2 or later",
20+
"Operating System :: Linux",
21+
]
22+
requires-python = ">=3.7"
23+
24+
[project.urls]
25+
"Homepage" = "https://github.com/OpenPrinting/system-config-printer"
26+
"Bug Tracker" = "https://github.com/OpenPrinting/system-config-printer/issues"

0 commit comments

Comments
 (0)