Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
4f1cb98ab8
!17 Update package to version 0.19
From: @jxy_git 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
2023-12-05 09:51:38 +00:00
jxy_git
9222fa4b01 Update package to version 0.19 2023-12-05 15:49:43 +08:00
openeuler-ci-bot
ca22291e9a
!16 修正 Obsoletes 版本
From: @wk333 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
2023-04-27 05:52:10 +00:00
wk333
0029e0549e Fix Obsoletes version 2023-04-27 11:15:54 +08:00
openeuler-ci-bot
a5b746c160
!15 使用 pyproject 方式编译并移除help子包
From: @wk333 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
2023-04-26 03:39:43 +00:00
wk333
2efa6c900c Compling package with pyproject and Obsoletes subpackage python-fasteners-help 2023-04-26 09:51:39 +08:00
openeuler-ci-bot
ef930ea0d6
!14 Upgrade package to version 0.18
From: @Gzx1999 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
2022-09-29 10:41:38 +00:00
Gzx1999
46a55974ca Upgrade package to version 0.18 2022-09-29 17:25:49 +08:00
openeuler-ci-bot
9097df239d
!10 [sync] PR-9: change the BuildRequires:python3-nose to python3-nose2
From: @openeuler-sync-bot 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
2022-05-07 02:43:17 +00:00
liqiuyu
83997dd27c change the BuildRequires:python3-nose to python3-nose2
(cherry picked from commit 549a4ee9ebec5a41f5c27f238f1930f1fd150467)
2022-02-18 09:09:34 +08:00
4 changed files with 42 additions and 78 deletions

Binary file not shown.

BIN
fasteners-0.19.tar.gz Normal file

Binary file not shown.

View File

@ -1,30 +0,0 @@
diff -uNr fasteners-0.14.1.orig/fasteners/_utils.py fasteners-0.14.1/fasteners/_utils.py
--- fasteners-0.14.1.orig/fasteners/_utils.py 2015-11-13 07:46:46.000000000 +0100
+++ fasteners-0.14.1/fasteners/_utils.py 2018-01-17 17:42:58.715726344 +0100
@@ -19,7 +19,10 @@
import logging
import time
-from monotonic import monotonic as now # noqa
+try:
+ from time import monotonic as now
+except ImportError:
+ from monotonic import monotonic as now
# log level for low-level debugging
BLATHER = 5
diff -uNr fasteners-0.14.1.orig/setup.py fasteners-0.14.1/setup.py
--- fasteners-0.14.1.orig/setup.py 2015-11-13 07:46:46.000000000 +0100
+++ fasteners-0.14.1/setup.py 2018-01-17 17:50:26.654085344 +0100
@@ -26,8 +26,10 @@
install_requires = [
'six',
- 'monotonic>=0.1',
]
+import sys
+if sys.version_info < (3, 3, 0):
+ install_requires += ['monotonic>=0.1']
setup(
name='fasteners',

View File

@ -1,62 +1,56 @@
%global pypi_name fasteners %global _empty_manifest_terminate_build 0
Name: python-fasteners
Version: 0.19
Release: 1
Summary: A python package that provides useful locks
License: ASL 2.0
URL: https://github.com/harlowja/fasteners
Source0: https://files.pythonhosted.org/packages/5f/d4/e834d929be54bfadb1f3e3b931c38e956aaa3b235a46a3c764c26c774902/fasteners-0.19.tar.gz
BuildArch: noarch
#%%if 0%{?rhel} >= 8
%bcond_with pytests
#%%else
#%%bcond_without pytests
#%%endif
Name: python-%{pypi_name}
Version: 0.14.1
Release: 20%{?dist}
Summary: A python package that provides useful locks
License: ASL 2.0
URL: https://github.com/harlowja/fasteners
Source0: https://codeload.github.com/harlowja/fasteners/tar.gz/%{version}#/%{pypi_name}-%{version}.tar.gz
Patch0: fasteners-monotonic.patch
BuildArch: noarch
%description %description
A python package that provides useful locks. Cross-platform locks for threads and processes.
%package -n python3-%{pypi_name}
Summary: A python package that provides useful locks
%{?python_provide:%python_provide python3-%{pypi_name}}
BuildRequires: python3-six
BuildRequires: python3-devel
# tests
BuildRequires: python3-testtools
BuildRequires: python3-nose
Requires: python3-six
%description -n python3-%{pypi_name}
A python package that provides useful locks.
%package -n python3-fasteners
Summary: A python package that provides useful locks
Provides: python-fasteners = %{version}-%{release}
Obsoletes: python-fasteners-help <= %{version}
BuildRequires: python3-devel
BuildRequires: python3-setuptools python3-pip python3-wheel
%description -n python3-fasteners
Cross-platform locks for threads and processes.
%prep %prep
%autosetup -p1 -n %{pypi_name}-%{version} %autosetup -n fasteners-%{version}
%build %build
%py3_build %pyproject_build
%install %install
%py3_install %pyproject_install
%check
nosetests-%{python3_version}
%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-*.egg-info/
%files -n python3-fasteners
%{python3_sitelib}/*
%doc CHANGELOG.md
%doc README.md
%changelog %changelog
* Fri Oct 30 2020 jiangxinyu <jiangxinyu@kylinos.cn> - 0.14.1-21 * Tue Dec 05 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 0.19-1
- Update package to version 0.19
* Thu Apr 27 2023 wangkai <13474090681@163.com> - 0.18-3
- Fix Obsoletes version
* Wed Apr 26 2023 wangkai <13474090681@163.com> - 0.18-2
- Compling package with pyproject
- Obsoletes subpackage python-fasteners-help
* Thu Sep 29 2022 guozhengxin <guozhengxin@kylinos.cn> - 0.18-1
- Upgrade package to version 0.18
* Tue Feb 15 2022 liqiuyu <liqiuyu@kylinos.cn> - 0.14.1-21
- change the BuildRequires:python3-nose to python3-nose2
* Fri Oct 30 2020 jiangxinyu <jiangxinyu@kylinos.cn> - 0.14.1-20
- Init python3-fasteners project - Init python3-fasteners project