8000 ⬆️ Allow more recent version of packaging (#1196) · Gbagade02/server-client-python@ccdd790 · GitHub
[go: up one dir, main page]

Skip to content

Commit ccdd790

Browse files
authored
⬆️ Allow more recent version of packaging (tableau#1196)
re-format to match new black standards
1 parent 514cc13 commit ccdd790

36 files changed

+1
-53
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ readme = "README.md"
1313

1414
dependencies = [
1515
'defusedxml>=0.7.1',
16-
'packaging~=21.3',
16+
'packaging>=22.0', # bumping to minimum version required by black
1717
'requests>=2.28',
1818
'urllib3~=1.26.8',
1919
]

samples/add_default_permission.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def main():
4646
tableau_auth = TSC.PersonalAccessTokenAuth(args.token_name, args.token_value, site_id=args.site)
4747
server = TSC.Server(args.server, use_server_version=True)
4848
with server.auth.sign_in(tableau_auth):
49-
5049
# Create a sample project
5150
project = TSC.ProjectItem("sample_project")
5251
project = server.projects.create(project)

samples/create_group.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919

2020
def main():
21-
2221
parser = argparse.ArgumentParser(description="Creates a sample user group.")
2322
# Common options; please keep those in sync across all samples
2423
parser.add_argument("--server", "-s", required=True, help="server address")

samples/create_schedules.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616

1717
def main():
18-
1918
parser = argparse.ArgumentParser(description="Creates sample schedules for each type of frequency.")
2019
# Common options; please keep those in sync across all samples
2120
parser.add_argument("--server", "-s", required=True, help="server address")

samples/explore_datasource.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717

1818
def main():
19-
2019
parser = argparse.ArgumentParser(description="Explore datasource functions supported by the Server API.")
2120
# Common options; please keep those in sync across all samples
2221
parser.add_argument("--server", "-s", required=True, help="server address")

samples/explore_site.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313

1414
def main():
15-
1615
parser = argparse.ArgumentParser(description="Explore site updates by the Server API.")
1716
# Common options; please keep those in sync across all samples
1817
parser.add_argument("--server", "-s", required=True, help="server address")

samples/explore_webhooks.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818

1919
def main():
20-
2120
parser = argparse.ArgumentParser(description="Explore webhook functions supported by the Server API.")
2221
# Common options; please keep those in sync across all samples
2322
parser.add_argument("--server", "-s", required=True, help="server address")
@@ -49,10 +48,8 @@ def main():
4948
tableau_auth = TSC.PersonalAccessTokenAuth(args.token_name, args.token_value, site_id=args.site)
5049
server = TSC.Server(args.server, use_server_version=True)
5150
with server.auth.sign_in(tableau_auth):
52-
5351
# Create webhook if create flag is set (-create, -c)
5452
if args.create:
55-
5653
new_webhook = TSC.WebhookItem()
5754
new_webhook.name = args.create
5855
new_webhook.url = "https://ifttt.com/maker-url"

samples/explore_workbook.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818

1919
def main():
20-
2120
parser = argparse.ArgumentParser(description="Explore workbook functions supported by the Server API.")
2221
# Common options; please keep those in sync across all samples
2322
parser.add_argument("--server", "-s", required=True, help="server address")
@@ -52,7 +51,6 @@ def main():
5251
tableau_auth = TSC.PersonalAccessTokenAuth(args.token_name, args.token_value, site_id=args.site)
5352
server = TSC.Server(args.server, use_server_version=True)
5453
with server.auth.sign_in(tableau_auth):
55-
5654
# Publish workbook if publish flag is set (-publish, -p)
5755
overwrite_true = TSC.Server.PublishMode.Overwrite
5856
if args.publish:

samples/extracts.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818

1919
def main():
20-
2120
parser = argparse.ArgumentParser(description="Explore extract functions supported by the Server API.")
2221
# Common options; please keep those in sync across all samples
2322
parser.add_argument("--server", "-s", required=True, help="server address")
@@ -50,7 +49,6 @@ def main():
5049
server.add_http_options({"verify": False})
5150
server.use_server_version()
5251
with server.auth.sign_in(tableau_auth):
53-
5452
# Gets all workbook items
5553
all_workbooks, pagination_item = server.workbooks.get()
5654
print("\nThere are {} workbooks on site: ".format(pagination_item.total_available))

samples/filter_sort_groups.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ def main():
5353
tableau_auth = TSC.PersonalAccessTokenAuth(args.token_name, args.token_value, site_id=args.site)
5454
server = TSC.Server(args.server, use_server_version=True)
5555
with server.auth.sign_in(tableau_auth):
56-
5756
group_name = "SALES NORTHWEST"
5857
# Try to create a group named "SALES NORTHWEST"
5958
create_example_group(group_name, server)

0 commit comments

Comments
 (0)
0