Skip to content

Commit 9aa6df8

Browse files
committed
Move tools to 'tools/'
1 parent 08ebe06 commit 9aa6df8

25 files changed

+75
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
**/*.pyc
22
**/.DS_Store
3+
**/.idea
34
**/.ipynb_checkpoints

__init__.py

Whitespace-only changes.

tools/setup.py

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
"""tensorflow_docs is a package for generating python api-reference docs."""
2+
3+
import datetime
4+
import sys
5+
6+
from setuptools import find_packages
7+
from setuptools import setup
8+
9+
nightly = False
10+
if '--nightly' in sys.argv:
11+
nightly = True
12+
sys.argv.remove('--nightly')
13+
14+
project_name = 'tensorflow-docs'
15+
version = '0.0.0'
16+
if nightly:
17+
project_name = 'tfds-nightly'
18+
datestring = datetime.datetime.now().strftime('%Y%m%d%H%M')
19+
version = '%s-dev%s' % (version, datestring)
20+
21+
DOCLINES = __doc__.split('\n')
22+
23+
REQUIRED_PKGS = [
24+
'astor',
25+
'absl-py',
26+
'six',
27+
]
28+
29+
TESTS_REQUIRE = [
30+
'jupyter',
31+
]
32+
33+
if sys.version_info.major == 3:
34+
# Packages only for Python 3
35+
pass
36+
else:
37+
# Packages only for Python 2
38+
TESTS_REQUIRE.append('mock')
39+
REQUIRED_PKGS.append('futures') # concurrent.futures
40+
41+
if sys.version_info < (3, 4):
42+
# enum introduced in Python 3.4
43+
REQUIRED_PKGS.append('enum34')
44+
45+
print(find_packages())
46+
47+
setup(
48+
name=project_name,
49+
version=version,
50+
description=DOCLINES[0],
51+
long_description='\n'.join(DOCLINES[2:]),
52+
author='Google Inc.',
53+
author_email='[email protected]',
54+
url='http://github.com/tensorflow/docs',
55+
download_url='https://github.com/tensorflow/docs/tags',
56+
license='Apache 2.0',
57+
packages= find_packages(),#['tensorflow_docs'],
58+
scripts=[],
59+
install_requires=REQUIRED_PKGS,
60+
extras_require={
61+
'tests': TESTS_REQUIRE,
62+
},
63+
classifiers=[
64+
'Development Status :: 4 - Beta',
65+
'Intended Audience :: Developers',
66+
'License :: OSI Approved :: Apache Software License',
67+
'Topic :: Scientific/Engineering :: Artificial Intelligence',
68+
],
69+
keywords='tensorflow api reference',
70+
)

tools/tensorflow_docs/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"""tensorflow_docs is a package for generating python api-reference docs."""
2+
3+
from tensorflow_docs import api_generator
4+

0 commit comments

Comments
 (0)