From aeb1130be486b336fc62c024d3c06b692f4945f8 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Thu, 9 May 2024 19:52:59 -0700 Subject: [PATCH] Update build procedure with pyproject.toml --- PKGBUILD | 2 +- pyproject.toml | 17 ++++++++++++++++- setup.py | 18 +----------------- 3 files changed, 18 insertions(+), 19 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 8e6ad3a..9c75983 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -7,7 +7,7 @@ arch=('any') license=('MIT') groups=(pacman-helpers) depends=(gist mlocate pacman python pyalpm) -makedepends=(python-build python-install python-setuptools) +makedepends=(python-build python-installer python-setuptools) optdepends=('fzf: for the fqo script' 'mlocate: for the fqo script') checkdepends=(python-hypothesis python-pytest) diff --git a/pyproject.toml b/pyproject.toml index 48eddb1..754cf96 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,2 +1,17 @@ [build-system] -requires=["build", "setuptools", "wheel"] +requires=["build", "setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "packaging_scripts" +authors = ["Eric Torres"] +version = "1.7.1" +description = "A set of scripts for automating pacman database interaction" +readme = "README.rst" +license = "LICENSE" +scripts = ["bin/addpkg", "bin/delpkg", "bin/fqo", "bin/pug2"] +classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", +] diff --git a/setup.py b/setup.py index 11f43a8..5c2fccf 100644 --- a/setup.py +++ b/setup.py @@ -12,20 +12,4 @@ with open("README.rst", "r") as fh: # ========== Package Setup ========== -setuptools.setup( - name="packaging_scripts", - version="1.7.1", - author="Eric Russel Torres", - author_email="erictorres4@protonmail.com", - description="A set of scripts for automating pacman database interaction", - long_description=long_description, - long_description_content_type="text/plain", - url="", - packages=PACKAGES, - scripts=SCRIPTS, - classifiers=[ - "Programming Language :: Python :: 3", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", - ], -) +setuptools.setup(packages=PACKAGES)