From ec375bafd48ecd423214004a175b239d8cd96513 Mon Sep 17 00:00:00 2001 From: Russell Hay Date: Wed, 29 Jun 2016 09:26:31 -0700 Subject: [PATCH 1/4] Updating README to include information for installing from pip --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 19f3e38..2fb0bdd 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,14 @@ We don't yet support creating files from scratch. In addition, support for `.twb ###Getting Started To use this SDK, you must have Python installed. You can use either 2.7.X or 3.3 and later. +#### Installing the latest stable version (preferred) + +```text +pip install tableaudocumentapi +``` + +#### Installing From Source + Download the `.zip` file that contains the SDK. Unzip the file and then run the following command: ```text From 505097f6570f93a41d33be8c4397f21a49c540aa Mon Sep 17 00:00:00 2001 From: Russell Hay Date: Wed, 29 Jun 2016 09:33:09 -0700 Subject: [PATCH 2/4] pypi requires a readme file, not readme.md, so just linking --- README | 1 + 1 file changed, 1 insertion(+) create mode 120000 README diff --git a/README b/README new file mode 120000 index 0000000..42061c0 --- /dev/null +++ b/README @@ -0,0 +1 @@ +README.md \ No newline at end of file From ca6fd1c9b0792ad089b32129a9279c9d33bfb921 Mon Sep 17 00:00:00 2001 From: Russell Hay Date: Wed, 29 Jun 2016 09:38:07 -0700 Subject: [PATCH 3/4] Fixing a few warnings/errors when trying to create the bdist --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 8925444..c184acf 100644 --- a/setup.py +++ b/setup.py @@ -6,11 +6,10 @@ setup( name='tableaudocumentapi', version='0.0.1', - summary='A Python module for working with Tableau files.', author='Tableau Software', author_email='github@tableau.com', url='https://github.com/tableau/document-api-python', - py_modules=['tableaudocumentapi'], + packages=['tableaudocumentapi'], license='MIT', description='A Python module for working with Tableau files.' ) From 26d5116c022d995486892edf8ede8602e2e581e9 Mon Sep 17 00:00:00 2001 From: Russell Hay Date: Wed, 29 Jun 2016 10:01:06 -0700 Subject: [PATCH 4/4] script for publishing versions to pypi --- publish.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 publish.sh diff --git a/publish.sh b/publish.sh new file mode 100755 index 0000000..99a3115 --- /dev/null +++ b/publish.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +set -e + +rm -rf dist +python setup.py sdist +python setup.py bdist_wheel +python3 setup.py bdist_wheel +twine upload dist/*