From bb5bee24a2e86a7b979a481d65b802e7ed28e1c8 Mon Sep 17 00:00:00 2001 From: Ray Douglass <3107146+raydouglass@users.noreply.github.com> Date: Thu, 8 Feb 2024 17:15:59 -0500 Subject: [PATCH] Revert "Exclude tests from builds (#4147)" (#4157) This reverts commit 5c6c4d3e716c49932ba46642a4d0ad9cb82f0036. --- python/cugraph-dgl/pyproject.toml | 2 -- python/cugraph-equivariant/pyproject.toml | 1 - python/cugraph-equivariant/setup.py | 20 ++++++++++++++++++++ python/cugraph-pyg/pyproject.toml | 2 -- python/cugraph-service/client/pyproject.toml | 1 - python/cugraph-service/server/pyproject.toml | 1 - python/cugraph/pyproject.toml | 1 - python/nx-cugraph/pyproject.toml | 1 - python/pylibcugraph/pyproject.toml | 1 - 9 files changed, 20 insertions(+), 10 deletions(-) create mode 100644 python/cugraph-equivariant/setup.py diff --git a/python/cugraph-dgl/pyproject.toml b/python/cugraph-dgl/pyproject.toml index b575559bee5..65ee414da44 100644 --- a/python/cugraph-dgl/pyproject.toml +++ b/python/cugraph-dgl/pyproject.toml @@ -53,5 +53,3 @@ version = {file = "cugraph_dgl/VERSION"} include = [ "cugraph_dgl*", ] -exclude = ["*tests*"] - diff --git a/python/cugraph-equivariant/pyproject.toml b/python/cugraph-equivariant/pyproject.toml index 3cb0183e3a2..f261b0e3535 100644 --- a/python/cugraph-equivariant/pyproject.toml +++ b/python/cugraph-equivariant/pyproject.toml @@ -62,4 +62,3 @@ include = [ "cugraph_equivariant*", "cugraph_equivariant.*", ] -exclude = ["*tests*"] diff --git a/python/cugraph-equivariant/setup.py b/python/cugraph-equivariant/setup.py new file mode 100644 index 00000000000..acd0df3f717 --- /dev/null +++ b/python/cugraph-equivariant/setup.py @@ -0,0 +1,20 @@ +# Copyright (c) 2024, NVIDIA CORPORATION. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from setuptools import find_packages, setup + +if __name__ == "__main__": + packages = find_packages(include=["cugraph_equivariant*"]) + setup( + package_data={key: ["VERSION"] for key in packages}, + ) diff --git a/python/cugraph-pyg/pyproject.toml b/python/cugraph-pyg/pyproject.toml index 2284b454888..b8666c0d806 100644 --- a/python/cugraph-pyg/pyproject.toml +++ b/python/cugraph-pyg/pyproject.toml @@ -57,5 +57,3 @@ include = [ "cugraph_pyg*", "cugraph_pyg.*", ] -exclude = ["*tests*"] - diff --git a/python/cugraph-service/client/pyproject.toml b/python/cugraph-service/client/pyproject.toml index ad4a98da507..59539693877 100644 --- a/python/cugraph-service/client/pyproject.toml +++ b/python/cugraph-service/client/pyproject.toml @@ -42,4 +42,3 @@ version = {file = "cugraph_service_client/VERSION"} include = [ "cugraph_service_client", ] -exclude = ["*tests*"] diff --git a/python/cugraph-service/server/pyproject.toml b/python/cugraph-service/server/pyproject.toml index 2d1c00d027e..84c0358668b 100644 --- a/python/cugraph-service/server/pyproject.toml +++ b/python/cugraph-service/server/pyproject.toml @@ -71,4 +71,3 @@ include = [ "cugraph_service_server", "cugraph_service_server.*" ] -exclude = ["*tests*"] diff --git a/python/cugraph/pyproject.toml b/python/cugraph/pyproject.toml index ff7fc1a8d89..6a9d88bf5c8 100644 --- a/python/cugraph/pyproject.toml +++ b/python/cugraph/pyproject.toml @@ -72,7 +72,6 @@ build-dir = "build/{wheel_tag}" cmake.build-type = "Release" cmake.minimum-version = "3.26.4" ninja.make-fallback = true -sdist.exclude = ["*tests*"] sdist.reproducible = true wheel.packages = ["cugraph"] diff --git a/python/nx-cugraph/pyproject.toml b/python/nx-cugraph/pyproject.toml index d8adeec0b38..63ac115918f 100644 --- a/python/nx-cugraph/pyproject.toml +++ b/python/nx-cugraph/pyproject.toml @@ -79,7 +79,6 @@ include = [ "_nx_cugraph*", "_nx_cugraph.*", ] -exclude = ["*tests*"] [tool.black] line-length = 88 diff --git a/python/pylibcugraph/pyproject.toml b/python/pylibcugraph/pyproject.toml index 97c94c1b9db..1d27d952af1 100644 --- a/python/pylibcugraph/pyproject.toml +++ b/python/pylibcugraph/pyproject.toml @@ -59,7 +59,6 @@ build-dir = "build/{wheel_tag}" cmake.build-type = "Release" cmake.minimum-version = "3.26.4" ninja.make-fallback = true -sdist.exclude = ["*tests*"] sdist.reproducible = true wheel.packages = ["pylibcugraph"]