|
7 | 7 | from distutils.core import setup |
8 | 8 |
|
9 | 9 | from os import path |
| 10 | + |
10 | 11 | this_directory = path.abspath(path.dirname(__file__)) |
11 | | -with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: |
| 12 | +with open(path.join(this_directory, "README.md"), encoding="utf-8") as f: |
12 | 13 | long_description = f.read() |
13 | 14 |
|
14 | 15 | # Only install pytest and runner when test command is run |
15 | 16 | # This makes work easier for offline installs or low bandwidth machines |
16 | | -needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv) |
17 | | -pytest_runner = ['pytest-runner'] if needs_pytest else [] |
18 | | -test_requirements = ['black', 'mock', 'pytest', 'requests-mock>=1.0,<2.0', 'mypy>=0.920'] |
| 17 | +needs_pytest = {"pytest", "test", "ptr"}.intersection(sys.argv) |
| 18 | +pytest_runner = ["pytest-runner"] if needs_pytest else [] |
| 19 | +test_requirements = ["black", "mock", "pytest", "requests-mock>=1.0,<2.0", "mypy>=0.920"] |
19 | 20 |
|
20 | 21 | setup( |
21 | | - name='tableauserverclient', |
| 22 | + name="tableauserverclient", |
22 | 23 | version=versioneer.get_version(), |
23 | 24 | cmdclass=versioneer.get_cmdclass(), |
24 | | - author='Tableau', |
25 | | - author_email='github@tableau.com', |
26 | | - url='https://github.com/tableau/server-client-python', |
27 | | - package_data={'tableauserverclient':['py.typed']}, |
28 | | - packages=['tableauserverclient', |
29 | | - 'tableauserverclient.helpers', |
30 | | - 'tableauserverclient.models', |
31 | | - 'tableauserverclient.server', |
32 | | - 'tableauserverclient.server.endpoint'], |
33 | | - license='MIT', |
34 | | - description='A Python module for working with the Tableau Server REST API.', |
| 25 | + author="Tableau", |
| 26 | + author_email="github@tableau.com", |
| 27 | + url="https://github.com/tableau/server-client-python", |
| 28 | + package_data={"tableauserverclient": ["py.typed"]}, |
| 29 | + packages=[ |
| 30 | + "tableauserverclient", |
| 31 | + "tableauserverclient.helpers", |
| 32 | + "tableauserverclient.models", |
| 33 | + "tableauserverclient.server", |
| 34 | + "tableauserverclient.server.endpoint", |
| 35 | + ], |
| 36 | + license="MIT", |
| 37 | + description="A Python module for working with the Tableau Server REST API.", |
35 | 38 | long_description=long_description, |
36 | | - long_description_content_type='text/markdown', |
37 | | - test_suite='test', |
| 39 | + long_description_content_type="text/markdown", |
| 40 | + test_suite="test", |
38 | 41 | setup_requires=pytest_runner, |
39 | 42 | install_requires=[ |
40 | | - 'defusedxml>=0.7.1', |
41 | | - 'requests>=2.20,<3.0', |
| 43 | + "defusedxml>=0.7.1", |
| 44 | + "requests>=2.20,<3.0", |
42 | 45 | ], |
43 | | - python_requires='>3.7.0', |
| 46 | + python_requires=">3.7.0", |
44 | 47 | tests_require=test_requirements, |
45 | | - extras_require={ |
46 | | - 'test': test_requirements |
47 | | - }, |
48 | | - zip_safe=False |
| 48 | + extras_require={"test": test_requirements}, |
| 49 | + zip_safe=False, |
49 | 50 | ) |
0 commit comments