From 75765f1809205c92273906f8ecd06fdade046e4eafef3069ecc1a2c8dd98c440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 4 Dec 2024 09:14:30 +0000 Subject: [PATCH] - Update to 4.2.1 * Bump version for 4.2.1 (#914) * Bump bcrypt from 0.15.1 to 0.16.0 in /src/_bcrypt (#912) * Fix warnings from pyo3 0.23 (#911) * Bump pyo3 from 0.22.6 to 0.23.1 in /src/_bcrypt (#909) * Bump libc from 0.2.162 to 0.2.164 in /src/_bcrypt (#910) * Bump cpufeatures from 0.2.14 to 0.2.15 in /src/_bcrypt (#908) * Bump libc from 0.2.161 to 0.2.162 in /src/_bcrypt (#907) * Bump pypa/gh-action-pypi-publish from 1.12.0 to 1.12.2 (#906) * Bump pyo3 from 0.22.5 to 0.22.6 in /src/_bcrypt (#905) * Bump pypa/gh-action-pypi-publish from 1.11.0 to 1.12.0 (#904) * Bump syn from 2.0.86 to 2.0.87 in /src/_bcrypt (#903) * Bump syn from 2.0.85 to 2.0.86 in /src/_bcrypt (#902) * Bump pypa/gh-action-pypi-publish from 1.10.3 to 1.11.0 (#901) * Bump actions/setup-python from 5.2.0 to 5.3.0 (#899) * Bump syn from 2.0.82 to 2.0.85 in /src/_bcrypt (#898) * Bump actions/checkout from 4.2.1 to 4.2.2 (#897) * Bump actions/cache from 4.1.1 to 4.1.2 (#896) * Bump proc-macro2 from 1.0.88 to 1.0.89 in /src/_bcrypt (#895) * Bump syn from 2.0.79 to 2.0.82 in /src/_bcrypt (#894) * Bump libc from 0.2.159 to 0.2.161 in /src/_bcrypt (#893) * Bump proc-macro2 from 1.0.87 to 1.0.88 in /src/_bcrypt (#892) * Bump pyo3 from 0.22.4 to 0.22.5 in /src/_bcrypt (#891) * Bump pyo3 from 0.22.3 to 0.22.4 in /src/_bcrypt (#890) * Update CI for 3.13 (#888) * Bump actions/upload-artifact from 4.4.2 to 4.4.3 (#889) * Bump actions/upload-artifact from 4.4.1 to 4.4.2 (#886) * Bump actions/cache from 4.1.0 to 4.1.1 (#887) * Bump proc-macro2 from 1.0.86 to 1.0.87 in /src/_bcrypt (#884) * Bump actions/upload-artifact from 4.4.0 to 4.4.1 (#883) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bcrypt?expand=0&rev=41 --- .gitattributes | 23 ++++ .gitignore | 1 + _service | 12 ++ bcrypt-4.1.3.tar.gz | 3 + bcrypt-4.2.0.tar.gz | 3 + bcrypt-4.2.1.tar.gz | 3 + python-bcrypt.changes | 308 ++++++++++++++++++++++++++++++++++++++++++ python-bcrypt.spec | 72 ++++++++++ vendor.tar.gz | 3 + 9 files changed, 428 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 bcrypt-4.1.3.tar.gz create mode 100644 bcrypt-4.2.0.tar.gz create mode 100644 bcrypt-4.2.1.tar.gz create mode 100644 python-bcrypt.changes create mode 100644 python-bcrypt.spec create mode 100644 vendor.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..1c67b66 --- /dev/null +++ b/_service @@ -0,0 +1,12 @@ + + + https://github.com/pyca/bcrypt/ + @PARENT_TAG@~@TAG_OFFSET@ + git + 4.2.1 + + + bcrypt/src/_bcrypt + gz + + diff --git a/bcrypt-4.1.3.tar.gz b/bcrypt-4.1.3.tar.gz new file mode 100644 index 0000000..370a71e --- /dev/null +++ b/bcrypt-4.1.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2ee15dd749f5952fe3f0430d0ff6b74082e159c50332a1413d51b5689cf06623 +size 26456 diff --git a/bcrypt-4.2.0.tar.gz b/bcrypt-4.2.0.tar.gz new file mode 100644 index 0000000..020dd3b --- /dev/null +++ b/bcrypt-4.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf69eaf5185fd58f268f805b505ce31f9b9fc2d64b376642164e9244540c1221 +size 24294 diff --git a/bcrypt-4.2.1.tar.gz b/bcrypt-4.2.1.tar.gz new file mode 100644 index 0000000..f8e1e5b --- /dev/null +++ b/bcrypt-4.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6765386e3ab87f569b276988742039baab087b2cdb01e809d74e74503c2faafe +size 24427 diff --git a/python-bcrypt.changes b/python-bcrypt.changes new file mode 100644 index 0000000..f3f96e4 --- /dev/null +++ b/python-bcrypt.changes @@ -0,0 +1,308 @@ +------------------------------------------------------------------- +Wed Dec 4 07:40:38 UTC 2024 - John Paul Adrian Glaubitz + +- Update to 4.2.1 + * Bump version for 4.2.1 (#914) + * Bump bcrypt from 0.15.1 to 0.16.0 in /src/_bcrypt (#912) + * Fix warnings from pyo3 0.23 (#911) + * Bump pyo3 from 0.22.6 to 0.23.1 in /src/_bcrypt (#909) + * Bump libc from 0.2.162 to 0.2.164 in /src/_bcrypt (#910) + * Bump cpufeatures from 0.2.14 to 0.2.15 in /src/_bcrypt (#908) + * Bump libc from 0.2.161 to 0.2.162 in /src/_bcrypt (#907) + * Bump pypa/gh-action-pypi-publish from 1.12.0 to 1.12.2 (#906) + * Bump pyo3 from 0.22.5 to 0.22.6 in /src/_bcrypt (#905) + * Bump pypa/gh-action-pypi-publish from 1.11.0 to 1.12.0 (#904) + * Bump syn from 2.0.86 to 2.0.87 in /src/_bcrypt (#903) + * Bump syn from 2.0.85 to 2.0.86 in /src/_bcrypt (#902) + * Bump pypa/gh-action-pypi-publish from 1.10.3 to 1.11.0 (#901) + * Bump actions/setup-python from 5.2.0 to 5.3.0 (#899) + * Bump syn from 2.0.82 to 2.0.85 in /src/_bcrypt (#898) + * Bump actions/checkout from 4.2.1 to 4.2.2 (#897) + * Bump actions/cache from 4.1.1 to 4.1.2 (#896) + * Bump proc-macro2 from 1.0.88 to 1.0.89 in /src/_bcrypt (#895) + * Bump syn from 2.0.79 to 2.0.82 in /src/_bcrypt (#894) + * Bump libc from 0.2.159 to 0.2.161 in /src/_bcrypt (#893) + * Bump proc-macro2 from 1.0.87 to 1.0.88 in /src/_bcrypt (#892) + * Bump pyo3 from 0.22.4 to 0.22.5 in /src/_bcrypt (#891) + * Bump pyo3 from 0.22.3 to 0.22.4 in /src/_bcrypt (#890) + * Update CI for 3.13 (#888) + * Bump actions/upload-artifact from 4.4.2 to 4.4.3 (#889) + * Bump actions/upload-artifact from 4.4.1 to 4.4.2 (#886) + * Bump actions/cache from 4.1.0 to 4.1.1 (#887) + * Bump proc-macro2 from 1.0.86 to 1.0.87 in /src/_bcrypt (#884) + * Bump actions/upload-artifact from 4.4.0 to 4.4.1 (#883) + * Bump actions/checkout from 4.2.0 to 4.2.1 (#882) + * Bump actions/cache from 4.0.2 to 4.1.0 (#881) + * Bump once_cell from 1.20.1 to 1.20.2 in /src/_bcrypt (#880) + * Bump once_cell from 1.20.0 to 1.20.1 in /src/_bcrypt (#878) + * Bump portable-atomic from 1.8.0 to 1.9.0 in /src/_bcrypt (#877) + * Bump syn from 2.0.77 to 2.0.79 in /src/_bcrypt (#879) + * Bump autocfg from 1.3.0 to 1.4.0 in /src/_bcrypt (#876) + * Bump actions/checkout from 4.1.7 to 4.2.0 (#875) + * Bump libc from 0.2.158 to 0.2.159 in /src/_bcrypt (#874) + * Bump portable-atomic from 1.7.0 to 1.8.0 in /src/_bcrypt (#873) + * Bump once_cell from 1.19.0 to 1.20.0 in /src/_bcrypt (#871) + * Bump pyo3 from 0.22.2 to 0.22.3 in /src/_bcrypt (#872) + * Bump unicode-ident from 1.0.12 to 1.0.13 in /src/_bcrypt (#870) + * Bump cpufeatures from 0.2.13 to 0.2.14 in /src/_bcrypt (#869) + * Bump actions/attest-build-provenance from 1.4.2 to 1.4.3 (#868) + * Correctly use `console` language fence (#867) + * Bump actions/upload-artifact from 4.3.6 to 4.4.0 (#866) + * Bump syn from 2.0.76 to 2.0.77 in /src/_bcrypt (#865) + * Bump actions/setup-python from 5.1.1 to 5.2.0 (#862) + * Bump syn from 2.0.75 to 2.0.76 in /src/_bcrypt (#861) + * Bump actions/attest-build-provenance from 1.4.1 to 1.4.2 (#859) + * Bump quote from 1.0.36 to 1.0.37 in /src/_bcrypt (#858) + * Bump libc from 0.2.157 to 0.2.158 in /src/_bcrypt (#857) + * Bump syn from 2.0.74 to 2.0.75 in /src/_bcrypt (#855) + * Bump libc from 0.2.156 to 0.2.157 in /src/_bcrypt (#856) + * Bump libc from 0.2.155 to 0.2.156 in /src/_bcrypt (#854) + * Bump cpufeatures from 0.2.12 to 0.2.13 in /src/_bcrypt (#853) + * Bump syn from 2.0.72 to 2.0.74 in /src/_bcrypt (#851) + * Bump actions/attest-build-provenance from 1.4.0 to 1.4.1 (#852) + * Bump actions/upload-artifact from 4.3.5 to 4.3.6 (#850) + * Bump actions/upload-artifact from 4.3.4 to 4.3.5 (#849) + * Bump target-lexicon from 0.12.15 to 0.12.16 in /src/_bcrypt (#848) + * Bump actions/attest-build-provenance from 1.3.3 to 1.4.0 (#847) + * Bump version_check from 0.9.4 to 0.9.5 in /src/_bcrypt (#846) + * Fix pypi-publish.yml for paths with spaces (#844) + +------------------------------------------------------------------- +Tue Jul 23 13:17:30 UTC 2024 - John Paul Adrian Glaubitz + +- Update to 4.2.0 + * Bump version for 4.2.0 release (#843) + * Import improvements from cryptography wheel building and release (#840) + * Remove setup.py (#842) + * Small cleanup (#841) + * Added 3.13 to CI (#839) + * Bump portable-atomic from 1.6.0 to 1.7.0 in /src/_bcrypt (#836) + * Bump syn from 2.0.71 to 2.0.72 in /src/_bcrypt (#837) + * Bump pyo3 from 0.22.1 to 0.22.2 in /src/_bcrypt (#834) + * Bump syn from 2.0.70 to 2.0.71 in /src/_bcrypt (#833) + * Bump actions/setup-python from 5.1.0 to 5.1.1 (#832) + * Bump syn from 2.0.69 to 2.0.70 in /src/_bcrypt (#831) + * Bump target-lexicon from 0.12.14 to 0.12.15 in /src/_bcrypt (#830) + * Don't import things from prelude (#829) + * Bump actions/upload-artifact from 4.3.3 to 4.3.4 (#824) + * Bump actions/download-artifact from 4.1.7 to 4.1.8 (#825) + * Bump syn from 2.0.68 to 2.0.69 in /src/_bcrypt (#827) + * Bump pyo3 from 0.22.0 to 0.22.1 in /src/_bcrypt (#828) + * Update for new ruff syntax (#826) + * Switch to using the new pyo3 syntax for declarative modules (#823) + * Bump pyo3 to 0.22 (#822) + * Bump bitflags from 2.5.0 to 2.6.0 in /src/_bcrypt (#821) + * Bump syn from 2.0.67 to 2.0.68 in /src/_bcrypt (#818) + * Bump syn from 2.0.66 to 2.0.67 in /src/_bcrypt (#817) + * Bump proc-macro2 from 1.0.85 to 1.0.86 in /src/_bcrypt (#816) + * Bump subtle from 2.5.0 to 2.6.0 in /src/_bcrypt (#814) + * Bump redox_syscall from 0.5.1 to 0.5.2 in /src/_bcrypt (#813) + * Bump actions/checkout from 4.1.6 to 4.1.7 (#812) + * Bump proc-macro2 from 1.0.84 to 1.0.85 in /src/_bcrypt (#811) + * Bump proc-macro2 from 1.0.83 to 1.0.84 in /src/_bcrypt (#808) + * Bump zeroize from 1.7.0 to 1.8.1 in /src/_bcrypt (#809) + * Bump parking_lot from 0.12.2 to 0.12.3 in /src/_bcrypt (#810) + * Bump syn from 2.0.65 to 2.0.66 in /src/_bcrypt (#806) + * alpine is 3.12 now (#807) + * Bump proc-macro2 from 1.0.82 to 1.0.83 in /src/_bcrypt (#804) + * Bump syn from 2.0.64 to 2.0.65 in /src/_bcrypt (#803) + * Bump libc from 0.2.154 to 0.2.155 in /src/_bcrypt (#802) + * Bump actions/checkout from 4.1.5 to 4.1.6 (#800) + * Apply the wacky staticnode workaround to this repo (#801) + * Bump syn from 2.0.63 to 2.0.64 in /src/_bcrypt (#799) + * Bump syn from 2.0.61 to 2.0.63 in /src/_bcrypt (#798) + * Try upgrading ubuntu in CI (#797) + * Bump proc-macro2 from 1.0.81 to 1.0.82 in /src/_bcrypt (#796) + * Bump syn from 2.0.60 to 2.0.61 in /src/_bcrypt (#795) + * Bump getrandom from 0.2.14 to 0.2.15 in /src/_bcrypt (#794) + * Bump actions/checkout from 3.6.0 to 4.1.5 (#793) + +------------------------------------------------------------------- +Tue May 7 16:22:09 UTC 2024 - Dirk Müller + +- update to 4.1.3: + * Bump Rust dependency versions + * Fixed the type signature on the ``kdf`` method. + * Fixed packaging bug on Windows. + * Fixed incompatibility with passlib package detection assumptions. + * Dropped support for Python 3.6. + * Bumped MSRV to 1.64. (Note: Rust 1.63 can be used by setting the + ``BCRYPT_ALLOW_RUST_163`` environment variable) + +------------------------------------------------------------------- +Fri Apr 21 12:22:33 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:40:13 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Thu Nov 3 06:44:04 UTC 2022 - Daniel Garcia + +- Removed not needed C build dependencies +- Enable for all archs by default + +------------------------------------------------------------------- +Wed Nov 2 16:32:00 UTC 2022 - Daniel Garcia + +- Update to 4.0.1: + * We now build PyPy manylinux wheels. + * Fixed a bug where passing an invalid salt to checkpw could result in a + pyo3_runtime.PanicException. It now correctly raises a ValueError. +- 4.0.0: + * bcrypt is now implemented in Rust. Users building from source will need to + have a Rust compiler available. Nothing will change for users downloading + wheels. + * We no longer ship manylinux2010 wheels. Users should upgrade to the latest + pip to ensure this doesn’t cause issues downloading wheels on their + platform. We now ship manylinux_2_28 wheels for users on new enough + platforms. + * NUL bytes are now allowed in inputs. + +------------------------------------------------------------------- +Wed Nov 2 15:43:50 UTC 2022 - Daniel Garcia + +- Remove not needed python-six dependency + +------------------------------------------------------------------- +Wed May 4 19:20:18 UTC 2022 - Dirk Müller + +- update to 3.2.2: + * Fixed packaging of ``py.typed`` files in wheels so that ``mypy`` works. + * Added support for compilation on z/OS + * The next release of ``bcrypt`` with be 4.0 and it will require Rust at + compile time, for users building from source. There will be no additional + requirement for users who are installing from wheels. Users on most + platforms will be able to obtain a wheel by making sure they have an up to + date ``pip``. The minimum supported Rust version will be 1.56.0. + +------------------------------------------------------------------- +Thu Oct 8 10:13:31 UTC 2020 - Matej Cepl + +- Don't use deprecated 'python setup.py test', use pytest directly. + +------------------------------------------------------------------- +Thu Aug 27 22:04:24 UTC 2020 - John Paul Adrian Glaubitz + +- Disable Python2 support to fix the build on older distributions + +------------------------------------------------------------------- +Thu Aug 20 12:46:59 UTC 2020 - Ondřej Súkup + +- update to 3.2.0 + * add type hints to top level functions + * drop support for python 3.5 and older + * drop legacy code + +------------------------------------------------------------------- +Wed May 13 11:20:23 UTC 2020 - Antonio Larrosa + +- Relax the setuptools dependency on 40.8.0 to 40.5.0 since that + version is only required by upstream because of a pip issue + (see https://github.com/pyca/bcrypt/commit/bc8a55e70e179a59fa89fb109353182f8f438e00). + This way we can build in SLE 15 SP2 / Leap 15.2 . + +------------------------------------------------------------------- +Sun Jul 28 16:11:38 UTC 2019 - Arun Persaud + +- specfile: + * update copyright year + * changed setuptools min version + +- update to version 3.1.7: + * Set a setuptools lower bound for PEP517 wheel building. + * We no longer distribute 32-bit manylinux1 wheels. Continuing to + produce them was a maintenance burden. + +- changes from version 3.1.6: + * Added support for compilation on Haiku. + +------------------------------------------------------------------- +Fri Mar 1 11:19:33 UTC 2019 - Tomáš Chvátal + +- Update to 3.1.5: + * Added support for compilation on Haiku. + * Added support for compilation on AIX. + * Dropped Python 2.6 and 3.3 support. + * Switched to using ``abi3`` wheels for Python 3. If you are not getting a + wheel on a compatible platform please upgrade your ``pip`` version. + +------------------------------------------------------------------- +Wed Aug 29 10:30:02 UTC 2018 - tchvatal@suse.com + +- Raise pytest requirement based on setup.py + +------------------------------------------------------------------- +Wed Oct 25 19:52:50 UTC 2017 - arun@gmx.de + +- specfile: + * update copyright year + +- update to version 3.1.4: + * Fixed compilation with mingw and on illumos. + +------------------------------------------------------------------- +Sat May 6 03:31:54 UTC 2017 - toddrme2178@gmail.com + +- Don't provide python2-py-bcrypt, singlespec packages should use + correct name. + +------------------------------------------------------------------- +Sun Apr 30 09:33:56 UTC 2017 - jengelh@inai.de + +- Say which crypt methods this module actually supports. + +------------------------------------------------------------------- +Sun Apr 30 03:02:13 UTC 2017 - toddrme2178@gmail.com + +- Update to version 3.1.3 + * Fixed a compilation issue on Solaris. + * Added a warning when using too few rounds with kdf. +- Update to version 3.1.2 + * Fixed a compile issue affecting big endian platforms. + * Fixed invalid escape sequence warnings on Python 3.6. + * Fixed building in non-UTF8 environments on Python 2. +- Provides/Obsoletes "python-py-bcrypt" exactly. +- Change Summary/Description. Apparently "bcrypt is not "modern", + not anymore." + +------------------------------------------------------------------- +Thu Apr 27 18:20:04 UTC 2017 - toddrme2178@gmail.com + +- Fix license. + +------------------------------------------------------------------- +Tue Apr 25 21:59:02 UTC 2017 - toddrme2178@gmail.com + +- Add Provides/Obsoletes py-bcrypt. + This package is intended as a drop-in replacement for py-bcrypt + +------------------------------------------------------------------- +Mon Apr 17 08:41:04 UTC 2017 - axel.braun@gmx.de + +- changes for singlespec + +------------------------------------------------------------------- +Wed Oct 5 11:57:45 UTC 2016 - dmueller@suse.com + +- require the cffi version it was built against + +------------------------------------------------------------------- +Thu Sep 29 20:53:41 UTC 2016 - mardnh@gmx.de + +- Update to version 3.1.1 + * Resolved a UserWarning when used with cffi 1.8.3. + +------------------------------------------------------------------- +Thu Sep 15 15:18:25 UTC 2016 - mardnh@gmx.de + +- build with "-fno-strict-aliasing" + +------------------------------------------------------------------- +Sun Sep 11 13:34:58 UTC 2016 - mardnh@gmx.de + +- initial package, version 3.1.0 + diff --git a/python-bcrypt.spec b/python-bcrypt.spec new file mode 100644 index 0000000..6d87aad --- /dev/null +++ b/python-bcrypt.spec @@ -0,0 +1,72 @@ +# +# spec file for package python-bcrypt +# +# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2016, Martin Hauke +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global rustflags '-Clink-arg=-Wl,-z,relro,-z,now' +%{?sle15_python_module_pythons} +Name: python-bcrypt +Version: 4.2.1 +Release: 0 +Summary: BSD type 2a and 2b password hashing +License: Apache-2.0 +Group: Development/Languages/Python +URL: https://github.com/pyca/bcrypt/ +Source0: https://files.pythonhosted.org/packages/source/b/bcrypt/bcrypt-%{version}.tar.gz +Source1: vendor.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest >= 3.2.1} +BuildRequires: %{python_module setuptools-rust >= 1.7.0} +BuildRequires: %{python_module wheel} +# setuptools 40.8.0 is required by upstream only for a pip issue that doesn't +# affect us, so we relax the requirement to build in SLE/Leap 15.2 with 40.5.0 +BuildRequires: %{python_module setuptools >= 40.5.0} +BuildRequires: cargo-packaging +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Provides: python-py-bcrypt = %{version} +Obsoletes: python-py-bcrypt < %{version} + +%python_subpackages + +%description +This Python module supports creating (and verifying) password hashes +using the BSD-originating hashing methods known as "2a" and "2b". + +%prep +%autosetup -p1 -a1 -n bcrypt-%{version} +rm -v src/_bcrypt/Cargo.lock + +%build +export RUSTFLAGS=%{rustflags} +export CFLAGS="%{optflags} -fno-strict-aliasing" +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}/%{$python_sitearch} + +%check +%pytest_arch tests/ + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitearch}/bcrypt +%{python_sitearch}/bcrypt-%{version}*-info + +%changelog diff --git a/vendor.tar.gz b/vendor.tar.gz new file mode 100644 index 0000000..cbc6fc5 --- /dev/null +++ b/vendor.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8471b7e4065685d2580198b6c670050e19e7b1cd473137cce2305bcdb54a1dd7 +size 3197182