1 Star 0 Fork 31

kobe_memba/python-bcrypt

forked from src-openEuler/python-bcrypt
关闭
 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-bcrypt.spec 3.59 KB
一键复制 编辑 原始数据 按行查看 历史
kobe_memba 提交于 2025-12-19 10:33 +08:00 . update to 5.0.0
Name: python-bcrypt
Version: 5.0.0
Release: 1
Summary: Modern password hashing for your software and your servers
License: Apache-2.0
URL: https://github.com/pyca/bcrypt
Source0: %{pypi_source bcrypt}
# tar -xf bcrypt-version.tar.gz
# cd bcrypt-version/src/_bcrypt
# cargo vendor
# tar -czvf vendor.tar.gz vendor
Source1: vendor.tar.gz
Source2: config.toml
%description
Good password hashing for your software and your servers.
This library should be compatible with py-bcrypt and it will run on Python 3.7+.
%package -n python3-bcrypt
Summary: Modern password hashing for your software and your servers
Provides: python-bcrypt = %{version}-%{release}
BuildRequires: python3-devel >= 3.7
BuildRequires: python3-setuptools >= 42.0
BuildRequires: python3-setuptools-rust >= 1.7.0
BuildRequires: rust >= 1.64.0
BuildRequires: cargo
BuildRequires: rust-packaging
BuildRequires: python3-cffi
BuildRequires: gcc
BuildRequires: python3-pytest >= 3.2.1
BuildRequires: python3-pip
BuildRequires: python3-wheel
Obsoletes: %{name}-help < %{version}-%{release}
%description -n python3-bcrypt
Good password hashing for your software and your servers.
This library should be compatible with py-bcrypt and it will run on Python 3.7+.
%prep
%autosetup -n bcrypt-%{version} -p1 -a1
mkdir .cargo
cp %{SOURCE2} .cargo/
%build
%set_build_flags
%pyproject_build
%install
%set_build_flags
%pyproject_install
%check
export PYTHONPATH=%{buildroot}%{python3_sitearch}
pytest
%files -n python3-bcrypt
%doc README.rst
%{python3_sitearch}/*
%changelog
* Fri Dec 19 2025 zhang-ke <zhangke21@baidu.com> - 5.0.0-1
- Update to 5.0.0
- Update README.rst to reflect actual MSRV 1.74
* Thu Aug 21 2025 wangkai <13474090681@163.com> - 4.3.0-1
- Update to 4.3.0
* Dropped support for Python 3.7.
* We now support free-threaded Python 3.13 and PyPy 3.11.
* Sat Aug 09 2025 Funda Wang <fundawang@yeah.net> - 4.2.0-4
- correctly build extension with updated rust flags
- drop empty help sub package
* Sun Aug 03 2025 Funda Wang <fundawang@yeah.net> - 4.2.0-3
- drop unused buildrequires
* Fri Jan 24 2025 Shinwell Hu <micromotives@qq.com> - 4.2.0-2
- Use "cargo vendor" to avoid network access during build phase.
* Thu Oct 17 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 4.2.0-1
- Update package to version 4.2.0
- Switch to using the new pyo3 syntax for declarative modules
Update for new ruff syntax
* Sat May 11 2024 wangxiaomeng <wangxiaomeng@kylinos.cn> - 4.1.3-1
- Update to 4.1.3
- 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)
- Fixed the type signature on the kdf method.
- Fixed incompatibility with passlib package detection assumptions.
- Publish both py37 and py39 wheels. This should resolve some errors relating to initializing a module multiple times per process.
- Bump Rust dependency versions
* Wed Apr 10 2024 Ge Wang <wang__ge@126.com> - 4.0.1-1
- Update to 4.0.1
* Fri Apr 28 2023 yaoxin <yao_xin001@hoperun.com> - 3.2.2-1
- Update to 3.2.2
* Mon Jun 20 2022 tanyulong <tanyulong@kylinos.cn> - 3.2.0-2
- Delete unnecessary gdb from BuildRequires
* Wed Jul 14 2021 OpenStack_SIG <openstack@openeuler.org> - 3.2.0-1
- Upgrade to version 3.2.0
* Sat Feb 27 2021 extinctfire <shenyining_00@126.com> - 3.1.4-9
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:Don't emit warning in test_kdf, there's no point whoops here
* Wed Oct 21 2020 jinzhimin<jinzhimin2@huawei.com> - 3.1.4-8
- remove python2-bcrypt subpackage
* Wed Nov 13 2019 Lijin Yang <yanglijin@huawei.com> - 3.1.4-7
- init package
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kobememba/python-bcrypt.git
git@gitee.com:kobememba/python-bcrypt.git
kobememba
python-bcrypt
python-bcrypt
master

搜索帮助