|
| 1 | +# Copyright 2020-2023 NVIDIA Corporation. All Rights Reserved |
| 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 | +# http://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 | +# ======================================================================== |
| 15 | + |
| 16 | +import importlib |
| 17 | +import setuptools |
| 18 | + |
| 19 | +# package_name = 'fwd9m' |
| 20 | +package_name = 'tfdeterminism' |
| 21 | + |
| 22 | +print("PACKAGE IMPORT WARNING (expected):") |
| 23 | +package = importlib.import_module(package_name) |
| 24 | + |
| 25 | +description = ("Providing reproducibility in deep learning frameworks") |
| 26 | +url = "https://github.com/NVIDIA/%s" % package.distribution_name |
| 27 | + |
| 28 | +print("Now running setuptools.setup()") |
| 29 | + |
| 30 | +# Note that using python 3.6 (i.e. via the `python3.6` executable) results in |
| 31 | +# the long_description_content_type being ignored. |
| 32 | +# For more info, see https://github.com/di/markdown-description-example/issues/4 |
| 33 | + |
| 34 | +setuptools.setup( |
| 35 | + name = package.distribution_name, |
| 36 | + version = package.version, |
| 37 | + packages = [package_name], |
| 38 | + url = url, |
| 39 | + license = 'Apache 2.0', |
| 40 | + author = 'NVIDIA', |
| 41 | + author_email = 'duncan@nvidia.com', |
| 42 | + description = description, |
| 43 | + long_description = package.long_description, |
| 44 | + long_description_content_type = 'text/markdown', |
| 45 | + install_requires = [], |
| 46 | + classifiers = [], |
| 47 | + keywords = [], |
| 48 | + platforms = [] |
| 49 | +) |
0 commit comments