Skip to content

Commit

Permalink
Merge pull request #8 from guilhermenoronha/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
guilhermenoronha authored Sep 27, 2023
2 parents 4eb906d + 8a08095 commit f4458fa
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 9 deletions.
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 = []

0 comments on commit f4458fa

Please sign in to comment.