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.
- {tlpytools-0.2.8 → tlpytools-0.2.9}/.github/copilot-instructions.md +2 -2
- {tlpytools-0.2.8 → tlpytools-0.2.9}/.github/workflows/deploy.yml +1 -1
- {tlpytools-0.2.8 → tlpytools-0.2.9}/CHANGELOG.md +9 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/DEVELOPER_GUIDE.md +2 -2
- {tlpytools-0.2.8 → tlpytools-0.2.9}/PKG-INFO +1 -1
- {tlpytools-0.2.8 → tlpytools-0.2.9}/pyproject.toml +1 -1
- {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/__init__.py +1 -1
- {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/orca/orchestrator.py +47 -12
- {tlpytools-0.2.8 → tlpytools-0.2.9}/uv.lock +1 -1
- {tlpytools-0.2.8 → tlpytools-0.2.9}/.env.example +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/.github/skills/README.md +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/.github/skills/prepare-official-release/SKILL.md +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/.github/workflows/code-formatting-pr.yml +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/.github/workflows/code-formatting.yml +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/.github/workflows/test.yml +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/.gitignore +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/.pre-commit-config.yaml +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/.python-version +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/ENVIRONMENT_VARIABLES.md +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/Makefile +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/README.md +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/docs/adls_server.md +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/docs/azure_credential_manager.md +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/docs/diagrams/README.md +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/docs/diagrams/orca_cloud_workflow.drawio +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/docs/diagrams/orca_detailed_steps.drawio +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/docs/diagrams/orca_file_structure.drawio +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/docs/diagrams/orca_local_workflow.drawio +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/docs/diagrams/orca_main_features.drawio +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/docs/unified_logging.md +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/requirements.txt +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/src/examples/batchtask.py +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/src/examples/data_files/example.csv +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/src/examples/mydataproject.py +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/src/examples/readwritedata.py +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/src/examples/unified_logging.py +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/adls_server.py +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/azure_credential.py +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/config.py +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/data.py +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/data_store.py +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/env_config.py +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/log.py +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/orca/README.md +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/orca/__init__.py +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/orca/__main__.py +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/orca/batch_task_runner.py +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/orca/cli.py +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/orca/orca_model_config_barebone.yaml +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/orca/orca_model_config_example.yaml +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/src/tlpytools/sql_server.py +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/tests/README.md +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/tests/__init__.py +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/tests/conftest.py +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/tests/run_tests.py +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/tests/test_azure_credential.py +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/tests/test_basic.py +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/tests/test_core.py +0 -0
- {tlpytools-0.2.8 → tlpytools-0.2.9}/tests/test_orca_integration.py +0 -0
- {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.
|
|
102
|
-
- `dist/tlpytools-0.2.
|
|
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):
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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"
|
|
@@ -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
|
-
#
|
|
3152
|
-
|
|
3153
|
-
|
|
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
|
-
|
|
3156
|
-
|
|
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
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
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(
|
|
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
|
|
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
|
|
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
|
|
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
|