forked from tensorflow/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08ebe06
commit 9aa6df8
Showing
25 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
**/*.pyc | ||
**/.DS_Store | ||
**/.idea | ||
**/.ipynb_checkpoints |
Empty file.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
"""tensorflow_docs is a package for generating python api-reference docs.""" | ||
|
||
import datetime | ||
import sys | ||
|
||
from setuptools import find_packages | ||
from setuptools import setup | ||
|
||
nightly = False | ||
if '--nightly' in sys.argv: | ||
nightly = True | ||
sys.argv.remove('--nightly') | ||
|
||
project_name = 'tensorflow-docs' | ||
version = '0.0.0' | ||
if nightly: | ||
project_name = 'tfds-nightly' | ||
datestring = datetime.datetime.now().strftime('%Y%m%d%H%M') | ||
version = '%s-dev%s' % (version, datestring) | ||
|
||
DOCLINES = __doc__.split('\n') | ||
|
||
REQUIRED_PKGS = [ | ||
'astor', | ||
'absl-py', | ||
'six', | ||
] | ||
|
||
TESTS_REQUIRE = [ | ||
'jupyter', | ||
] | ||
|
||
if sys.version_info.major == 3: | ||
# Packages only for Python 3 | ||
pass | ||
else: | ||
# Packages only for Python 2 | ||
TESTS_REQUIRE.append('mock') | ||
REQUIRED_PKGS.append('futures') # concurrent.futures | ||
|
||
if sys.version_info < (3, 4): | ||
# enum introduced in Python 3.4 | ||
REQUIRED_PKGS.append('enum34') | ||
|
||
print(find_packages()) | ||
|
||
setup( | ||
name=project_name, | ||
version=version, | ||
description=DOCLINES[0], | ||
long_description='\n'.join(DOCLINES[2:]), | ||
author='Google Inc.', | ||
author_email='[email protected]', | ||
url='http://github.com/tensorflow/docs', | ||
download_url='https://github.com/tensorflow/docs/tags', | ||
license='Apache 2.0', | ||
packages= find_packages(),#['tensorflow_docs'], | ||
scripts=[], | ||
install_requires=REQUIRED_PKGS, | ||
extras_require={ | ||
'tests': TESTS_REQUIRE, | ||
}, | ||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Topic :: Scientific/Engineering :: Artificial Intelligence', | ||
], | ||
keywords='tensorflow api reference', | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
"""tensorflow_docs is a package for generating python api-reference docs.""" | ||
|
||
from tensorflow_docs import api_generator | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.