From 87d84d188264e645c621516ffdfdd473f726d034 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Mon, 30 Jan 2023 03:38:55 -0500 Subject: Migrate away from distutils. --- debian/control | 6 +++++- setup.cfg | 13 +++++++++++++ setup.py | 14 +++----------- 3 files changed, 21 insertions(+), 12 deletions(-) create mode 100644 setup.cfg diff --git a/debian/control b/debian/control index 5d6d68e..5616072 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,11 @@ Priority: optional Section: devel Maintainer: Christoph Goehre Uploaders: Guido Guenther , Unit 193 -Build-Depends: debhelper-compat (= 13), python3-all, dh-python +Build-Depends: debhelper-compat (= 13), + dh-python, + pybuild-plugin-pyproject, + python3-all, + python3-setuptools, Rules-Requires-Root: no Standards-Version: 4.6.0 Vcs-Git: https://salsa.debian.org/debian/mini-dinstall.git diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..5e6d0f0 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,13 @@ +[metadata] +name = mini-dinstall +version = attr: minidinstall.version.pkg_version +url = https://salsa.debian.org/debian/mini-dinstall +author = Colin Walters +author_email = walters@debian.org +maintainer = Christoph Goehre +maintainer_email = christoph.goehre@gmx.de + +[options] +packages = minidinstall +scripts = mini-dinstall +install_requires = python-apt diff --git a/setup.py b/setup.py index 13d80a5..80ffbb3 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # # setup.py - [ install script for mini-dinstall ] # Copyright (c) 2007 Christoph Goehre @@ -20,14 +20,6 @@ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. # -from distutils.core import setup +from setuptools import setup -setup(name = 'mini-dinstall', - author = 'Colin Walters', - author_email = 'walters@debian.org', - maintainer = 'Christoph Goehre', - maintainer_email = 'christoph.goehre@gmx.de', - scripts = [ 'mini-dinstall' ], - packages = [ 'minidinstall' ], - url = 'http://alioth.debian.org/projects/mini-dinstall/', -) +setup() -- cgit v1.2.3