wcp-library 1.1.6__tar.gz → 1.1.8__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.
Files changed (24) hide show
  1. {wcp_library-1.1.6 → wcp_library-1.1.8}/PKG-INFO +1 -1
  2. {wcp_library-1.1.6 → wcp_library-1.1.8}/pyproject.toml +1 -1
  3. {wcp_library-1.1.6 → wcp_library-1.1.8}/wcp_library/__init__.py +1 -1
  4. {wcp_library-1.1.6 → wcp_library-1.1.8}/wcp_library/logging.py +3 -5
  5. {wcp_library-1.1.6 → wcp_library-1.1.8}/README.md +0 -0
  6. {wcp_library-1.1.6 → wcp_library-1.1.8}/wcp_library/async_credentials/__init__.py +0 -0
  7. {wcp_library-1.1.6 → wcp_library-1.1.8}/wcp_library/async_credentials/api.py +0 -0
  8. {wcp_library-1.1.6 → wcp_library-1.1.8}/wcp_library/async_credentials/oracle.py +0 -0
  9. {wcp_library-1.1.6 → wcp_library-1.1.8}/wcp_library/async_credentials/postgres.py +0 -0
  10. {wcp_library-1.1.6 → wcp_library-1.1.8}/wcp_library/async_sql/__init__.py +0 -0
  11. {wcp_library-1.1.6 → wcp_library-1.1.8}/wcp_library/async_sql/oracle.py +0 -0
  12. {wcp_library-1.1.6 → wcp_library-1.1.8}/wcp_library/async_sql/postgres.py +0 -0
  13. {wcp_library-1.1.6 → wcp_library-1.1.8}/wcp_library/credentials/__init__.py +0 -0
  14. {wcp_library-1.1.6 → wcp_library-1.1.8}/wcp_library/credentials/ftp.py +0 -0
  15. {wcp_library-1.1.6 → wcp_library-1.1.8}/wcp_library/credentials/oracle.py +0 -0
  16. {wcp_library-1.1.6 → wcp_library-1.1.8}/wcp_library/credentials/postgres.py +0 -0
  17. {wcp_library-1.1.6 → wcp_library-1.1.8}/wcp_library/emailing.py +0 -0
  18. {wcp_library-1.1.6 → wcp_library-1.1.8}/wcp_library/ftp/__init__.py +0 -0
  19. {wcp_library-1.1.6 → wcp_library-1.1.8}/wcp_library/ftp/ftp.py +0 -0
  20. {wcp_library-1.1.6 → wcp_library-1.1.8}/wcp_library/ftp/sftp.py +0 -0
  21. {wcp_library-1.1.6 → wcp_library-1.1.8}/wcp_library/informatica.py +0 -0
  22. {wcp_library-1.1.6 → wcp_library-1.1.8}/wcp_library/sql/__init__.py +0 -0
  23. {wcp_library-1.1.6 → wcp_library-1.1.8}/wcp_library/sql/oracle.py +0 -0
  24. {wcp_library-1.1.6 → wcp_library-1.1.8}/wcp_library/sql/postgres.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wcp-library
3
- Version: 1.1.6
3
+ Version: 1.1.8
4
4
  Summary: Common utilites for internal development at WCP
5
5
  Home-page: https://github.com/Whitecap-DNA/WCP-Library
6
6
  Author: Mitch-Petersen
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "wcp-library"
3
- version = "1.1.6"
3
+ version = "1.1.8"
4
4
  description = "Common utilites for internal development at WCP"
5
5
  authors = ["Mitch-Petersen <mitch.petersen@wcap.ca>"]
6
6
  readme = "README.md"
@@ -12,4 +12,4 @@ if getattr(sys, 'frozen', False):
12
12
  application_path = sys.executable
13
13
  application_path = Path(application_path).parent
14
14
  else:
15
- application_path = Path(os.environ['VIRTUAL_ENV']).parent
15
+ application_path = Path().absolute()
@@ -22,15 +22,13 @@ def create_log(file_level: int, console_level: int, iterations: int, project_nam
22
22
  :return:
23
23
  """
24
24
 
25
-
26
- for i in range(iterations, 0, -1):
25
+ for i in range(iterations-1, 0, -1):
27
26
  if (application_path / (project_name + f"_{i}.log")).exists():
28
27
  (application_path / (project_name + f"_{i}.log")).rename((application_path / (project_name + f"_{i+1}.log")))
29
28
  if (application_path / (project_name + ".log")).exists():
30
29
  (application_path / (project_name + ".log")).rename((application_path / (project_name + "_1.log")))
31
- if (application_path / (project_name + f"_{iterations + 1}.log")).exists():
32
- (application_path / (project_name + f"_{iterations + 1}.log")).unlink()
33
-
30
+ if (application_path / (project_name + f"_{iterations}.log")).exists():
31
+ (application_path / (project_name + f"_{iterations}.log")).unlink()
34
32
 
35
33
  logging.basicConfig(
36
34
  filename=(application_path / (project_name + ".log")),
File without changes