tlpytools 0.2.8__tar.gz → 0.2.9__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 (60) hide show
  1. {tlpytools-0.2.8 → tlpytools-0.2.9}/.github/copilot-instructions.md +2 -2
  2. {tlpytools-0.2.8 → tlpytools-0.2.9}/.github/workflows/deploy.yml +1 -1
  3. {tlpytools-0.2.8 → tlpytools-0.2.9}/CHANGELOG.md +9 -0
  4. {tlpytools-0.2.8 → tlpytools-0.2.9}/DEVELOPER_GUIDE.md +2 -2
  5. {tlpytools-0.2.8 → tlpytools-0.2.9}/PKG-INFO +1 -1
  6. {tlpytools-0.2.8 → tlpytools-0.2.9}/pyproject.toml +1 -1
  7. {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/__init__.py +1 -1
  8. {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/orca/orchestrator.py +47 -12
  9. {tlpytools-0.2.8 → tlpytools-0.2.9}/uv.lock +1 -1
  10. {tlpytools-0.2.8 → tlpytools-0.2.9}/.env.example +0 -0
  11. {tlpytools-0.2.8 → tlpytools-0.2.9}/.github/skills/README.md +0 -0
  12. {tlpytools-0.2.8 → tlpytools-0.2.9}/.github/skills/prepare-official-release/SKILL.md +0 -0
  13. {tlpytools-0.2.8 → tlpytools-0.2.9}/.github/workflows/code-formatting-pr.yml +0 -0
  14. {tlpytools-0.2.8 → tlpytools-0.2.9}/.github/workflows/code-formatting.yml +0 -0
  15. {tlpytools-0.2.8 → tlpytools-0.2.9}/.github/workflows/test.yml +0 -0
  16. {tlpytools-0.2.8 → tlpytools-0.2.9}/.gitignore +0 -0
  17. {tlpytools-0.2.8 → tlpytools-0.2.9}/.pre-commit-config.yaml +0 -0
  18. {tlpytools-0.2.8 → tlpytools-0.2.9}/.python-version +0 -0
  19. {tlpytools-0.2.8 → tlpytools-0.2.9}/ENVIRONMENT_VARIABLES.md +0 -0
  20. {tlpytools-0.2.8 → tlpytools-0.2.9}/Makefile +0 -0
  21. {tlpytools-0.2.8 → tlpytools-0.2.9}/README.md +0 -0
  22. {tlpytools-0.2.8 → tlpytools-0.2.9}/docs/adls_server.md +0 -0
  23. {tlpytools-0.2.8 → tlpytools-0.2.9}/docs/azure_credential_manager.md +0 -0
  24. {tlpytools-0.2.8 → tlpytools-0.2.9}/docs/diagrams/README.md +0 -0
  25. {tlpytools-0.2.8 → tlpytools-0.2.9}/docs/diagrams/orca_cloud_workflow.drawio +0 -0
  26. {tlpytools-0.2.8 → tlpytools-0.2.9}/docs/diagrams/orca_detailed_steps.drawio +0 -0
  27. {tlpytools-0.2.8 → tlpytools-0.2.9}/docs/diagrams/orca_file_structure.drawio +0 -0
  28. {tlpytools-0.2.8 → tlpytools-0.2.9}/docs/diagrams/orca_local_workflow.drawio +0 -0
  29. {tlpytools-0.2.8 → tlpytools-0.2.9}/docs/diagrams/orca_main_features.drawio +0 -0
  30. {tlpytools-0.2.8 → tlpytools-0.2.9}/docs/unified_logging.md +0 -0
  31. {tlpytools-0.2.8 → tlpytools-0.2.9}/requirements.txt +0 -0
  32. {tlpytools-0.2.8 → tlpytools-0.2.9}/src/examples/batchtask.py +0 -0
  33. {tlpytools-0.2.8 → tlpytools-0.2.9}/src/examples/data_files/example.csv +0 -0
  34. {tlpytools-0.2.8 → tlpytools-0.2.9}/src/examples/mydataproject.py +0 -0
  35. {tlpytools-0.2.8 → tlpytools-0.2.9}/src/examples/readwritedata.py +0 -0
  36. {tlpytools-0.2.8 → tlpytools-0.2.9}/src/examples/unified_logging.py +0 -0
  37. {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/adls_server.py +0 -0
  38. {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/azure_credential.py +0 -0
  39. {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/config.py +0 -0
  40. {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/data.py +0 -0
  41. {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/data_store.py +0 -0
  42. {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/env_config.py +0 -0
  43. {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/log.py +0 -0
  44. {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/orca/README.md +0 -0
  45. {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/orca/__init__.py +0 -0
  46. {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/orca/__main__.py +0 -0
  47. {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/orca/batch_task_runner.py +0 -0
  48. {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/orca/cli.py +0 -0
  49. {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/orca/orca_model_config_barebone.yaml +0 -0
  50. {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/orca/orca_model_config_example.yaml +0 -0
  51. {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/sql_server.py +0 -0
  52. {tlpytools-0.2.8 → tlpytools-0.2.9}/tests/README.md +0 -0
  53. {tlpytools-0.2.8 → tlpytools-0.2.9}/tests/__init__.py +0 -0
  54. {tlpytools-0.2.8 → tlpytools-0.2.9}/tests/conftest.py +0 -0
  55. {tlpytools-0.2.8 → tlpytools-0.2.9}/tests/run_tests.py +0 -0
  56. {tlpytools-0.2.8 → tlpytools-0.2.9}/tests/test_azure_credential.py +0 -0
  57. {tlpytools-0.2.8 → tlpytools-0.2.9}/tests/test_basic.py +0 -0
  58. {tlpytools-0.2.8 → tlpytools-0.2.9}/tests/test_core.py +0 -0
  59. {tlpytools-0.2.8 → tlpytools-0.2.9}/tests/test_orca_integration.py +0 -0
  60. {tlpytools-0.2.8 → tlpytools-0.2.9}/tests/test_orca_unit.py +0 -0
@@ -98,8 +98,8 @@ Interpretation for agent PRs:
98
98
 
99
99
  Observed result:
100
100
  - Build succeeds and produces:
101
- - `dist/tlpytools-0.2.8.tar.gz`
102
- - `dist/tlpytools-0.2.8-py3-none-any.whl`
101
+ - `dist/tlpytools-0.2.9.tar.gz`
102
+ - `dist/tlpytools-0.2.9-py3-none-any.whl`
103
103
 
104
104
  ### 5) Run
105
105
  - ORCA CLI (module form):
@@ -4,7 +4,7 @@ on:
4
4
  workflow_dispatch:
5
5
  inputs:
6
6
  version:
7
- description: 'Version number to release (e.g., 0.2.8)'
7
+ description: 'Version number to release (e.g., 0.2.9)'
8
8
  required: true
9
9
  type: string
10
10
  prerelease:
@@ -2,6 +2,15 @@
2
2
 
3
3
  All notable changes to TLPyTools will be documented in this file.
4
4
 
5
+ ## [0.2.9]
6
+
7
+ ### Changed
8
+ - **`initialize_scenario.input_data` now supports per-entry `exclude` lists:**
9
+ - Each source entry in an `input_data` category can now be a dict `{path: ..., exclude: [...]}` instead of a plain path string
10
+ - The `exclude` list contains file/directory names to skip when copying that specific source
11
+ - Applies to both directory copies (item-by-item scan) and glob-pattern matches
12
+ - Example: `- {path: shared/inputs, exclude: [large_file.csv, scratch/]}`
13
+
5
14
  ## [0.2.8]
6
15
 
7
16
  ### Changed
@@ -200,7 +200,7 @@ make check-all
200
200
  4. Click **"Run workflow"** button
201
201
  5. Fill in the required information:
202
202
  - **Branch**: Select `main` (or your release branch)
203
- - **Version number**: Enter the new version (e.g., `0.2.8`)
203
+ - **Version number**: Enter the new version (e.g., `0.2.9`)
204
204
  - **Is this a pre-release?**: Check if this is a pre-release version
205
205
 
206
206
  #### 3. Monitor the Release
@@ -219,7 +219,7 @@ After the workflow completes:
219
219
 
220
220
  ```bash
221
221
  # Verify the package is available on PyPI
222
- pip install tlpytools==0.2.8 # Replace with your version
222
+ pip install tlpytools==0.2.9 # Replace with your version
223
223
 
224
224
  # Test installation in a fresh environment
225
225
  python -c "import tlpytools; print(tlpytools.__version__)"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: tlpytools
3
- Version: 0.2.8
3
+ Version: 0.2.9
4
4
  Summary: TransLink's Python Tools - A comprehensive toolkit for transportation modeling and forecasting
5
5
  Project-URL: Homepage, https://github.com/TransLinkForecasting/tlpytools
6
6
  Project-URL: Bug Tracker, https://github.com/TransLinkForecasting/tlpytools/issues
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "tlpytools"
7
- version = "0.2.8"
7
+ version = "0.2.9"
8
8
  description = "TransLink's Python Tools - A comprehensive toolkit for transportation modeling and forecasting"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10.0, <3.13"
@@ -2,7 +2,7 @@
2
2
  TLPyTools - A set of tools for building models at the TransLink Forecasting Team
3
3
  """
4
4
 
5
- __version__ = "0.2.8"
5
+ __version__ = "0.2.9"
6
6
 
7
7
  # Core modules that should always be available (minimal dependencies)
8
8
  from . import log
@@ -3148,13 +3148,23 @@ class OrcaOrchestrator:
3148
3148
  category_dir = os.path.join(input_data_dir, data_category)
3149
3149
  os.makedirs(category_dir, exist_ok=True)
3150
3150
 
3151
- # Process dict format and unfold to list
3152
- if isinstance(sources, dict):
3153
- sources = sources["sources"]
3151
+ # Normalise: sources may be a plain list of strings, or a list where each
3152
+ # entry is either a plain path string or a dict {path: ..., exclude: [...]}.
3153
+ # The exclude list applies only to the source entry it is defined on.
3154
+ if not isinstance(sources, list):
3155
+ sources = [sources]
3156
+
3157
+ for source_entry in sources:
3158
+ # Each entry is a plain path string OR {path: ..., exclude: [...]}
3159
+ if isinstance(source_entry, dict):
3160
+ source_path = source_entry.get("path", "")
3161
+ entry_exclude = set(source_entry.get("exclude", []))
3162
+ else:
3163
+ source_path = source_entry
3164
+ entry_exclude = set()
3154
3165
 
3155
- for source_path in sources:
3156
- if not isinstance(source_path, str):
3157
- self.logger.warning("Invalid source entry format: %s", source_path)
3166
+ if not isinstance(source_path, str) or not source_path:
3167
+ self.logger.warning("Invalid source entry format: %s", source_entry)
3158
3168
  continue
3159
3169
 
3160
3170
  # Resolve source path relative to scenario parent directory
@@ -3164,12 +3174,35 @@ class OrcaOrchestrator:
3164
3174
 
3165
3175
  if os.path.exists(full_source_path):
3166
3176
  if os.path.isdir(full_source_path):
3167
- # Copy directory
3168
- self.scenario.copy_template_directory(
3169
- source_dir=full_source_path,
3170
- target_dir=category_dir,
3171
- overwrite=False,
3172
- )
3177
+ if entry_exclude:
3178
+ # Copy directory contents item-by-item, skipping excluded names.
3179
+ for entry in os.scandir(full_source_path):
3180
+ if entry.name in entry_exclude:
3181
+ self.logger.debug(
3182
+ "Skipping excluded input data item: %s",
3183
+ entry.name,
3184
+ )
3185
+ continue
3186
+ target = os.path.join(category_dir, entry.name)
3187
+ if entry.is_dir():
3188
+ self.scenario.copy_template_directory(
3189
+ source_dir=entry.path,
3190
+ target_dir=target,
3191
+ overwrite=False,
3192
+ )
3193
+ else:
3194
+ self.scenario.copy_template_file(
3195
+ source_file=entry.path,
3196
+ target_file=target,
3197
+ overwrite=False,
3198
+ )
3199
+ else:
3200
+ # Copy directory
3201
+ self.scenario.copy_template_directory(
3202
+ source_dir=full_source_path,
3203
+ target_dir=category_dir,
3204
+ overwrite=False,
3205
+ )
3173
3206
  else:
3174
3207
  # Copy file
3175
3208
  self.scenario.copy_template_file(
@@ -3186,6 +3219,8 @@ class OrcaOrchestrator:
3186
3219
  matching_files = glob.glob(full_source_path)
3187
3220
  if matching_files:
3188
3221
  for file_path in matching_files:
3222
+ if os.path.basename(file_path) in exclude_names:
3223
+ continue
3189
3224
  self.scenario.copy_template_file(
3190
3225
  source_file=file_path,
3191
3226
  target_file=os.path.join(
@@ -4649,7 +4649,7 @@ wheels = [
4649
4649
 
4650
4650
  [[package]]
4651
4651
  name = "tlpytools"
4652
- version = "0.2.8"
4652
+ version = "0.2.9"
4653
4653
  source = { editable = "." }
4654
4654
  dependencies = [
4655
4655
  { name = "azure-core" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes