diff --git a/packaging-21.3.tar.gz b/packaging-21.3.tar.gz deleted file mode 100644 index e327d388e34639498b69e0f61fb0a92bd2b355e9..0000000000000000000000000000000000000000 Binary files a/packaging-21.3.tar.gz and /dev/null differ diff --git a/packaging-22.0.tar.gz b/packaging-22.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..1e194b04ba7dd0f00c440db34ff96f6e9f75efa8 Binary files /dev/null and b/packaging-22.0.tar.gz differ diff --git a/python-packaging.spec b/python-packaging.spec index df3fd9825f507739a4556a101d113f9cb0f91720..b4e77eaf30c0b913169495379a368e9081c8122b 100644 --- a/python-packaging.spec +++ b/python-packaging.spec @@ -2,12 +2,13 @@ %bcond_without test Name: python-packaging -Version: 21.3 -Release: 3 +Version: 22.0 +Release: 1 Summary: Core utilities for Python packages License: BSD and ASL 2.0 URL: https://github.com/pypa/packaging -Source0: https://files.pythonhosted.org/packages/df/9e/d1a7217f69310c1db8fdf8ab396229f55a699ce34a203691794c5d1cad0c/packaging-21.3.tar.gz +Source0: https://files.pythonhosted.org/packages/6b/f7/c240d7654ddd2d2f3f328d8468d4f1f876865f6b9038b146bec0a6737c65/packaging-22.0.tar.gz +Source1: setup.py BuildArch: noarch %description Reusable core utilities for various Python Packaging interoperability specifications. @@ -52,11 +53,11 @@ The packaging project includes the following: version handling, specifiers, mark %prep %autosetup -n packaging-%{version} +cp %{SOURCE1} ./ %build %py3_build - %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} @@ -98,6 +99,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Fri Dec 16 2022 lijian - 22.0-1 +- update to upstream version 22.0 + * Wed Dec 29 2021 shixuantong - 21.3-3 - fix provides error diff --git a/setup.py b/setup.py new file mode 100644 index 0000000000000000000000000000000000000000..d286800d3fb40b8715b23db93aa11c2a0beaa340 --- /dev/null +++ b/setup.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python +# This file is dual licensed under the terms of the Apache License, Version +# 2.0, and the BSD License. See the LICENSE file in the root of this repository +# for complete details. + +import os +import re + +# While I generally consider it an antipattern to try and support both +# setuptools and distutils with a single setup.py, in this specific instance +# where packaging is a dependency of setuptools, it can create a circular +# dependency when projects attempt to unbundle stuff from setuptools and pip. +# Though we don't really support that, it makes things easier if we do this and +# should hopefully cause less issues for end users. +try: + from setuptools import setup +except ImportError: + from distutils.core import setup + + +base_dir = os.path.dirname(__file__) + +about = {} +with open(os.path.join(base_dir, "packaging", "__about__.py")) as f: + exec(f.read(), about) + +with open(os.path.join(base_dir, "README.rst")) as f: + long_description = f.read() + + +setup( + name=about["__title__"], + version=about["__version__"], + description=about["__summary__"], + long_description=long_description, + long_description_content_type="text/x-rst", + license=about["__license__"], + url=about["__uri__"], + author=about["__author__"], + author_email=about["__email__"], + python_requires=">=3.6", + install_requires=["pyparsing>=2.0.2,!=3.0.5"], # 2.0.2 + needed to avoid issue #91 + classifiers=[ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "License :: OSI Approved :: Apache Software License", + "License :: OSI Approved :: BSD License", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: Implementation :: CPython", + "Programming Language :: Python :: Implementation :: PyPy", + ], + packages=["packaging"], + package_data={"packaging": ["py.typed"]}, +)