File tree Expand file tree Collapse file tree 3 files changed +35
-1
lines changed
neural_structured_learning Expand file tree Collapse file tree 3 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 44from neural_structured_learning import keras
55from neural_structured_learning import lib
66from neural_structured_learning import tools
7+ from neural_structured_learning .version import __version__
Original file line number Diff line number Diff line change 1+ # Copyright 2019 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+ """Defines neural_structured_learning version information."""
15+
16+ # We follow Semantic Versioning (https://semver.org/).
17+ _MAJOR_VERSION = '1'
18+ _MINOR_VERSION = '0'
19+ _PATCH_VERSION = '1'
20+
21+ _VERSION_SUFFIX = ''
22+
23+ __version__ = '.' .join ([_MAJOR_VERSION , _MINOR_VERSION , _PATCH_VERSION ])
24+ if _VERSION_SUFFIX :
25+ __version__ = '{}-{}' .format (__version__ , _VERSION_SUFFIX )
Original file line number Diff line number Diff line change 1313# limitations under the License.
1414"""Setup file for the TensorFlow Neural Structured Learning pip package."""
1515
16+ import os
17+ import sys
1618import textwrap
1719
1820import setuptools
5961 Incorporating structured signals is done only during training, so the
6062 performance of the serving/inference workflow remains unchanged.""" )
6163
64+ # Adds the path to sys.path so that we can import version.py.
65+ version_path = os .path .join (os .path .dirname (__file__ ),
66+ "neural_structured_learning" )
67+ sys .path .append (version_path )
68+ from version import __version__ # pylint: disable=g-import-not-at-top
69+
6270setuptools .setup (
6371 name = "neural-structured-learning" ,
64- version = "1.0.1" ,
72+ version = __version__ ,
6573 author = "Google LLC" ,
6674 description = "Neural Structured Learning is an open-source TensorFlow "
6775 "framework to train neural networks with structured signals" ,
You can’t perform that action at this time.
0 commit comments