diff --git a/python-path.spec b/python-path.spec index e21dc0b..fba5961 100644 --- a/python-path.spec +++ b/python-path.spec @@ -2,7 +2,7 @@ Name: python-path Version: 11.5.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Python module wrapper for os.path License: MIT @@ -15,18 +15,6 @@ path.py implements path objects as first-class entities, allowing common operations on files to be invoked on those path objects directly. -%package -n python2-path -Summary: Python 2 module wrapper for os.path -BuildRequires: python2-devel -BuildRequires: python2-pytest -BuildRequires: python2-packaging -BuildRequires: python2-setuptools_scm -%{?python_provide:%python_provide python2-path} -%description -n python2-path -path.py implements path objects as first-class entities, allowing common -operations on files to be invoked on those path objects directly. - - %package -n python3-path Summary: Python 3 module wrapper for os.path BuildRequires: python3-devel @@ -53,29 +41,17 @@ sed -i "/importlib_metadata/d" setup.py %build SETUPTOOLS_SCM_PRETEND_VERSION=%{version} -%py2_build %py3_build %install -%py2_install %py3_install %check -# There is a Unicode test failure on Python 2. -PYTHONPATH=%{buildroot}%{python2_sitelib} LANG=C.UTF-8 pytest-2 -v -k "not test_listdir_other_encoding" PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-3 -v -%files -n python2-path -%doc CHANGES.rst README.rst -%{python2_sitelib}/path.py -%{python2_sitelib}/path.pyc -%{python2_sitelib}/path.pyo -%{python2_sitelib}/path.py-%{version}-py%{python2_version}.egg-info/ -%exclude %{python2_sitelib}/test_path.py* - %files -n python3-path %{python3_sitelib}/__pycache__/* %{python3_sitelib}/path.py @@ -84,6 +60,10 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-3 -v %changelog +* Wed Sep 11 2019 Miro HronĨok - 11.5.0-2 +- Subpackage python2-path has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Tue Aug 20 2019 Ken Dreyer - 11.5.0-1 - Update to latest upstream release (rhbz#1206250)