Skip to content

Commit 06bc233

Browse files
authored
Merge branch 'main' into users/zhaodongwang/deleteUpdate
2 parents eabbea4 + 4fe1b0c commit 06bc233

File tree

9 files changed

+71
-505
lines changed

9 files changed

+71
-505
lines changed

β€Ž.azdo/ci-pr.yamlβ€Ž

Lines changed: 69 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -6,52 +6,72 @@ pr:
66

77
trigger: none # Only run on PRs, not on direct pushes
88

9-
pool:
10-
vmImage: ubuntu-latest
11-
12-
# Simplified to single Python version (per project requirements)
13-
# Can expand to matrix testing later if needed
14-
15-
steps:
16-
- task: UsePythonVersion@0
17-
inputs:
18-
versionSpec: '3.12'
19-
addToPath: true
20-
displayName: 'Use Python 3.12'
21-
22-
- script: |
23-
python -m pip install --upgrade pip
24-
python -m pip install flake8 black build
25-
if [ -f dev_dependencies.txt ]; then pip install -r dev_dependencies.txt; fi
26-
displayName: 'Install dependencies'
27-
28-
- script: |
29-
black src tests --check
30-
displayName: 'Check format with black'
31-
continueOnError: true # TODO: fix detected formatting errors and remove this line
32-
33-
- script: |
34-
# stop the build if there are Python syntax errors or undefined names
35-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
36-
# exit-zero treats all errors as warnings
37-
flake8 . --count --exit-zero --show-source --statistics
38-
displayName: 'Lint with flake8'
39-
40-
- script: |
41-
python -m build
42-
displayName: 'Build package'
43-
44-
- script: |
45-
python -m pip install dist/*.whl
46-
displayName: 'Install wheel'
47-
48-
- script: |
49-
pytest
50-
displayName: 'Test with pytest'
51-
52-
- task: PublishTestResults@2
53-
condition: succeededOrFailed()
54-
inputs:
55-
testResultsFiles: '**/test-*.xml'
56-
testRunTitle: 'Python 3.12'
57-
displayName: 'Publish test results'
9+
resources:
10+
repositories:
11+
- repository: 1ESPipelineTemplates
12+
type: git
13+
name: 1ESPipelineTemplates/1ESPipelineTemplates
14+
ref: refs/tags/release
15+
16+
extends:
17+
template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates
18+
parameters:
19+
pool:
20+
name: Azure-Pipelines-1ESPT-ExDShared
21+
image: ubuntu-latest
22+
os: linux
23+
sdl:
24+
sourceAnalysisPool:
25+
name: Azure-Pipelines-1ESPT-ExDShared # Name of your hosted pool
26+
image: windows-latest
27+
os: windows
28+
stages:
29+
- stage: Build
30+
jobs:
31+
- job: Python
32+
# Simplified to single Python version (per project requirements)
33+
# Can expand to matrix testing later if needed
34+
35+
steps:
36+
- task: UsePythonVersion@0
37+
inputs:
38+
versionSpec: '3.12'
39+
addToPath: true
40+
displayName: 'Use Python 3.12'
41+
42+
- script: |
43+
python -m pip install --upgrade pip
44+
python -m pip install flake8 black build
45+
python -m pip install -e .[dev]
46+
displayName: 'Install dependencies'
47+
48+
- script: |
49+
black src tests --check
50+
displayName: 'Check format with black'
51+
continueOnError: true # TODO: fix detected formatting errors and remove this line
52+
53+
- script: |
54+
# stop the build if there are Python syntax errors or undefined names
55+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
56+
# exit-zero treats all errors as warnings
57+
flake8 . --count --exit-zero --show-source --statistics
58+
displayName: 'Lint with flake8'
59+
60+
- script: |
61+
python -m build
62+
displayName: 'Build package'
63+
64+
- script: |
65+
python -m pip install dist/*.whl
66+
displayName: 'Install wheel'
67+
68+
- script: |
69+
pytest
70+
displayName: 'Test with pytest'
71+
72+
- task: PublishTestResults@2
73+
condition: succeededOrFailed()
74+
inputs:
75+
testResultsFiles: '**/test-*.xml'
76+
testRunTitle: 'Python 3.12'
77+
displayName: 'Publish test results'

β€ŽCHANGELOG.mdβ€Ž

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ All notable changes to this project will be documented in this file.
2323
**Table Management:**
2424
- Table metadata operations (create, inspect, delete custom tables)
2525

26-
**Integration & Analysis:**
27-
- Pandas DataFrame integration for seamless data analysis workflows
28-
2926
**Reliability & Error Handling:**
3027
- Comprehensive error handling with specific exception types (`DataverseError`, `AuthenticationError`, etc.)
3128
- HTTP retry logic with exponential backoff for resilient operations

β€ŽREADME.mdβ€Ž

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ A Python client library for Microsoft Dataverse that provides a unified interfac
3939
- **πŸ“Ž File Operations**: Upload files to Dataverse file columns with automatic chunking for large files
4040
- **πŸ” Azure Identity**: Built-in authentication using Azure Identity credential providers with comprehensive support
4141
- **πŸ›‘οΈ Error Handling**: Structured exception hierarchy with detailed error context and retry guidance
42-
- **🐼 Pandas Integration**: Preliminary DataFrame-oriented operations for data analysis workflows
4342

4443
## Getting started
4544

@@ -267,7 +266,6 @@ Explore our comprehensive examples in the [`examples/`](examples/) directory:
267266
**πŸš€ Advanced Usage:**
268267
- **[Complete Walkthrough](examples/advanced/complete_walkthrough.py)** - Full feature demonstration with production patterns
269268
- **[File Upload](examples/advanced/file_upload.py)** - Upload files to Dataverse file columns
270-
- **[Pandas Integration](examples/advanced/pandas_integration.py)** - DataFrame-based operations for data analysis
271269

272270
πŸ“– See the [examples README](examples/README.md) for detailed guidance and learning progression.
273271

β€Žexamples/README.mdβ€Ž

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Start here for getting up and running with the SDK:
3232
### πŸ”¬ Advanced Examples (`advanced/`)
3333
Deep-dive into production-ready patterns and specialized functionality:
3434

35-
- **`complete_walkthrough.py`** - **COMPREHENSIVE DEMO** πŸš€
35+
- **`walkthrough.py`** - **COMPREHENSIVE DEMO** πŸš€
3636
- Full SDK feature demonstration with production-ready patterns
3737
- Table creation with custom schemas and enums
3838
- Single and bulk CRUD operations with error handling
@@ -44,9 +44,6 @@ Deep-dive into production-ready patterns and specialized functionality:
4444
- File upload to Dataverse file columns with chunking
4545
- Advanced file handling patterns
4646

47-
- **`pandas_integration.py`** - **DATA ANALYSIS** πŸ“Š
48-
- DataFrame-based operations for data analysis
49-
- Pandas integration patterns
5047

5148
## πŸš€ Getting Started
5249

0 commit comments

Comments
Β (0)