Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #8

Merged
merged 4 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added dist/parquet-to-hyper-1.1.2.tar.gz
Binary file not shown.
Binary file added dist/parquet-to-hyper-1.1.3.tar.gz
Binary file not shown.
Binary file added dist/parquet_to_hyper-1.1.2-py3-none-any.whl
Binary file not shown.
Binary file added dist/parquet_to_hyper-1.1.3-py3-none-any.whl
Binary file not shown.
8 changes: 4 additions & 4 deletions packages/tableau_server_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@ def publish_hyper(self, project_id: str, hyper_path: str,
Args:
project_id (str): project id
hyper_path (str): hyper file path. Eg: path/hyper.file
mode (str): publish mode. Accept ovewrite or append mode.
Defaults to ovewrite.
mode (str): publish mode. Accept overwrite or append mode.
Defaults to overwrite.
"""
logging.info(f'Signing into the server {self.server.baseurl}')
with self.server.auth.sign_in(self.tableau_auth):
if mode == 'ovewrite':
if mode == 'overwrite':
publish_mode = TSC.Server.PublishMode.Overwrite
elif mode == 'append':
publish_mode = TSC.Server.PublishMode.Append
else:
raise ValueError(f'Error! Mode must be ovewrite or append.\
raise ValueError(f'Error! Mode must be overwrite or append.\
Received {mode}')
datasource = TSC.DatasourceItem(project_id=project_id)
logging.info('Publishing Hyper file into the server!')
Expand Down
7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "parquet-to-hyper"
version = "1.1.1"
version = "1.1.3"
authors = [{name="Guilherme Noronha", email="[email protected]"}]
license = { file = "LICENSE" }
description = "Create and publish tableau hyper files from parquet files."
Expand Down Expand Up @@ -33,7 +33,7 @@ dev = ["pip-tools", "pytest", "bumpver"]
pythonpath = [".", "packages"]

[tool.bumpver]
current_version = "1.1.1"
current_version = "1.1.3"
version_pattern = "MAJOR.MINOR.PATCH"
commit_message = "bump version {old_version} -> {new_version}"
tag_message = "{new_version}"
Expand All @@ -54,6 +54,3 @@ push = true
"{pep440_version}",
]

[tool.setuptools]
py-modules = []