-
Notifications
You must be signed in to change notification settings - Fork 601
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Ran black on project * yaml flake8 conf * newline * Removed extraneous whitespace
- Loading branch information
1 parent
109148c
commit 26b34d9
Showing
60 changed files
with
2,338 additions
and
2,186 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# File : .pep8speaks.yml | ||
|
||
flake8: | ||
max-line-length: 88 |
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,105 +1,104 @@ | ||
'''Web server Tableau uses to run Python scripts. | ||
"""Web server Tableau uses to run Python scripts. | ||
TabPy (the Tableau Python Server) is an external service implementation | ||
which expands Tableau's capabilities by allowing users to execute Python | ||
scripts and saved functions via Tableau's table calculations. | ||
''' | ||
""" | ||
|
||
import os | ||
from setuptools import setup, find_packages | ||
|
||
|
||
DOCLINES = (__doc__ or '').split('\n') | ||
DOCLINES = (__doc__ or "").split("\n") | ||
|
||
|
||
def setup_package(): | ||
def read(fname): | ||
return open(os.path.join(os.path.dirname(__file__), fname)).read() | ||
|
||
setup( | ||
name='tabpy', | ||
version=read('tabpy/VERSION'), | ||
name="tabpy", | ||
version=read("tabpy/VERSION"), | ||
description=DOCLINES[0], | ||
long_description='\n'.join(DOCLINES[1:]) + '\n' + read('CHANGELOG'), | ||
long_description_content_type='text/markdown', | ||
url='https://github.com/tableau/TabPy', | ||
author='Tableau', | ||
author_email='github@tableau.com', | ||
maintainer='Tableau', | ||
maintainer_email='github@tableau.com', | ||
download_url='https://pypi.org/project/tabpy', | ||
long_description="\n".join(DOCLINES[1:]) + "\n" + read("CHANGELOG"), | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/tableau/TabPy", | ||
author="Tableau", | ||
author_email="github@tableau.com", | ||
maintainer="Tableau", | ||
maintainer_email="github@tableau.com", | ||
download_url="https://pypi.org/project/tabpy", | ||
project_urls={ | ||
"Bug Tracker": "https://github.com/tableau/TabPy/issues", | ||
"Documentation": "https://tableau.github.io/TabPy/", | ||
"Source Code": "https://github.com/tableau/TabPy", | ||
}, | ||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
'Intended Audience :: Developers', | ||
'Intended Audience :: Science/Research', | ||
'License :: OSI Approved :: MIT License', | ||
'Programming Language :: Python :: 3.6', | ||
'Topic :: Scientific/Engineering', | ||
'Topic :: Scientific/Engineering :: Information Analysis', | ||
'Operating System :: Microsoft :: Windows', | ||
'Operating System :: POSIX', | ||
'Operating System :: Unix', | ||
'Operating System :: MacOS' | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3.6", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Scientific/Engineering :: Information Analysis", | ||
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: POSIX", | ||
"Operating System :: Unix", | ||
"Operating System :: MacOS", | ||
], | ||
platforms=['Windows', 'Linux', 'Mac OS-X', 'Unix'], | ||
keywords=['tabpy tableau'], | ||
packages=find_packages( | ||
exclude=['docs', 'misc', 'tests']), | ||
platforms=["Windows", "Linux", "Mac OS-X", "Unix"], | ||
keywords=["tabpy tableau"], | ||
packages=find_packages(exclude=["docs", "misc", "tests"]), | ||
package_data={ | ||
'tabpy': [ | ||
'VERSION', | ||
'tabpy_server/state.ini.template', | ||
'tabpy_server/static', | ||
'tabpy_server/common/default.conf' | ||
"tabpy": [ | ||
"VERSION", | ||
"tabpy_server/state.ini.template", | ||
"tabpy_server/static", | ||
"tabpy_server/common/default.conf", | ||
] | ||
}, | ||
python_requires='>=3.6', | ||
license='MIT', | ||
python_requires=">=3.6", | ||
license="MIT", | ||
# Note: many of these required packages are included in base python | ||
# but are listed here because different linux distros use custom | ||
# python installations. And users can remove packages at any point | ||
install_requires=[ | ||
'backports_abc', | ||
'cloudpickle', | ||
'configparser', | ||
'decorator', | ||
'future', | ||
'genson', | ||
'jsonschema', | ||
'pyopenssl', | ||
'python-dateutil', | ||
'requests', | ||
'singledispatch', | ||
'six', | ||
'tornado', | ||
'urllib3<1.25,>=1.21.1' | ||
"backports_abc", | ||
"cloudpickle", | ||
"configparser", | ||
"decorator", | ||
"future", | ||
"genson", | ||
"jsonschema", | ||
"pyopenssl", | ||
"python-dateutil", | ||
"requests", | ||
"singledispatch", | ||
"six", | ||
"tornado", | ||
"urllib3<1.25,>=1.21.1", | ||
], | ||
entry_points={ | ||
'console_scripts': [ | ||
'tabpy=tabpy.tabpy:main', | ||
'tabpy-deploy-models=tabpy.models.deploy_models:main', | ||
'tabpy-user-management=tabpy.utils.user_management:main' | ||
"console_scripts": [ | ||
"tabpy=tabpy.tabpy:main", | ||
"tabpy-deploy-models=tabpy.models.deploy_models:main", | ||
"tabpy-user-management=tabpy.utils.user_management:main", | ||
], | ||
}, | ||
setup_requires=['pytest-runner'], | ||
setup_requires=["pytest-runner"], | ||
tests_require=[ | ||
'mock', | ||
'nltk', | ||
'numpy', | ||
'pandas', | ||
'pytest', | ||
'scipy', | ||
'sklearn', | ||
'textblob' | ||
"mock", | ||
"nltk", | ||
"numpy", | ||
"pandas", | ||
"pytest", | ||
"scipy", | ||
"sklearn", | ||
"textblob", | ||
], | ||
test_suite='pytest' | ||
test_suite="pytest", | ||
) | ||
|
||
|
||
if __name__ == '__main__': | ||
if __name__ == "__main__": | ||
setup_package() |
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
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
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
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
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
Oops, something went wrong.