Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removal of various python2 based packages, backported fromDEVEL #7062

Merged
merged 1 commit into from Jun 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmssw.spec
@@ -1,4 +1,4 @@
### RPM cms cmssw CMSSW_10_1_0_pre1
### RPM cms cmssw CMSSW_12_0_0

Requires: cmssw-tool-conf python

Expand Down
2 changes: 1 addition & 1 deletion fwlite_python_tools.spec
Expand Up @@ -4,7 +4,7 @@
Source: none

Requires: py2-six
Requires: py2-scipy
Requires: py3-scipy
Requires: py2-numpy

%prep
Expand Down
2 changes: 1 addition & 1 deletion onnxruntime.spec
Expand Up @@ -6,7 +6,7 @@
Source: git+https://github.com/%{github_user}/%{n}.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&submodules=1&output=/%{n}-%{realversion}.tgz

BuildRequires: cmake ninja
Requires: protobuf py3-numpy py2-wheel py2-onnx zlib libpng py3-pybind11
Requires: protobuf py3-numpy py2-wheel py3-onnx zlib libpng py3-pybind11
%if "%{cmsos}" != "slc7_aarch64"
Requires: cuda cudnn
%endif
Expand Down
2 changes: 1 addition & 1 deletion pip/Keras.file
@@ -1,2 +1,2 @@
Requires: py2-PyYAML py2-six py2-scipy py3-Theano
Requires: py2-PyYAML py2-six py3-Theano
Requires: py3-h5py py3-keras-applications py3-keras-preprocessing
1 change: 0 additions & 1 deletion pip/Theano.file
@@ -1,4 +1,3 @@
Requires: py2-scipy py2-six
Requires: py3-scipy
%define RelocatePython %{i}/bin/theano-*
%define PipPostBuildPy3 sed -i -e 's| %{cmsroot}/.*python3 | python3 |' %{i}/bin/theano-*
2 changes: 1 addition & 1 deletion pip/absl-py.file
@@ -1 +1 @@
Requires: py2-enum34 py2-six
Requires: py2-six
2 changes: 1 addition & 1 deletion pip/aiohttp.file
@@ -1 +1 @@
Requires: py2-attrs py3-chardet py3-multidict py3-yarl py3-async-timeout py2-typing_extensions
Requires: py3-attrs py3-chardet py3-multidict py3-yarl py3-async-timeout py3-typing_extensions
2 changes: 1 addition & 1 deletion pip/aiosqlite.file
@@ -1 +1 @@
Requires: py2-typing_extensions py3-flit-core
Requires: py3-typing_extensions py3-flit-core
2 changes: 1 addition & 1 deletion pip/argon2-cffi.file
@@ -1 +1 @@
Requires: py3-cffi py2-six py2-enum34 py2-wheel
Requires: py3-cffi py2-six py2-wheel
4 changes: 2 additions & 2 deletions pip/astroid.file
@@ -1,2 +1,2 @@
Requires: py3-lazy-object-proxy py2-six py3-wrapt py2-enum34 py3-singledispatch py2-backports-functools_lru_cache
Requires: py2-pytest-runner
Requires: py3-lazy-object-proxy py2-six py3-wrapt py3-singledispatch py2-backports-functools_lru_cache
Requires: py3-pytest-runner
2 changes: 1 addition & 1 deletion pip/autopep8.file
@@ -1,2 +1,2 @@
Requires: py3-pycodestyle py2-toml
Requires: py3-pycodestyle py3-toml
%define RelocatePython %{i}/bin/*
2 changes: 1 addition & 1 deletion pip/awkward.file
@@ -1 +1 @@
Requires: py2-numpy py3-numpy py2-pytest-runner
Requires: py2-numpy py3-numpy py3-pytest-runner
2 changes: 1 addition & 1 deletion pip/awkward1.file
@@ -1,2 +1,2 @@
Requires: py2-numpy py3-numpy py2-pytest-runner py3-pybind11 cmake
Requires: py2-numpy py3-numpy py3-pytest-runner py3-pybind11 cmake
%define source0 git+https://github.com/scikit-hep/awkward-1.0?obj=main/%{realversion}&export=%{n}-%{realversion}&submodules=1&output=/source.tar.gz
2 changes: 1 addition & 1 deletion pip/bokeh.file
@@ -1,3 +1,3 @@
Requires: py2-pillow py2-PyYAML py3-python-dateutil py3-Jinja2 py2-numpy py2-packaging
Requires: py2-PyYAML py3-python-dateutil py3-Jinja2 py2-numpy py3-packaging
Requires: py3-tornado py3-numpy py3-pillow
%define RelocatePython %{i}/bin/*
2 changes: 1 addition & 1 deletion pip/boost-histogram.file
@@ -1 +1 @@
Requires: py3-numpy py2-typing py2-wheel
Requires: py3-numpy py3-typing py2-wheel
2 changes: 1 addition & 1 deletion pip/deprecation.file
@@ -1 +1 @@
Requires: py2-packaging
Requires: py3-packaging
2 changes: 1 addition & 1 deletion pip/fire.file
@@ -1 +1 @@
Requires: py2-six py3-termcolor py2-enum34
Requires: py2-six py3-termcolor
2 changes: 1 addition & 1 deletion pip/flake8.file
@@ -1,2 +1,2 @@
Requires: py2-backports py2-enum34 py3-mccabe py3-pycodestyle py3-pyflakes py3-entrypoints py2-typing py2-importlib-metadata
Requires: py2-backports py3-mccabe py3-pycodestyle py3-pyflakes py3-entrypoints py3-typing py3-importlib-metadata
%define RelocatePython %{i}/bin/*
2 changes: 1 addition & 1 deletion pip/flit-core.file
@@ -1 +1 @@
Requires: py3-pytoml py2-toml
Requires: py3-pytoml py3-toml
2 changes: 1 addition & 1 deletion pip/fs.file
@@ -1,2 +1,2 @@
Requires: py2-six py2-typing py2-appdirs py3-pytz py2-backports py2-enum34
Requires: py2-six py3-typing py3-appdirs py3-pytz py2-backports
%define RelocatePython %{i}/bin/*
2 changes: 1 addition & 1 deletion pip/grpcio-tools.file
@@ -1 +1 @@
Requires: py2-protobuf py2-grpcio
Requires: py3-protobuf py3-grpcio
2 changes: 1 addition & 1 deletion pip/grpcio.file
@@ -1 +1 @@
Requires: py2-enum34 py2-futures py2-six
Requires: py2-six
2 changes: 1 addition & 1 deletion pip/hepdata-lib.file
@@ -1 +1 @@
Requires: root py2-pytest py3-pytest-cov py2-PyYAML py2-future py3-pylint
Requires: root py3-pytest py3-pytest-cov py2-PyYAML py2-future py3-pylint
2 changes: 1 addition & 1 deletion pip/histoprint.file
@@ -1 +1 @@
Requires: py3-numpy py2-setuptools-scm py2-toml py3-Click
Requires: py3-numpy py2-setuptools-scm py3-toml py3-Click
2 changes: 1 addition & 1 deletion pip/html5lib.file
@@ -1 +1 @@
Requires: py3-ordereddict py2-six py2-packaging py3-webencodings py2-pyparsing py2-appdirs
Requires: py2-six py3-packaging py3-webencodings py3-pyparsing py3-appdirs
2 changes: 1 addition & 1 deletion pip/hyperopt.file
@@ -1,4 +1,4 @@
Requires: py2-six py3-nose py2-future py3-pymongo py2-scipy py3-tqdm
Requires: py2-six py3-nose py2-future py3-pymongo py3-scipy py3-tqdm
Requires: py3-scipy py3-networkx py3-cloudpickle
%define patchsrc sed -i -e 's|packages = None|packages = ["hyperopt"]|' setup.py
%define RelocatePython %{i}/bin/*
2 changes: 1 addition & 1 deletion pip/importlib-metadata.file
@@ -1 +1 @@
Requires: py2-contextlib2 py2-configparser py2-pathlib2 py3-zipp py2-zipp
Requires: py3-contextlib2 py3-pathlib2 py3-zipp
2 changes: 1 addition & 1 deletion pip/importlib-resources.file
@@ -1,3 +1,3 @@
Requires: py2-wheel
Requires: py2-pathlib2 py2-contextlib2 py3-singledispatch py2-typing py2-importlib-metadata py3-zipp
Requires: py3-pathlib2 py3-contextlib2 py3-singledispatch py3-typing py3-importlib-metadata py3-zipp

2 changes: 1 addition & 1 deletion pip/isort.file
@@ -1,4 +1,4 @@
Requires: py2-futures py2-backports-functools_lru_cache
Requires: py2-backports-functools_lru_cache

%define patchsrc sed -i -e '/.*futures.*/d' isort.egg-info/requires.txt setup.py
%define RelocatePython %{i}/bin/*
4 changes: 2 additions & 2 deletions pip/jsonpickle.file
@@ -1,4 +1,4 @@
BuildRequires: py2-wheel
Requires: py2-importlib-metadata
Requires: py2-wheel
Requires: py3-importlib-metadata


2 changes: 1 addition & 1 deletion pip/jsonschema.file
@@ -1,4 +1,4 @@
Requires: py3-repoze-lru py3-argparse py3-pyrsistent
Requires: py2-attrs py2-six py2-importlib-metadata
Requires: py3-attrs py2-six py3-importlib-metadata
%define RelocatePython %{i}/bin/jsonschema

2 changes: 1 addition & 1 deletion pip/llvmlite.file
@@ -1,4 +1,4 @@
Requires: llvm py2-wheel py2-enum34
Requires: llvm py2-wheel
Patch0: py2-llvmlite-fpic-flag
Patch1: py2-llvmlite-llvm9
Patch2: py2-llvmlite-removeduplicate
Expand Down
2 changes: 1 addition & 1 deletion pip/luigi.file
@@ -1,4 +1,4 @@
Requires: py3-tornado py3-python-daemon py3-python-dateutil py2-enum34
Requires: py3-tornado py3-python-daemon py3-python-dateutil

%define PipPostBuildPy2 (cd "%{i}/bin" && for f in *; do cp ${f} ${f}2; done)
%define PipPostBuildPy3 (cd "%{i}/bin" && for f in *; do mv ${f} ${f}3; done)
Expand Down
2 changes: 1 addition & 1 deletion pip/matplotlib.file
@@ -1,2 +1,2 @@
Requires: py3-cycler py3-kiwisolver py2-pyparsing py3-python-dateutil py3-certifi
Requires: py3-cycler py3-kiwisolver py3-pyparsing py3-python-dateutil py3-certifi
Requires: zlib libpng freetype
2 changes: 1 addition & 1 deletion pip/mccabe.file
@@ -1 +1 @@
Requires: py2-pytest-runner
Requires: py3-pytest-runner
2 changes: 1 addition & 1 deletion pip/mock.file
@@ -1 +1 @@
Requires: py2-six py2-funcsigs py3-pbr
Requires: py2-six py3-funcsigs py3-pbr
2 changes: 1 addition & 1 deletion pip/mplhep.file
@@ -1 +1 @@
Requires: py3-numpy py3-matplotlib py3-scipy py3-requests py2-packaging
Requires: py3-numpy py3-matplotlib py3-scipy py3-requests py3-packaging
2 changes: 1 addition & 1 deletion pip/onnx.file
@@ -1,4 +1,4 @@
Requires: cmake py2-numpy protobuf py2-protobuf py2-six py2-typing_extensions py3-numpy py2-pytest-runner
Requires: cmake py2-numpy protobuf py3-protobuf py2-six py3-typing_extensions py3-numpy py3-pytest-runner

%define PipPreBuild export ONNX_ML=1
%define RelocatePython %{i}/bin/*
2 changes: 1 addition & 1 deletion pip/packaging.file
@@ -1 +1 @@
Requires: py2-pyparsing py2-six py2-attrs
Requires: py3-pyparsing py2-six py3-attrs
2 changes: 1 addition & 1 deletion pip/pathlib2.file
@@ -1 +1 @@
Requires: py2-six py2-scandir
Requires: py2-six py3-scandir
2 changes: 1 addition & 1 deletion pip/pickleshare.file
@@ -1 +1 @@
Requires: py2-pathlib2
Requires: py3-pathlib2
2 changes: 1 addition & 1 deletion pip/pluggy.file
@@ -1 +1 @@
Requires: py2-importlib-metadata
Requires: py3-importlib-metadata
2 changes: 1 addition & 1 deletion pip/protobuf.file
@@ -1 +1 @@
Requires: py2-six py2-packaging py2-pyparsing py2-appdirs
Requires: py2-six py3-packaging py3-pyparsing py3-appdirs
1 change: 0 additions & 1 deletion pip/py2-scikit-learn.file

This file was deleted.

4 changes: 0 additions & 4 deletions pip/py2-xgboost.file

This file was deleted.

2 changes: 1 addition & 1 deletion pip/py3-bokeh.file
@@ -1,2 +1,2 @@
Requires: py2-typing_extensions
Requires: py3-typing_extensions
%define PipPostBuildPy3 for x in $(ls %{i}/bin/*) ; do mv $x ${x}3; done
2 changes: 1 addition & 1 deletion pip/py3-keras2onnx.file
@@ -1,2 +1,2 @@
Requires: py3-numpy py2-protobuf py3-requests py2-onnx py3-onnxconverter-common py3-fire
Requires: py3-numpy py3-protobuf py3-requests py3-onnx py3-onnxconverter-common py3-fire
%define source0 https://github.com/onnx/keras-onnx/archive/v%{realversion}.tar.gz
2 changes: 1 addition & 1 deletion pip/py3-numba.file
@@ -1,2 +1,2 @@
Requires: py2-funcsigs py2-six py3-singledispatch py3-llvmlite py3-numpy python3
Requires: py3-funcsigs py2-six py3-singledispatch py3-llvmlite py3-numpy python3
%define RelocatePython %{i}/bin/*
2 changes: 1 addition & 1 deletion pip/py3-onnxconverter-common.file
@@ -1,2 +1,2 @@
Requires: py2-numpy py3-numpy py2-onnx py2-protobuf py2-six
Requires: py2-numpy py3-numpy py3-onnx py3-protobuf py2-six
%define source0 https://github.com/microsoft/onnxconverter-common/archive/v%{realversion}.tar.gz
2 changes: 1 addition & 1 deletion pip/py3-onnxmltools.file
@@ -1,2 +1,2 @@
Requires: py3-numpy py2-onnx py2-protobuf py3-onnxconverter-common py3-skl2onnx py3-keras2onnx
Requires: py3-numpy py3-onnx py3-protobuf py3-onnxconverter-common py3-skl2onnx py3-keras2onnx
%define source0 https://github.com/onnx/onnxmltools/archive/v%{realversion}.tar.gz
2 changes: 1 addition & 1 deletion pip/py3-onnxruntime.file
@@ -1,2 +1,2 @@
Requires: onnxruntime py3-numpy py2-onnx
Requires: onnxruntime py3-numpy py3-onnx
%define PipDownloadSourceType none
2 changes: 1 addition & 1 deletion pip/py3-pylint.file
@@ -1,2 +1,2 @@
Requires: py3-astroid py2-toml
Requires: py3-astroid py3-toml
%define PipPostBuildPy3 for x in $(ls %{i}/bin/*) ; do mv $x ${x}3; done ; sed -i -e 's| %{cmsroot}/.*python3 | python3 |' %{i}/bin/*3
2 changes: 1 addition & 1 deletion pip/py3-skl2onnx.file
@@ -1,2 +1,2 @@
Requires: py2-six py3-numpy py3-scipy py2-protobuf py2-onnx py3-scikit-learn py3-onnxconverter-common
Requires: py2-six py3-numpy py3-scipy py3-protobuf py3-onnx py3-scikit-learn py3-onnxconverter-common
%define source0 https://github.com/onnx/sklearn-onnx/archive/%{realversion}.tar.gz
2 changes: 1 addition & 1 deletion pip/py3-tensorboard.file
@@ -1,3 +1,3 @@
Requires: py3-numpy py2-absl-py py2-grpcio
Requires: py3-numpy py3-absl-py py3-grpcio
Requires: py3-google-auth-oauthlib py3-tensorboard-plugin-wit
%define PipPostBuild mv %{i}/bin/tensorboard %{i}/bin/tensorboard3
2 changes: 1 addition & 1 deletion pip/pyasn1-modules.file
@@ -1 +1 @@
Requires: py2-pyasn1
Requires: py3-pyasn1
1 change: 0 additions & 1 deletion pip/pybrain.file
@@ -1,2 +1 @@
Requires: py2-scipy
%define source0 git+https://github.com/pybrain/pybrain?obj=master/%{realversion}&export=pybrain-%{realversion}&output=/source.tar.gz
2 changes: 1 addition & 1 deletion pip/pycuda.file
@@ -1 +1 @@
Requires: py2-numpy py3-numpy cuda py3-pytools py2-pytest py3-decorator py2-appdirs py3-Mako
Requires: py2-numpy py3-numpy cuda py3-pytools py3-pytest py3-decorator py3-appdirs py3-Mako
2 changes: 1 addition & 1 deletion pip/pydantic.file
@@ -1 +1 @@
Requires: py2-typing_extensions
Requires: py3-typing_extensions
2 changes: 1 addition & 1 deletion pip/pydot.file
@@ -1 +1 @@
Requires: py2-pyparsing
Requires: py3-pyparsing
2 changes: 1 addition & 1 deletion pip/pylint.file
@@ -1 +1 @@
Requires: py3-astroid py2-six py3-isort py3-mccabe py2-configparser
Requires: py3-astroid py2-six py3-isort py3-mccabe
6 changes: 3 additions & 3 deletions pip/pytest.file
@@ -1,4 +1,4 @@
Requires: py2-more-itertools py2-atomicwrites py2-attrs py2-funcsigs py2-pathlib2 py2-pluggy py2-py py2-scandir
Requires: py2-packaging py2-wcwidth
Requires: py2-iniconfig py2-toml
Requires: py3-more-itertools py3-atomicwrites py3-attrs py3-funcsigs py3-pathlib2 py3-pluggy py3-py py3-scandir
Requires: py3-packaging py2-wcwidth
Requires: py3-iniconfig py3-toml
%define PipPostBuildPy3 for x in $(ls %{i}/bin/*) ; do mv $x ${x}3; done
2 changes: 1 addition & 1 deletion pip/pytools.file
@@ -1 +1 @@
Requires: py3-decorator py2-appdirs py2-six py2-numpy py3-numpy
Requires: py3-decorator py3-appdirs py2-six py2-numpy py3-numpy
2 changes: 1 addition & 1 deletion pip/requests.file
@@ -1 +1 @@
Requires: py2-urllib3 py3-chardet py3-idna py3-certifi
Requires: py3-urllib3 py3-chardet py3-idna py3-certifi