Skip to content

Commit

Permalink
Merge branch 'dev' into update-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ogolovatyi authored and ogolovatyi committed Jan 29, 2019
2 parents 7838acc + e3d0c9c commit a3b42af
Show file tree
Hide file tree
Showing 16 changed files with 44 additions and 4,732 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
This file list notable changes for TabPy project releases.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## v0.3.2

- Remove versioneer and just replace it with VERSION file
- Require Python 3.6.5
- Require jsonschema to be compatible with 2.3.0

## v0.3.1

- Fixed dependency on tabpy-tools in startup scripts
Expand Down
12 changes: 0 additions & 12 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,6 @@ or npm [markdownlint-cli](https://github.com/igorshubovych/markdownlint-cli).

TOC for markdown file is built with [markdonw-toc](https://www.npmjs.com/package/markdown-toc).

## Versioning

TabPy is versioned with [Versioneer tool](https://github.com/warner/python-versioneer) and uses the github release
tag as a version. In case you need to update version for TabPy use `git tag` command. Example below
shows how to update TabPy version to `v3.14-gamma`:

```sh
git tag v3.14-gamma
git push
git push --tag
```

## TabPy with Swagger

You can invoke TabPy Server API against running TabPy instance with Swagger:
Expand Down
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.3.2
2 changes: 1 addition & 1 deletion tabpy-server/server_tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def test_config_file_present(self, mock_os, mock_path_exists, mock_psws, mock_sh
mock_os.getenv.assert_has_calls(getenv_calls, any_order=True)
self.assertEqual(settings['log_level'], 'WARNING')
self.assertEqual(settings['port'], 1234)
self.assertEquals(settings['server_version'], tabpy_server.__version__)
self.assertEqual(settings['server_version'], open('VERSION').read().strip())
self.assertEquals(settings['bind_ip'], '0.0.0.0')
self.assertEquals(settings['upload_dir'], 'foo')
self.assertEquals(settings['state_file_path'], 'bar')
Expand Down
6 changes: 0 additions & 6 deletions tabpy-server/setup.cfg

This file was deleted.

20 changes: 12 additions & 8 deletions tabpy-server/setup.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
import versioneer
try:
from setuptools import setup
except ImportError as err:
print("Missing Python module requirement: setuptools.")
raise err

def read_version():
with open('../VERSION') as h:
return h.read().strip()

__version__=read_version()

setup(
name='tabpy-server',
python_requires='>=3.7.2',
version=versioneer.get_version(),
python_requires='>=3.6.5',
version=__version__,
description='Web server Tableau uses to run Python scripts.',
url='https://github.com/tableau/TabPy',
author='Tableau',
author_email='[email protected]',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
],
Expand All @@ -36,7 +40,7 @@
'decorator',
'future',
'genson',
'jsonschema>=2.3.0',
'jsonschema~=2.3.0',
'mock',
'numpy',
'python-dateutil',
Expand All @@ -45,7 +49,7 @@
'singledispatch',
'simplejson',
'tornado==5.1.1',
'Tornado-JSON'
],
cmdclass=versioneer.get_cmdclass(),
'Tornado-JSON',
'urllib3'
]
)
4 changes: 0 additions & 4 deletions tabpy-server/tabpy_server/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@

from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
Loading

0 comments on commit a3b42af

Please sign in to comment.