Skip to content

Commit

Permalink
Merge branch 'main' into docs/community_usage
Browse files Browse the repository at this point in the history
  • Loading branch information
SharonHart authored Nov 15, 2024
2 parents 27c254b + a0a5f89 commit 75243ae
Show file tree
Hide file tree
Showing 32 changed files with 339 additions and 206 deletions.
8 changes: 5 additions & 3 deletions .pipelines/templates/build-and-push-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ steps:
- task: DockerCompose@0
displayName: Push Presidio Images to ACR
inputs:
action: 'Push services'
action: Push services
dockerComposeFile: ${{ parameters.DOCKER_COMPOSE_FILE }}
containerregistrytype: 'Container Registry'
dockerRegistryEndpoint: 'presidio-acr'
containerregistrytype: Azure Container Registry
# Passing as an object since by default a double forward-slash is added to the end of the registry name (https://presidio.azurecr.io//oauth2/exchange)
azureContainerRegistry: '{"loginServer":"$(ACR_REGISTRY_NAME).azurecr.io"}'
azureSubscriptionEndpoint: ${{ parameters.AZURE_SUBSCRIPTION }}
projectName: 'microsoft_presidio'
dockerComposeFileArgs: |
REGISTRY_NAME=${{ parameters.REGISTRY_NAME }}
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/templates/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ steps:

- task: UsePythonVersion@0
inputs:
versionSpec: '3.9'
versionSpec: '3.10'

- script: |
set -eux # fail on error
Expand Down
20 changes: 10 additions & 10 deletions .pipelines/templates/lint-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ stages:
vmImage: 'ubuntu-latest'
strategy:
matrix:
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'
Python310:
python.version: '3.10'
Python311:
python.version: '3.11'
Python312:
python.version: '3.12'

steps:
- task: UsePythonVersion@0
Expand All @@ -54,14 +54,14 @@ stages:
vmImage: 'ubuntu-latest'
strategy:
matrix:
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'
Python310:
python.version: '3.10'
Python311:
python.version: '3.11'
Python312:
python.version: '3.12'

steps:
- task: UsePythonVersion@0
Expand All @@ -76,14 +76,14 @@ stages:
vmImage: 'ubuntu-latest'
strategy:
matrix:
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'
Python310:
python.version: '3.10'
Python311:
python.version: '3.11'
Python312:
python.version: '3.12'

steps:
- task: UsePythonVersion@0
Expand All @@ -98,14 +98,14 @@ stages:
vmImage: 'ubuntu-latest'
strategy:
matrix:
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'
Python310:
python.version: '3.10'
Python311:
python.version: '3.11'
Python312:
python.version: '3.12'

steps:
- task: UsePythonVersion@0
Expand All @@ -120,14 +120,14 @@ stages:
vmImage: 'ubuntu-latest'
strategy:
matrix:
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'
Python310:
python.version: '3.10'
Python311:
python.version: '3.11'
Python312:
python.version: '3.12'

steps:
- task: UsePythonVersion@0
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/templates/test-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pool:
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.9'
versionSpec: '3.10'
addToPath: true
architecture: 'x64'

Expand Down
5 changes: 3 additions & 2 deletions azure-pipelines-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ stages:
projectName: 'microsoft_presidio'
dockerComposeCommand: pull
dockerComposeFile: docker-compose.yml
containerregistrytype: 'Container Registry'
dockerRegistryEndpoint: 'presidio-acr'
containerregistrytype: Azure Container Registry
azureSubscriptionEndpoint: $(ACR_AZURE_SUBSCRIPTION)
azureContainerRegistry: '$(ACR_REGISTRY_NAME).azurecr.io'
dockerComposeFileArgs: |
REGISTRY_NAME=$(REGISTRY_NAME)
TAG=$(TAG)
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ stages:
pool:
vmImage: 'ubuntu-latest'
variables:
REGISTRY_NAME: '$(ACR_REGISTRY_NAME).azurecr.io/'
REGISTRY_NAME: '$(ACR_REGISTRY_NAME).azurecr.io'
TAG: ':$(Build.BuildId)'
steps:
- task: DockerCompose@0
Expand Down
1 change: 0 additions & 1 deletion docker-compose-image.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3'
services:
presidio-image-redactor:
image: ${REGISTRY_NAME}${IMAGE_PREFIX}presidio-image-redactor${TAG}
Expand Down
1 change: 0 additions & 1 deletion docker-compose-text.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3'
services:
presidio-anonymizer:
image: ${REGISTRY_NAME}${IMAGE_PREFIX}presidio-anonymizer${TAG}
Expand Down
1 change: 0 additions & 1 deletion docker-compose-transformers.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3'
services:
presidio-anonymizer:
image: ${REGISTRY_NAME}${IMAGE_PREFIX}presidio-anonymizer${TAG}
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3'
services:
presidio-anonymizer:
image: ${REGISTRY_NAME}${IMAGE_PREFIX}presidio-anonymizer${TAG}
Expand Down
3 changes: 1 addition & 2 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ Presidio suite using `pip` (as Python packages) or using `Docker` (As containeri

Presidio is supported for the following python versions:

* 3.7
* 3.8
* 3.9
* 3.10
* 3.11
* 3.12

### PII anonymization on text

Expand Down
8 changes: 4 additions & 4 deletions docs/samples/python/csv_sample_data/test_structured.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
id,name,email,street,city,state,postal_code
1,John Doe,john.doe@example.com,123 Main St,Anytown,CA,12345
2,Jane Smith,jane.smith@example.com,456 Elm St,Somewhere,TX,67890
3,Alice Johnson,alice.johnson@example.com,789 Pine St,Elsewhere,NY,11223
id,name,email,street,city,state,non_pii
1,John Doe,john.doe@example.com,123 Main St,Anytown,CA,reallynotpii
2,Jane Smith,jane.smith@example.com,456 Elm St,Somewhere,TX,reallynotapii
3,Alice Johnson,alice.johnson@example.com,789 Pine St,Elsewhere,NY,reallynotapiiatall
Loading

0 comments on commit 75243ae

Please sign in to comment.