Skip to content

Commit

Permalink
pyproject.toml: add back setup.py files
Browse files Browse the repository at this point in the history
In support of legacy pip versions that don't respect pyproject.toml,
some portion of the setup.py file is still required.

Signed-off-by: Tim Whisonant <tim.whisonant@intel.com>
  • Loading branch information
tswhison committed Apr 5, 2023
1 parent ea325bb commit f8eb7ed
Show file tree
Hide file tree
Showing 18 changed files with 244 additions and 14 deletions.
2 changes: 1 addition & 1 deletion binaries/fpgadiag/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# POSSIBILITY OF SUCH DAMAGE.

[build-system]
requires = ["setuptools", "setuptools-scm"]
requires = ["setuptools>=59.6", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
Expand Down
16 changes: 15 additions & 1 deletion binaries/fpgadiag/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

from setuptools import setup
from setuptools import setup, find_namespace_packages
from setuptools.command.build_ext import build_ext
from distutils.extension import Extension

Expand Down Expand Up @@ -64,5 +64,19 @@ def extensions():


setup(
name="opae.diag",
version="2.0.1",
packages=find_namespace_packages(include=['opae.*']),
entry_points={
'console_scripts': [
'fpgadiag = opae.diag.fpgadiag:main',
'fvlbypass = opae.diag.fvlbypass:main',
'fpgalpbk = opae.diag.fpgalpbk:main',
'mactest = opae.diag.mactest:main',
'fpgastats = opae.diag.fpgastats:main',
'fpgamac = opae.diag.fpgamac:main',
'fecmode = opae.diag.fecmode:main',
]
},
ext_modules=extensions(),
)
2 changes: 1 addition & 1 deletion binaries/hssi/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# POSSIBILITY OF SUCH DAMAGE.

[build-system]
requires = ["setuptools", "setuptools-scm"]
requires = ["setuptools>=59.6", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
Expand Down
40 changes: 40 additions & 0 deletions binaries/hssi/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Copyright(c) 2021-2023, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
# * Neither the name of Intel Corporation nor the names of its contributors
# may be used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

from setuptools import setup, find_packages

setup(
name='hssi_ethernet',
version="2.0.1",
packages=find_packages(include=['*']),
entry_points={
'console_scripts': [
'hssistats = ethernet.hssistats:main',
'hssimac = ethernet.hssimac:main',
'hssiloopback = ethernet.hssiloopback:main'
]
},
)
2 changes: 1 addition & 1 deletion binaries/ofs.uio/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# POSSIBILITY OF SUCH DAMAGE.

[build-system]
requires = ["setuptools", "setuptools-scm"]
requires = ["setuptools>=59.6", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
Expand Down
38 changes: 38 additions & 0 deletions binaries/ofs.uio/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Copyright(c) 2022-2023, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
# * Neither the name of Intel Corporation nor the names of its contributors
# may be used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

from setuptools import setup, find_namespace_packages

setup(
name='ofs.uio',
version="1.0.1",
packages=find_namespace_packages(include=['uio*']),
entry_points={
'console_scripts': [
'ofs.uio = uio.ofs_uio:main',
]
},
)
4 changes: 2 additions & 2 deletions binaries/opae.io/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
# POSSIBILITY OF SUCH DAMAGE.

[build-system]
requires = ["setuptools", "setuptools-scm"]
requires = ["setuptools>=59.6", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
name = "opae.io"
version = "0.2.7"
description = "pyopae provides Python bindings around the VFIO API"
description = "opae.io provides Python bindings around the VFIO API"
#readme = ""
license = {text = "BSD-3-Clause"}
requires-python = ">=3.6"
Expand Down
4 changes: 4 additions & 0 deletions binaries/opae.io/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

from setuptools import find_namespace_packages
from distutils.core import Extension, setup

setup(
name='opae.io',
version='0.2.7',
packages=find_namespace_packages(include=['opae.*']),
ext_modules=[
Extension('libvfio',
sources=['vfiobindings.cpp'],
Expand Down
2 changes: 1 addition & 1 deletion libraries/pyopae/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# POSSIBILITY OF SUCH DAMAGE.

[build-system]
requires = ["setuptools", "setuptools-scm"]
requires = ["setuptools>=59.6", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
Expand Down
9 changes: 7 additions & 2 deletions libraries/pyopae/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

from setuptools import setup
from setuptools import setup, find_namespace_packages
from setuptools.command.build_ext import build_ext
from distutils.extension import Extension

Expand Down Expand Up @@ -70,4 +70,9 @@ def override_build_extensions(self):
"@CMAKE_INSTALL_PREFIX@/lib64"])
]

setup(ext_modules=extensions)
setup(
name='opae.fpga',
version='@OPAE_VERSION@',
packages=find_namespace_packages(),
ext_modules=extensions
)
2 changes: 1 addition & 1 deletion libraries/pyopaeuio/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# POSSIBILITY OF SUCH DAMAGE.

[build-system]
requires = ["setuptools", "setuptools-scm"]
requires = ["setuptools>=59.6", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
Expand Down
5 changes: 4 additions & 1 deletion libraries/pyopaeuio/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

from setuptools import setup
from setuptools import setup, find_packages
from setuptools.command.build_ext import build_ext
from distutils.extension import Extension

Expand Down Expand Up @@ -59,5 +59,8 @@ def override_build_extensions(self):
]

setup(
name='pyopaeuio',
version='2.0.1',
packages=find_packages(),
ext_modules=extensions
)
2 changes: 1 addition & 1 deletion python/opae.admin/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# POSSIBILITY OF SUCH DAMAGE.

[build-system]
requires = ["setuptools", "setuptools-scm"]
requires = ["setuptools>=59.6", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
Expand Down
48 changes: 48 additions & 0 deletions python/opae.admin/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Copyright(c) 2023, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
# * Neither the name of Intel Corporation nor the names of its contributors
# may be used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

from setuptools import setup, find_namespace_packages

setup(
name='opae.admin',
version='1.4.4',
packages=find_namespace_packages(include=['opae.*']),
entry_points={
'console_scripts': [
'fpgasupdate = opae.admin.tools.fpgasupdate:main',
'rsu = opae.admin.tools.rsu:main',
'super-rsu = opae.admin.tools.super_rsu:main',
'fpgaflash = opae.admin.tools.fpgaflash:main',
'fpgaotsu = opae.admin.tools.fpgaotsu:main',
'fpgaport = opae.admin.tools.fpgaport:main',
'bitstreaminfo = opae.admin.tools.bitstream_info:main',
'opaevfio = opae.admin.tools.opaevfio:main',
'pci_device = opae.admin.tools.pci_device:main',
'regmap-debugfs = opae.admin.tools.regmap_debugfs:main',
'fpgareg = opae.admin.tools.fpgareg:main',
]
},
)
2 changes: 1 addition & 1 deletion python/packager/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# POSSIBILITY OF SUCH DAMAGE.

[build-system]
requires = ["setuptools", "setuptools-scm"]
requires = ["setuptools>=59.6", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
Expand Down
40 changes: 40 additions & 0 deletions python/packager/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Copyright(c) 2021-2023, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
# * Neither the name of Intel Corporation nor the names of its contributors
# may be used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

from setuptools import setup, find_packages

setup(
name="packager",
version='1.0.1',
packages=find_packages(),
entry_points={
'console_scripts': [
'packager = packager.tools.packager:main',
'afu_json_mgr = packager.tools.afu_json_mgr:main',
]
},
install_requires=['jsonschema>=2.3.0'],
)
2 changes: 1 addition & 1 deletion python/pacsign/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# POSSIBILITY OF SUCH DAMAGE.

[build-system]
requires = ["setuptools", "setuptools-scm"]
requires = ["setuptools>=59.6", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
Expand Down
38 changes: 38 additions & 0 deletions python/pacsign/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Copyright(c) 2019-2023, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
# * Neither the name of Intel Corporation nor the names of its contributors
# may be used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

from setuptools import setup, find_packages

setup(
name="pacsign",
version="1.0.8",
packages=find_packages(),
entry_points={
'console_scripts': [
'PACSign = pacsign.__main__:main',
],
},
)

0 comments on commit f8eb7ed

Please sign in to comment.