Skip to content

Commit

Permalink
hotfix #3
Browse files Browse the repository at this point in the history
Signed-off-by: Gonçalo Duarte <gonegrier.duarte@gmail.com>
  • Loading branch information
MrDuartePT committed Dec 15, 2023
1 parent d1ab5db commit 1eee79f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
14 changes: 6 additions & 8 deletions deploy/build_packages/darkdetect.spec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Group: Development/Libraries
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-wheel
BuildRequires: python-installer
BuildRequires: python3-setuptools
Vendor: Alberto Sottile <asottile@gmail.com>
Packager: Gonçalo Negrier Duarte <gonegrier.duarte@gamil.com>
Url: https://github.com/albertosottile/darkdetect
Expand Down Expand Up @@ -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
3 changes: 2 additions & 1 deletion deploy/build_packages/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -19,4 +20,4 @@ packages = find:

[options.packages.find]
exclude =
tests
tests

0 comments on commit 1eee79f

Please sign in to comment.