diff --git a/PasteDeploy-2.1.1.tar.gz b/PasteDeploy-2.1.1.tar.gz deleted file mode 100644 index a1b1360..0000000 Binary files a/PasteDeploy-2.1.1.tar.gz and /dev/null differ diff --git a/PasteDeploy-3.0.1.tar.gz b/PasteDeploy-3.0.1.tar.gz new file mode 100644 index 0000000..226cafb Binary files /dev/null and b/PasteDeploy-3.0.1.tar.gz differ diff --git a/python-paste-deploy.spec b/python-paste-deploy.spec index 64f01e7..c8e27b9 100644 --- a/python-paste-deploy.spec +++ b/python-paste-deploy.spec @@ -1,11 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-PasteDeploy -Version: 2.1.1 +Version: 3.0.1 Release: 1 Summary: Load, configure, and compose WSGI applications and servers License: MIT URL: https://pylonsproject.org/ -Source0: https://files.pythonhosted.org/packages/3f/98/179626030d6b3f04e4471aae01f1eae7539347fa7bb8f1228ea4ed600054/PasteDeploy-2.1.1.tar.gz +Source0: https://files.pythonhosted.org/packages/af/8f/1b09eac08a9a77706f30aa530ecf833bc1b3c05c4693eee9e37f91690614/PasteDeploy-3.0.1.tar.gz BuildArch: noarch %description @@ -21,6 +21,7 @@ BuildRequires: python3-pbr BuildRequires: python3-pip BuildRequires: python3-wheel BuildRequires: python3-pytest +BuildRequires: python3-pytest-cov Requires: python3-paste Requires: python3-sphinx @@ -39,9 +40,17 @@ This tool provides code to load WSGI applications and servers from URIs. These U %prep %autosetup -n PasteDeploy-%{version} +pushd src +echo `pwd` > absolute_prefix.log +sed -i 's/\//\\\//g' absolute_prefix.log +absolute_prefix=`head -n 1 absolute_prefix.log` +popd +sed -i '/os.path.dirname(egg_info_dir)/a\sys.path.append('"\'$absolute_prefix\/\'"')' ./tests/__init__.py + %build %py3_build +#cp -r ./src/paste ./tests %install %py3_install @@ -73,7 +82,7 @@ mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %check -pytest +pytest . %files -n python3-paste-deploy -f filelist.lst @@ -83,6 +92,9 @@ pytest %{_docdir}/* %changelog +* Mon Apr 10 2023 Ge Wang - 3.0.1-1 +- update to version 3.0.1 + * Tue Jul 27 2021 OpenStack_SIG - 2.1.1-1 - updata to 2.1.1