8000 Adds long description to setup. (#574) · burnier/server-client-python@c4b36f6 · GitHub
[go: up one dir, main page]

Skip to content

Commit c4b36f6

Browse files
author
Russell Hay
authored
Adds long description to setup. (tableau#574)
This will not work under python2 which is fine since 2 is EOL
1 parent a0fb114 commit c4b36f6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

setup.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
except ImportError:
77
from distutils.core import setup
88

9+
from os import path
10+
this_directory = path.abspath(path.dirname(__file__))
11+
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
12+
long_description = f.read()
13+
914
# Only install pytest and runner when test command is run
1015
# This makes work easier for offline installs or low bandwidth machines
1116
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
@@ -22,6 +27,8 @@
2227
'tableauserverclient.server.endpoint'],
2328
license='MIT',
2429
description='A Python module for working with the Tableau Server REST API.',
30+
long_description=long_description,
31+
long_description_content_type='text/markdown',
2532
test_suite='test',
2633
setup_requires=pytest_runner,
2734
install_requires=[

0 commit comments

Comments
 (0)
0