- Environment Setup
- Prerequisites
- Windows Specific Steps
- Mac Specific Steps
- Documentation Updates
- Versioning
- TabPy with Swagger
The purpose of this guide is to enable developers of Tabpy to install the project and run it locally.
These are prerequisites for an environment required for a contributor to be able to work on TabPy changes:
- Python 3.6.5:
- To see which version of Python you have installed, run
python --version
.
- To see which version of Python you have installed, run
- git
- TabPy repo:
- Get the latest TabPy repository with
git clone https://github.com/tableau/TabPy.git
- Create a new branch for your changes.
- When changes are ready push them on github and create merge request.
- Get the latest TabPy repository with
-
Open a windows command prompt.
-
In the command prompt, navigate to the folder in which you would like to save your local TabPy repository.
-
In the command prompt, enter the following commands:
git clone https://github.com/tableau/TabPy.git cd TabPy
To start a local TabPy instance:
startup.cmd
To run the unit test suite:
python tests\runtests.py
If you have downloaded Tabpy and would like to manually install Tabpy Server not using pip then follow the steps below to run TabPy in Python virtual environment.
For any process, scripts or API changes documentation needs to be updated accordingly. Please use markdown validation tools like web-basedmarkdownlint or npm markdownlint-cli.
TOC for markdown file is built with markdonw-toc.
You can invoke TabPy Server API against running TabPy instance with Swagger:
- Make CORS related changes in TabPy configuration file: update
tabpy-server\state.ini
file in your local repository to have the next settings:
[Service Info]
Access-Control-Allow-Origin = *
Access-Control-Allow-Headers = Origin, X-Requested-with, Content-Type
Access-Control-Allow-Methods = GET, OPTIONS, POST
- Start local instance of TabPy server following TabPy Server Startup Guide.
- Run local copy of Swagger editor with steps provided at https://github.com/swagger-api/swagger-editor.
- Open
misc/TabPy.yml
in Swagger editor. - In case your TabPy server runs not on
localhost:9004
updatehost
value inTabPy.yml
accordingly.