From 1eee79fec94e3afd456a9c5dc33dd054c096794c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Duarte?= Date: Fri, 15 Dec 2023 13:08:44 +0000 Subject: [PATCH] hotfix #3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gonçalo Duarte --- deploy/build_packages/darkdetect.spec | 14 ++++++-------- deploy/build_packages/setup.cfg | 3 ++- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/deploy/build_packages/darkdetect.spec b/deploy/build_packages/darkdetect.spec index 719644d..d8fe239 100644 --- a/deploy/build_packages/darkdetect.spec +++ b/deploy/build_packages/darkdetect.spec @@ -14,7 +14,7 @@ Group: Development/Libraries BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-wheel -BuildRequires: python-installer +BuildRequires: python3-setuptools Vendor: Alberto Sottile Packager: Gonçalo Negrier Duarte Url: https://github.com/albertosottile/darkdetect @@ -87,20 +87,18 @@ pip install darkdetect[macos-listener] %prep %setup -q -T -c -n %{name}-%{version} -rm -rf %{eggname}.egg-info cp %{SOURCE1} %{SOURCE2} . sed -i "s/version = _VERSION/version = ${TAG}/g" setup.cfg %build -%py3_build +%pyproject_wheel %install -%py3_install - -%files -%license LICENSE -%doc README.md +%pyproject_install +%pyproject_save_files darkdetect %files -n python-%{pkgname} +%doc README.md +%license LICENSE %{python3_sitelib}/%{libname}/ %{python3_sitelib}/%{libname}-%{version}.dist-info diff --git a/deploy/build_packages/setup.cfg b/deploy/build_packages/setup.cfg index 81eb1b0..654b438 100644 --- a/deploy/build_packages/setup.cfg +++ b/deploy/build_packages/setup.cfg @@ -6,6 +6,7 @@ author_email = albertosottile@example.org description = Detect OS Dark Mode from Python long_description = file: README.md long_description_content_type = text/markdown +license_files = LICENSE url = https://github.com/albertosottile/darkdetect project_urls = Bug Tracker = https://github.com/albertosottile/darkdetect/issues @@ -19,4 +20,4 @@ packages = find: [options.packages.find] exclude = - tests \ No newline at end of file + tests