diff --git a/0001-packaging_safety_2.3.5.patch b/0001-packaging_safety_2.3.5.patch new file mode 100644 index 0000000000000000000000000000000000000000..6c4ddee61060e03ac1ff8b942593090f3f704701 --- /dev/null +++ b/0001-packaging_safety_2.3.5.patch @@ -0,0 +1,25 @@ +From c119c32bcf78ef63a7cda0b4e6c6c513511ea4a8 Mon Sep 17 00:00:00 2001 +From: luolu12 +Date: Tue, 27 Jun 2023 15:14:00 +0800 +Subject: [PATCH] patch + +--- + setup.cfg | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.cfg b/setup.cfg +index 3ec78b9..f7c4fc1 100644 +--- a/setup.cfg ++++ b/setup.cfg +@@ -39,7 +39,7 @@ install_requires = + setuptools>=19.3 + Click>=8.0.2 + requests +- packaging>=21.0,<22.0 ++ packaging>=21.0,<=23.1 + dparse>=0.6.2 + ruamel.yaml>=0.17.21 + dataclasses==0.8; python_version=="3.6" +-- +2.33.0 + diff --git a/python-safety.spec b/python-safety.spec new file mode 100644 index 0000000000000000000000000000000000000000..0fd3e7a319ba52a5d76f015be44341a3a8db5ee1 --- /dev/null +++ b/python-safety.spec @@ -0,0 +1,56 @@ +%global pypi_name safety +%global pypi_version 2.3.5 + +Name: python-%{pypi_name} +Version: %{pypi_version} +Release: 1 +Summary: Safety checks Python dependencies for known security vulnerabilities and suggests the proper remediations for vulnerabilities detected. + +License: MIT +URL: https://github.com/pyupio/safety +Source0: https://files.pythonhosted.org/packages/36/c3/a1eeffef985f0ae71e133312fd474b616e55acb55acaf597a314c4fcf88e/safety-2.3.5.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-editables +BuildRequires: python3-hatch-vcs +BuildRequires: python3-hatchling + +Patch001:0001-packaging_safety_2.3.5.patch + +%description +Safety checks Python dependencies for known security vulnerabilities and suggests the proper remediations for vulnerabilities detected. Safety can be run on developer machines, in CI/CD pipelines and on production systems. + + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +Safety checks Python dependencies for known security vulnerabilities and suggests the proper remediations for vulnerabilities detected. Safety can be run on developer machines, in CI/CD pipelines and on production systems. + +%patch001 -p1 + +%prep +%autosetup -n %{pypi_name}-%{pypi_version} + +%build +%pyproject_build + +%install +%pyproject_install + + + +%files -n python3-%{pypi_name} +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-*.dist-info +%{_bindir}/safety + + +%changelog +* Mon Jun 26 2023 luolu12 - 2.3.5-1 +- Initial package. diff --git a/safety-2.3.5.tar.gz b/safety-2.3.5.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..21b495c50cac8549fa1dd95c691a1f588548d54e Binary files /dev/null and b/safety-2.3.5.tar.gz differ