sql-testing-tools 0.1.5__tar.gz → 0.1.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sql_testing_tools
3
- Version: 0.1.5
3
+ Version: 0.1.7
4
4
  Description-Content-Type: text/markdown
5
5
  Requires-Dist: sqlparse>=0.5.1
6
6
  Requires-Dist: requests>=2.32.3
@@ -12,13 +12,14 @@ A library that normalizes simple SQL queries and compares them first by equality
12
12
  [![Build and Test](https://github.com/ValentinHerrmann/sql_testing_tools/actions/workflows/python-build.yml/badge.svg)](https://github.com/ValentinHerrmann/sql_testing_tools/actions/workflows/python-build.yml)
13
13
  [![Build and Test](https://github.com/ValentinHerrmann/sql_testing_tools/actions/workflows/python-unittests.yml/badge.svg)](https://github.com/ValentinHerrmann/sql_testing_tools/actions/workflows/python-unittests.yml)
14
14
 
15
+ ### V 0.1.6 + V 0.1.7
16
+ - Fixed import error to ensure imports working in different environemnts
15
17
 
16
-
17
- ### V0.1.4 + V0.1.5
18
- - V0.1.5 is just a reupload of V0.1.4
18
+ ### V 0.1.4 + V 0.1.5
19
+ - V0.1.5 is just a reupload of V 0.1.4
19
20
  - Chained conditions (with AND,OR and Paranthesises) in WHERE statement
20
21
 
21
- ### V0.1.3
22
+ ### V 0.1.3
22
23
  - SELECT: columns with our without table prefix
23
24
  - FROM: one or more table from DB; no queries as tables!
24
25
  - WHERE: single conditions; no Paranthesises!
@@ -6,7 +6,7 @@ with open("sql_testing_tools/README.md", "r") as fh:
6
6
 
7
7
  setup(
8
8
  name='sql_testing_tools',
9
- version='0.1.5',
9
+ version='0.1.7',
10
10
  packages=find_packages(),
11
11
  install_requires=[
12
12
  'sqlparse>=0.5.1',
@@ -1,5 +1,9 @@
1
- import BaseAccess as Ba
2
- import TokenProcessing as Tp
1
+ try:
2
+ import BaseAccess as Ba
3
+ import TokenProcessing as Tp
4
+ except ImportError:
5
+ from . import BaseAccess as Ba
6
+ from . import TokenProcessing as Tp
3
7
 
4
8
  import requests
5
9
  import sqlparse
@@ -2,7 +2,12 @@ import sqlparse
2
2
  from sqlparse.sql import Identifier, IdentifierList, Where, Comparison, Function, Parenthesis
3
3
  from sqlparse.tokens import Keyword, DML, Name, Wildcard, Whitespace
4
4
 
5
- import Helper as He
5
+ try:
6
+ import Helper as He
7
+ except ImportError:
8
+ from . import Helper as He
9
+
10
+
6
11
 
7
12
 
8
13
  #####################################
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sql_testing_tools
3
- Version: 0.1.5
3
+ Version: 0.1.7
4
4
  Description-Content-Type: text/markdown
5
5
  Requires-Dist: sqlparse>=0.5.1
6
6
  Requires-Dist: requests>=2.32.3
@@ -12,13 +12,14 @@ A library that normalizes simple SQL queries and compares them first by equality
12
12
  [![Build and Test](https://github.com/ValentinHerrmann/sql_testing_tools/actions/workflows/python-build.yml/badge.svg)](https://github.com/ValentinHerrmann/sql_testing_tools/actions/workflows/python-build.yml)
13
13
  [![Build and Test](https://github.com/ValentinHerrmann/sql_testing_tools/actions/workflows/python-unittests.yml/badge.svg)](https://github.com/ValentinHerrmann/sql_testing_tools/actions/workflows/python-unittests.yml)
14
14
 
15
+ ### V 0.1.6 + V 0.1.7
16
+ - Fixed import error to ensure imports working in different environemnts
15
17
 
16
-
17
- ### V0.1.4 + V0.1.5
18
- - V0.1.5 is just a reupload of V0.1.4
18
+ ### V 0.1.4 + V 0.1.5
19
+ - V0.1.5 is just a reupload of V 0.1.4
19
20
  - Chained conditions (with AND,OR and Paranthesises) in WHERE statement
20
21
 
21
- ### V0.1.3
22
+ ### V 0.1.3
22
23
  - SELECT: columns with our without table prefix
23
24
  - FROM: one or more table from DB; no queries as tables!
24
25
  - WHERE: single conditions; no Paranthesises!