Skip to content

Commit e3df5ca

Browse files
authored
Merge pull request #31 from stackql/feature/updates
updated to 3.5.2
2 parents fc183cc + 47b157c commit e3df5ca

File tree

5 files changed

+24
-6
lines changed

5 files changed

+24
-6
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Changelog
22

3-
## v3.5.0 (2024-03-15)
3+
## v3.5.2 (2024-03-21)
4+
5+
### Updates
6+
7+
* added `custom_registry` constructor arg for specifying a non-default registry
8+
9+
## v3.5.1 (2024-03-15)
410

511
### Updates
612

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,4 +193,4 @@ To publish the package to PyPI, run the following command:
193193

194194
::
195195

196-
twine upload dist/pystackql-3.5.0.tar.gz
196+
twine upload dist/pystackql-3.5.2.tar.gz

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
# -- Project information -----------------------------------------------------
2121

2222
project = 'pystackql'
23-
copyright = '2023, StackQL Studios'
23+
copyright = '2024, StackQL Studios'
2424
author = 'StackQL Studios'
2525

2626
# The short X.Y version
2727
version = ''
2828
# The full version, including alpha/beta/rc tags
29-
release = '3.5.0'
29+
release = '3.5.2'
3030

3131

3232
# -- General configuration ---------------------------------------------------

pystackql/stackql.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,12 @@ class StackQL:
7171
:param max_depth: Max depth for indirect queries: views and subqueries
7272
(defaults to `5`, not supported in `server_mode`)
7373
:type max_depth: int, optional
74+
:param custom_registry: Custom StackQL provider registry URL
75+
(e.g. https://registry-dev.stackql.app/providers) supplied using the class constructor
76+
:type custom_registry: str, optional
7477
:param custom_auth: Custom StackQL provider authentication object supplied using the class constructor
7578
(not supported in `server_mode`)
76-
:type auth: dict, optional
79+
:type custom_auth: dict, optional
7780
:param debug: Enable debug logging
7881
(defaults to `False`)
7982
:type debug: bool, optional
@@ -212,6 +215,7 @@ def __init__(self,
212215
app_root=None,
213216
execution_concurrency_limit=1,
214217
output='dict',
218+
custom_registry=None,
215219
custom_auth=None,
216220
sep=',',
217221
header=False,
@@ -323,6 +327,14 @@ def __init__(self,
323327
self.params.append("--auth")
324328
self.params.append(authstr)
325329

330+
# if custom_registry is set, use it
331+
if custom_registry is not None:
332+
self.custom_registry = custom_registry
333+
custom_reg_obj = { "url": custom_registry }
334+
custom_reg_str = json.dumps(custom_reg_obj)
335+
self.params.append("--registry")
336+
self.params.append(custom_reg_str)
337+
326338
# csv output
327339
if self.output == "csv":
328340
self.sep = sep

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name='pystackql',
13-
version='3.5.0',
13+
version='3.5.2',
1414
description='A Python interface for StackQL',
1515
long_description=readme,
1616
author='Jeffrey Aven',

0 commit comments

Comments
 (0)