Skip to content

Commit 5d9a0c2

Browse files
hallvictoriaVictoria Hall
andauthored
build: rename blob extension (#30)
* rename to azurefunctions-extensions-bindings-blob * lint + updated tests * typos + lint * lint * lint * lint * lint * final lint --------- Co-authored-by: Victoria Hall <[email protected]>
1 parent f4e623d commit 5d9a0c2

32 files changed

+71
-53
lines changed

.github/workflows/ci_ut_ext_blob_workflow.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ on:
44
push:
55
branches: [ dev, main, release/* ]
66
paths:
7-
- 'azure-functions-extension-blob/**'
7+
- 'azurefunctions-extensions-bindings-blob/**'
88
pull_request:
99
branches: [ dev, main, release/* ]
1010
paths:
11-
- 'azure-functions-extension-blob/**'
11+
- 'azurefunctions-extensions-bindings-blob/**'
1212

1313
jobs:
1414
build:
@@ -29,13 +29,13 @@ jobs:
2929
python-version: ${{ matrix.python-version }}
3030

3131
- name: Install dependencies
32-
working-directory: azure-functions-extension-blob
32+
working-directory: azurefunctions-extensions-bindings-blob
3333
run: |
3434
python -m pip install --upgrade pip
3535
python -m pip install -U -e .[dev]
3636
3737
- name: Run Unit Tests
38-
working-directory: azure-functions-extension-blob
38+
working-directory: azurefunctions-extensions-bindings-blob
3939
env:
4040
AzureWebJobsStorage: ${{ secrets.AzureWebJobsStorage }}
4141
run: |
@@ -46,7 +46,7 @@ jobs:
4646
# env:
4747
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4848
with:
49-
file: ./azure-functions-extension-blob/coverage.xml
49+
file: ./azurefunctions-extensions-bindings-blob/coverage.xml
5050
flags: unittests
5151
name: codecov
5252
fail_ci_if_error: false

.github/workflows/linting_extension_blob.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
###########################
66
###########################
77

8-
name: Lint azure-functions-extension-blob
8+
name: Lint azurefunctions-extensions-bindings-blob
99

1010
#
1111
# Documentation:
@@ -23,22 +23,22 @@ on:
2323
- main
2424
- 'release/*'
2525
paths:
26-
- 'azure-functions-extension-blob/**'
26+
- 'azurefunctions-extensions-bindings-blob/**'
2727
pull_request:
2828
branches:
2929
- dev
3030
- main
3131
- 'release/*'
3232
paths:
33-
- 'azure-functions-extension-blob/**'
33+
- 'azurefunctions-extensions-bindings-blob/**'
3434

3535
###############
3636
# Set the Job #
3737
###############
3838
jobs:
3939
build:
4040
# Name the Job
41-
name: Lint azure-functions-extension-blob
41+
name: Lint azurefunctions-extensions-bindings-blob
4242
# Set the agent to run on
4343
runs-on: ubuntu-latest
4444
permissions:
@@ -74,9 +74,9 @@ jobs:
7474
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7575
VALIDATE_PYTHON: true
7676
VALIDATE_PYTHON_BLACK: true # same as above
77-
VALIDATE_PYTHON_ISORT: true # same as above
77+
# VALIDATE_PYTHON_ISORT: true # same as above TODO: fix conflicting linters
7878
PYTHON_ISORT_CONFIG_FILE: .isort.cfg
79-
FILTER_REGEX_INCLUDE: azure-functions-extension-blob/*
79+
FILTER_REGEX_INCLUDE: azurefunctions-extensions-bindings-blob/*
8080
DEFAULT_BRANCH: origin/dev
8181

8282
send-notification:
@@ -90,7 +90,7 @@ jobs:
9090
with:
9191
github-token: ${{ github.token }}
9292
ms-teams-webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }}
93-
notification-summary: "Python Extension Lint azure-functions-extension-blob Failed"
93+
notification-summary: "Python Extension Lint azurefunctions-extensions-bindings-blob Failed"
9494
notification-color: FF0000
9595
timezone: America/Denver
9696
verbose-logging: false
@@ -101,7 +101,7 @@ jobs:
101101
with:
102102
github-token: ${{ github.token }}
103103
ms-teams-webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }}
104-
notification-summary: "Python Extension Lint azure-functions-extension-blob Passed"
104+
notification-summary: "Python Extension Lint azurefunctions-extensions-bindings-blob Passed"
105105
notification-color: 008000
106106
timezone: America/Denver
107107
verbose-logging: false

azure-functions-extension-blob/README.md renamed to azurefunctions-extensions-bindings-blob/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ Blob client types can be generated from:
77
* Blob Triggers
88
* Blob Input
99

10-
[Source code](https://github.com/Azure/azure-functions-python-extensions/tree/main/azure-functions-extension-blob)
10+
[Source code](https://github.com/Azure/azure-functions-python-extensions/tree/main/azurefunctions-extensions-bindings-blob)
1111
| Package (PyPi)
1212
| Package (Conda)
1313
| API reference documentation
1414
| Product documentation
15-
| [Samples](hhttps://github.com/Azure/azure-functions-python-extensions/tree/main/azure-functions-extension-blob/samples)
15+
| [Samples](hhttps://github.com/Azure/azure-functions-python-extensions/tree/main/azurefunctions-extensions-bindings-blob/samples)
1616

1717

1818
## Getting started
@@ -27,7 +27,7 @@ Blob client types can be generated from:
2727
Install the Azure Functions Extension Blob library for Python with pip:
2828

2929
```bash
30-
pip install azure-functions-extension-blob
30+
pip install azurefunctions-extensions-bindings-blob
3131
```
3232

3333
### Create a storage account
@@ -55,7 +55,7 @@ properties and methods available as seen in the Azure Storage Blob library for P
5555
```python
5656
import logging
5757
import azure.functions as func
58-
import azure.functions.extension.blob as blob
58+
import azurefunctions.extensions.bindings.blob as blob
5959

6060
@app.blob_trigger(arg_name="client",
6161
path="PATH/TO/BLOB",
@@ -86,19 +86,19 @@ This list can be used for reference to catch thrown exceptions. To get the speci
8686

8787
### More sample code
8888

89-
Get started with our [Blob samples](hhttps://github.com/Azure/azure-functions-python-extensions/tree/main/azure-functions-extension-blob/samples).
89+
Get started with our [Blob samples](hhttps://github.com/Azure/azure-functions-python-extensions/tree/main/azurefunctions-extensions-bindings-blob/samples).
9090

9191
Several samples are available in this GitHub repository. These samples provide example code for additional scenarios commonly encountered while working with Storage Blobs:
9292

93-
* [blob_samples_blobclient](https://github.com/Azure/azure-functions-python-extensions/tree/main/azure-functions-extension-blob/samples/blob_samples_blobclient) - Examples for using the BlobClient type:
93+
* [blob_samples_blobclient](https://github.com/Azure/azure-functions-python-extensions/tree/main/azurefunctions-extensions-bindings-blob/samples/blob_samples_blobclient) - Examples for using the BlobClient type:
9494
* From BlobTrigger
9595
* From BlobInput
9696

97-
* [blob_samples_containerclient](https://github.com/Azure/azure-functions-python-extensions/tree/main/azure-functions-extension-blob/samples/blob_samples_containerclient) - Examples for using the ContainerClient type:
97+
* [blob_samples_containerclient](https://github.com/Azure/azure-functions-python-extensions/tree/main/azurefunctions-extensions-bindings-blob/samples/blob_samples_containerclient) - Examples for using the ContainerClient type:
9898
* From BlobTrigger
9999
* From BlobInput
100100

101-
* [blob_samples_storagestreamdownloader](https://github.com/Azure/azure-functions-python-extensions/tree/main/azure-functions-extension-blob/samples/blob_samples_storagestreamdownloader) - Examples for using the StorageStreamDownloader type:
101+
* [blob_samples_storagestreamdownloader](https://github.com/Azure/azure-functions-python-extensions/tree/main/azurefunctions-extensions-bindings-blob/samples/blob_samples_storagestreamdownloader) - Examples for using the StorageStreamDownloader type:
102102
* From BlobTrigger
103103
* From BlobInput
104104

0 commit comments

Comments
 (0)