From 900d02419843666400890a8b5f5c2cf7a33eaddf Mon Sep 17 00:00:00 2001 From: Ali Erdinc Koroglu Date: Sep 06 2023 13:41:07 +0000 Subject: package optimization --- diff --git a/.gitignore b/.gitignore index 600d21c..6e9c2dd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1 @@ -/jdcal-1.0.tar.gz -/jdcal-1.4.tar.gz -/jdcal-1.4.1.tar.gz +/jdcal-*.tar.gz diff --git a/python-jdcal.spec b/python-jdcal.spec index c92e77b..adf4f50 100644 --- a/python-jdcal.spec +++ b/python-jdcal.spec @@ -5,12 +5,15 @@ Version: 1.4.1 Release: %autorelease Summary: Julian dates from proleptic Gregorian and Julian calendars -License: BSD +License: BSD-2-Clause URL: https://github.com/phn/jdcal Source0: %{url}/archive/v%{version}/%{modname}-%{version}.tar.gz BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3-pytest + %description This module contains functions for converting between Julian dates and calendar dates. @@ -21,9 +24,6 @@ Two functions for the reverse calculations are also defined. %package -n python3-%{modname} Summary: %{summary} -%{?python_provide:%python_provide python3-%{modname}} -BuildRequires: python3-devel -BuildRequires: python3-setuptools %description -n python3-%{modname} This module contains functions for converting between Julian dates and calendar @@ -38,16 +38,21 @@ Python 3 version. %prep %autosetup -n %{modname}-%{version} +%generate_buildrequires +%pyproject_buildrequires -r + %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files %{modname} + +%check +%pytest -v -%files -n python3-%{modname} +%files -n python3-%{modname} -f %{pyproject_files} %doc README.rst -%{python3_sitelib}/%{modname}* -%{python3_sitelib}/__pycache__/%{modname}* %changelog %autochangelog