1
0
forked from pool/python-scrypt

Accepting request 863922 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/863922
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-scrypt?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2021-01-18 10:29:47 +00:00 committed by Git OBS Bridge
commit 51409a6a47
2 changed files with 13 additions and 6 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sun Jan 17 21:50:47 UTC 2021 - Benjamin Greiner <code@bnavigator.de>
- Fix test call (the old non-macro pytest call did conflict with
_build directories from other python3 flavors)
- Fix line endings and remove interpreter lines in sitelib
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Dec 1 14:31:41 UTC 2020 - Dirk Mueller <dmueller@suse.com> Tue Dec 1 14:31:41 UTC 2020 - Dirk Mueller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-scrypt # spec file for package python-scrypt
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -22,18 +22,16 @@ Version: 0.8.17
Release: 0 Release: 0
Summary: Bindings for scrypt Summary: Bindings for scrypt
License: BSD-2-Clause License: BSD-2-Clause
URL: https://bitbucket.org/mhallin/py-scrypt URL: https://github.com/holgern/py-scrypt
Source0: https://files.pythonhosted.org/packages/source/s/scrypt/scrypt-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/source/s/scrypt/scrypt-%{version}.tar.gz
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: dos2unix
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: gcc BuildRequires: gcc
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(openssl)
# SECTION test requires
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages %python_subpackages
%description %description
@ -41,6 +39,8 @@ Bindings for the scrypt key derivation function library.
%prep %prep
%setup -q -n scrypt-%{version} %setup -q -n scrypt-%{version}
dos2unix -R README.rst scrypt/*.py
sed -i '1{/^#!/ d}' scrypt/*.py
%build %build
%python_build %python_build
@ -50,7 +50,7 @@ Bindings for the scrypt key derivation function library.
%python_expand %fdupes %{buildroot}%{$python_sitearch} %python_expand %fdupes %{buildroot}%{$python_sitearch}
%check %check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -mpytest %pyunittest_arch discover -s scrypt/tests -v
%files %{python_files} %files %{python_files}
%doc README.rst %doc README.rst