init package to version 2.6.1

This commit is contained in:
zoujiancang 2023-06-15 10:04:15 +08:00
parent e81768b728
commit 6fdf32215e
3 changed files with 93 additions and 0 deletions

View File

@ -0,0 +1,25 @@
From bb2fade8b54d05183bc367d0715e9cbeaba71853 Mon Sep 17 00:00:00 2001
From: zoujiancang <jczou@isoftstone.com>
Date: Thu, 15 Jun 2023 15:20:34 +0800
Subject: [PATCH] modify the version restriction of falcon to (>=2.0.0)
---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index 3d84b66..cdd7773 100755
--- a/setup.py
+++ b/setup.py
@@ -96,7 +96,7 @@ setup(
entry_points={"console_scripts": ["hug = hug:development_runner.hug.interface.cli"]},
packages=["hug"],
requires=["falcon", "requests"],
- install_requires=["falcon==2.0.0", "requests"],
+ install_requires=["falcon>=2.0.0", "requests"],
setup_requires=["pytest-runner"],
tests_require=["pytest", "mock", "marshmallow"],
ext_modules=ext_modules,
--
2.27.0

BIN
hug-2.6.1.tar.gz Normal file

Binary file not shown.

68
python-hug.spec Normal file
View File

@ -0,0 +1,68 @@
# Created by pyp2rpm-zoujiancang-3.2.2
%global pypi_name hug
Name: python-%{pypi_name}
Version: 2.6.1
Release: 1%{?dist}
Summary: A Python framework that makes developing APIs as simple as possible, but no simpler
License: MIT
URL: https://github.com/hugapi/hug
Source0: https://files.pythonhosted.org/packages/source/h/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Patch1: 0001-modify-the-version-restriction-of-falcon-to-ge-2.0.0.patch
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-pytest-runner
BuildRequires: python3-pytest
BuildRequires: python3-mock
BuildRequires: python3-marshmallow
BuildRequires: python3-setuptools
%description
hug's Design Objectives:
- Make developing a Python driven API as succinct as a written definition.
- The framework should encourage code that self-documents.
- It should be fast. A developer should never feel the need to look somewhere else for performance reasons.
- Writing tests for APIs written on-top of hug should be easy and intuitive.
- Magic done once, in an API framework, is better than pushing the problem set to the user of the API framework.
- Be the basis for next generation Python APIs, embracing the latest technology.
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
hug's Design Objectives:
- Make developing a Python driven API as succinct as a written definition.
- The framework should encourage code that self-documents.
- It should be fast. A developer should never feel the need to look somewhere else for performance reasons.
- Writing tests for APIs written on-top of hug should be easy and intuitive.
- Magic done once, in an API framework, is better than pushing the problem set to the user of the API framework.
- Be the basis for next generation Python APIs, embracing the latest technology.
%prep
%autosetup -p1 -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%py3_build
%install
%py3_install
cp %{buildroot}/%{_bindir}/hug %{buildroot}/%{_bindir}/hug-%{python3_version}
ln -s %{_bindir}/hug-%{python3_version} %{buildroot}/%{_bindir}/hug-3
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{_bindir}/hug
%{_bindir}/hug-3
%{_bindir}/hug-%{python3_version}
%{python3_sitelib}/%{pypi_name}*
%changelog
* Wed Jun 14 2023 zoujiancang <jczou@isoftstone.com> - 2.6.1-1
- Initial package.