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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmssw.spec
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py2-enum34 py2-six
Requires: py2-six
2 changes: 1 addition & 1 deletion pip/aiohttp.file
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py2-packaging
Requires: py3-packaging
2 changes: 1 addition & 1 deletion pip/fire.file
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py2-six py3-termcolor py2-enum34
Requires: py2-six py3-termcolor
2 changes: 1 addition & 1 deletion pip/flake8.file
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py3-pytoml py2-toml
Requires: py3-pytoml py3-toml
2 changes: 1 addition & 1 deletion pip/fs.file
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py2-protobuf py2-grpcio
Requires: py3-protobuf py3-grpcio
2 changes: 1 addition & 1 deletion pip/grpcio.file
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py2-enum34 py2-futures py2-six
Requires: py2-six
2 changes: 1 addition & 1 deletion pip/hepdata-lib.file
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py2-pytest-runner
Requires: py3-pytest-runner
2 changes: 1 addition & 1 deletion pip/mock.file
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py2-six py2-scandir
Requires: py2-six py3-scandir
2 changes: 1 addition & 1 deletion pip/pickleshare.file
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py2-pathlib2
Requires: py3-pathlib2
2 changes: 1 addition & 1 deletion pip/pluggy.file
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py2-importlib-metadata
Requires: py3-importlib-metadata
2 changes: 1 addition & 1 deletion pip/protobuf.file
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py2-pyasn1
Requires: py3-pyasn1
1 change: 0 additions & 1 deletion pip/pybrain.file
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py2-typing_extensions
Requires: py3-typing_extensions
2 changes: 1 addition & 1 deletion pip/pydot.file
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py2-pyparsing
Requires: py3-pyparsing
2 changes: 1 addition & 1 deletion pip/pylint.file
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py2-urllib3 py3-chardet py3-idna py3-certifi
Requires: py3-urllib3 py3-chardet py3-idna py3-certifi
Loading