Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
0a731a70
"vscode:/vscode.git/clone" did not exist on "992175a6ee13838ee23bf779381afd6914718c10"
Commit
0a731a70
authored
Sep 15, 2020
by
Zhenyu Tan
Committed by
A. Unique TensorFlower
Sep 15, 2020
Browse files
Adding a setup.py for keras_nlp
PiperOrigin-RevId: 331885219
parent
d7bc2202
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
70 additions
and
0 deletions
+70
-0
official/nlp/keras_nlp/requirements.txt
official/nlp/keras_nlp/requirements.txt
+1
-0
official/nlp/keras_nlp/setup.py
official/nlp/keras_nlp/setup.py
+69
-0
No files found.
official/nlp/keras_nlp/requirements.txt
0 → 100644
View file @
0a731a70
numpy>=1.15.4
official/nlp/keras_nlp/setup.py
0 → 100644
View file @
0a731a70
# Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# 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
#
# https://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.
"""Setup script."""
import
os
from
setuptools
import
find_packages
from
setuptools
import
setup
version
=
'0.0.1'
def
_get_requirements
():
"""Parses requirements.txt file."""
install_requires_tmp
=
[]
dependency_links_tmp
=
[]
with
open
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'./requirements.txt'
),
'r'
)
as
f
:
for
line
in
f
:
package_name
=
line
.
strip
()
# Skip empty line or comments starting with "#".
if
not
package_name
or
package_name
[
0
]
==
'#'
:
continue
if
package_name
.
startswith
(
'-e '
):
dependency_links_tmp
.
append
(
package_name
[
3
:].
strip
())
else
:
install_requires_tmp
.
append
(
package_name
)
return
install_requires_tmp
,
dependency_links_tmp
install_requires
,
dependency_links
=
_get_requirements
()
install_requires
.
append
(
'tf-nightly'
)
setup
(
name
=
'keras-nlp'
,
version
=
version
,
description
=
'Keras Natural Language Processing Library'
,
url
=
'https://github.com/keras-team/keras-nlp'
,
author
=
'The Keras authors'
,
author_email
=
'keras-team@google.com'
,
license
=
'Apache License 2.0'
,
install_requires
=
install_requires
,
classifiers
=
[
'Programming Language :: Python'
,
'Programming Language :: Python :: 3.6'
,
'Operating System :: Unix'
,
'Operating System :: Microsoft :: Windows'
,
'Operating System :: MacOS'
,
'Intended Audience :: Science/Research'
,
'Topic :: Scientific/Engineering'
,
'Topic :: Software Development'
],
packages
=
find_packages
(
exclude
=
(
'tests'
,)),
exclude_package_data
=
{
''
:
[
'*_test.py'
,],},
dependency_links
=
dependency_links
,
python_requires
=
'>=3.6'
,
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment