polyapi-python 0.3.9.dev1__tar.gz → 0.3.9.dev2__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 (46) hide show
  1. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/PKG-INFO +1 -1
  2. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/deployables.py +2 -2
  3. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/prepare.py +5 -3
  4. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi_python.egg-info/PKG-INFO +1 -1
  5. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/pyproject.toml +1 -1
  6. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/LICENSE +0 -0
  7. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/README.md +0 -0
  8. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/__init__.py +0 -0
  9. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/__main__.py +0 -0
  10. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/api.py +0 -0
  11. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/auth.py +0 -0
  12. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/cli.py +0 -0
  13. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/client.py +0 -0
  14. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/config.py +0 -0
  15. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/constants.py +0 -0
  16. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/error_handler.py +0 -0
  17. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/exceptions.py +0 -0
  18. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/execute.py +0 -0
  19. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/function_cli.py +0 -0
  20. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/generate.py +0 -0
  21. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/parser.py +0 -0
  22. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/poly_schemas.py +0 -0
  23. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/py.typed +0 -0
  24. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/rendered_spec.py +0 -0
  25. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/schema.py +0 -0
  26. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/server.py +0 -0
  27. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/sync.py +0 -0
  28. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/typedefs.py +0 -0
  29. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/utils.py +0 -0
  30. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/variables.py +0 -0
  31. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi/webhook.py +0 -0
  32. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi_python.egg-info/SOURCES.txt +0 -0
  33. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi_python.egg-info/dependency_links.txt +0 -0
  34. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi_python.egg-info/requires.txt +0 -0
  35. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/polyapi_python.egg-info/top_level.txt +0 -0
  36. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/setup.cfg +0 -0
  37. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/tests/test_api.py +0 -0
  38. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/tests/test_auth.py +0 -0
  39. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/tests/test_deployables.py +0 -0
  40. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/tests/test_generate.py +0 -0
  41. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/tests/test_parser.py +0 -0
  42. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/tests/test_rendered_spec.py +0 -0
  43. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/tests/test_schema.py +0 -0
  44. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/tests/test_server.py +0 -0
  45. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/tests/test_utils.py +0 -0
  46. {polyapi_python-0.3.9.dev1 → polyapi_python-0.3.9.dev2}/tests/test_variables.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: polyapi-python
3
- Version: 0.3.9.dev1
3
+ Version: 0.3.9.dev2
4
4
  Summary: The Python Client for PolyAPI, the IPaaS by Developers for Developers
5
5
  Author-email: Dan Fellin <dan@polyapi.io>
6
6
  License: MIT License
@@ -118,13 +118,13 @@ def get_all_deployable_files_windows(config: PolyDeployConfig) -> List[str]:
118
118
  pattern = ' '.join(f"/C:\"polyConfig: {name}\"" for name in config["type_names"]) or '/C:"polyConfig"'
119
119
 
120
120
  exclude_command = f" | findstr /V /I \"{exclude_pattern}\"" if exclude_pattern else ''
121
- search_command = f" | findstr /S /M /I /F:/ {pattern} *.*"
121
+ search_command = f" | findstr /M /I /F:/ {pattern}"
122
122
 
123
123
  result = []
124
124
  for dir_path in config["include_dirs"]:
125
125
  if dir_path != '.':
126
126
  include_pattern = " ".join(f"{dir_path}*.{f}" for f in config["include_files_or_extensions"]) or "*"
127
- dir_command = f"dir {include_pattern} /S /P /B > NUL"
127
+ dir_command = f"dir {include_pattern} /S /P /B"
128
128
  full_command = f"{dir_command}{exclude_command}{search_command}"
129
129
  try:
130
130
  output = subprocess.check_output(full_command, shell=True, text=True)
@@ -138,11 +138,13 @@ def prepare_deployables(lazy: bool = False, disable_docs: bool = False, disable_
138
138
  write_updated_deployable(deployable, disable_docs)
139
139
  # Re-stage any updated staged files.
140
140
  staged = subprocess.check_output('git diff --name-only --cached', shell=True, text=True, ).split('\n')
141
+ rootPath = subprocess.check_output('git rev-parse --show-toplevel', shell=True, text=True).replace('\n', '')
141
142
  for deployable in dirty_deployables:
142
143
  try:
143
- if deployable["file"] in staged:
144
- print(f'Staging {deployable["file"]}')
145
- subprocess.run(['git', 'add', deployable["file"]])
144
+ deployableName = deployable["file"].replace('\\', '/').replace(f"{rootPath}/", '')
145
+ if deployableName in staged:
146
+ print(f'Staging {deployableName}')
147
+ subprocess.run(['git', 'add', deployableName])
146
148
  except:
147
149
  print('Warning: File staging failed, check that all files are staged properly.')
148
150
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: polyapi-python
3
- Version: 0.3.9.dev1
3
+ Version: 0.3.9.dev2
4
4
  Summary: The Python Client for PolyAPI, the IPaaS by Developers for Developers
5
5
  Author-email: Dan Fellin <dan@polyapi.io>
6
6
  License: MIT License
@@ -3,7 +3,7 @@ requires = ["setuptools>=61.2", "wheel"]
3
3
 
4
4
  [project]
5
5
  name = "polyapi-python"
6
- version = "0.3.9.dev1"
6
+ version = "0.3.9.dev2"
7
7
  description = "The Python Client for PolyAPI, the IPaaS by Developers for Developers"
8
8
  authors = [{ name = "Dan Fellin", email = "dan@polyapi.io" }]
9
9
  dependencies = [