Skip to content

Commit

Permalink
Move tools to 'tools/'
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkDaoust committed Nov 13, 2018
1 parent 08ebe06 commit 9aa6df8
Show file tree
Hide file tree
Showing 25 changed files with 75 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
**/*.pyc
**/.DS_Store
**/.idea
**/.ipynb_checkpoints
Empty file removed __init__.py
Empty file.
File renamed without changes.
70 changes: 70 additions & 0 deletions tools/setup.py
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',
)
4 changes: 4 additions & 0 deletions tools/tensorflow_docs/__init__.py
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.

0 comments on commit 9aa6df8

Please sign in to comment.