Skip to content

Commit 048063c

Browse files
yueqiwtensorflow-copybara
authored andcommitted
Add setup.py for neural_clustering OSS.
PiperOrigin-RevId: 353686607
1 parent 585591b commit 048063c

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

research/neural_clustering/BUILD

+6
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,9 @@ py_library(
3232
"//neural_structured_learning/research/neural_clustering/utils",
3333
],
3434
)
35+
36+
py_library(
37+
name = "setup",
38+
srcs = ["setup.py"],
39+
srcs_version = "PY3",
40+
)

research/neural_clustering/setup.py

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
"""Setup file for Neural Clustering."""
15+
16+
import setuptools
17+
18+
package_name = "neural_clustering"
19+
packages = [package_name]
20+
packages += [package_name + "." + x for x in setuptools.find_packages()]
21+
22+
setuptools.setup(
23+
name=package_name,
24+
version="0.1",
25+
description="A Tensorflow package of supervised amortized clustering using neural networks",
26+
packages=packages,
27+
package_dir={package_name: ""},
28+
)

0 commit comments

Comments
 (0)