Skip to content

Commit

Permalink
Standardize use of Cython build system requirement and definitions of…
Browse files Browse the repository at this point in the history
… extras_require.
  • Loading branch information
bdice committed May 11, 2022
1 parent 3d3f857 commit 4f5145e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python/cudf/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,6 @@ def run(self):
),
cmdclass=cmdclass,
install_requires=install_requires,
zip_safe=False,
extras_require=extras_require,
zip_safe=False,
)
3 changes: 1 addition & 2 deletions python/cudf_kafka/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
requires = [
"wheel",
"setuptools",
"Cython>=0.29,<0.30",
"cython>=0.29,<0.30",
]


[tool.black]
line-length = 79
target-version = ["py36"]
Expand Down
5 changes: 3 additions & 2 deletions python/cudf_kafka/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

install_requires = ["cudf", "cython"]

extras_require = {"test": ["pytest", "pytest-xdist"]}

cython_files = ["cudf_kafka/_lib/*.pyx"]

CUDA_HOME = os.environ.get("CUDA_HOME", False)
Expand Down Expand Up @@ -94,7 +96,6 @@
"Programming Language :: Python :: 3.9",
],
# Include the separately-compiled shared library
setup_requires=["Cython>=0.29,<0.30"],
ext_modules=cythonize(
extensions,
nthreads=nthreads,
Expand All @@ -109,6 +110,6 @@
),
cmdclass=versioneer.get_cmdclass(),
install_requires=install_requires,
extras_require={"test": ["pytest", "pytest-xdist"]},
extras_require=extras_require,
zip_safe=False,
)
4 changes: 3 additions & 1 deletion python/custreamz/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

install_requires = ["cudf_kafka", "cudf"]

extras_require = {"test": ["pytest", "pytest-xdist"]}

setup(
name="custreamz",
version=versioneer.get_version(),
Expand All @@ -26,6 +28,6 @@
packages=find_packages(include=["custreamz", "custreamz.*"]),
cmdclass=versioneer.get_cmdclass(),
install_requires=install_requires,
extras_require=extras_require,
zip_safe=False,
extras_require={"test": ["pytest", "pytest-xdist"]},
)
1 change: 1 addition & 0 deletions python/dask_cudf/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,5 @@ def get_cuda_version_from_header(cuda_include_dir, delimeter=""):
cmdclass=versioneer.get_cmdclass(),
install_requires=install_requires,
extras_require=extras_require,
zip_safe=False,
)

0 comments on commit 4f5145e

Please sign in to comment.