Skip to content

Commit

Permalink
Add python 3.12 and drop python 3.7 support (Azure#33685)
Browse files Browse the repository at this point in the history
* Add python 3.12 support

* Drop python 3.7
  • Loading branch information
YalinLi0312 authored Jan 10, 2024
1 parent 1931a7a commit da54de9
Show file tree
Hide file tree
Showing 24 changed files with 31 additions and 39 deletions.
2 changes: 2 additions & 0 deletions sdk/appconfiguration/azure-appconfiguration/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
- Bumped minimum dependency on `azure-core` to `>=1.28.0`.
- Updated the default `api_version` to "2023-10-01".
- Removed `etag` keyword documentation in `set_read_only()` as it's not in use.
- Added support for Python 3.12.
- Python 3.7 is no longer supported. Please use Python version 3.8 or later.

## 1.5.0b3 (2023-10-10)

Expand Down
7 changes: 1 addition & 6 deletions sdk/appconfiguration/azure-appconfiguration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ Use the client library for App Configuration to create and manage application co
| [API reference documentation](https://learn.microsoft.com/python/api/azure-appconfiguration/azure.appconfiguration?view=azure-python)
| [Product documentation][appconfig_docs]

## _Disclaimer_

_Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_
_Python 3.7 or later is required to use this package. For more details, please refer to [Azure SDK for Python version support policy](https://github.com/Azure/azure-sdk-for-python/wiki/Azure-SDKs-Python-version-support-policy)._

## Getting started

### Install the package
Expand All @@ -29,7 +24,7 @@ pip install azure-appconfiguration

### Prerequisites

* Python 3.7 or later is required to use this package.
* Python 3.8 or later is required to use this package.
* You need an [Azure subscription][azure_sub], and a [Configuration Store][configuration_store] to use this package.

To create a Configuration Store, you can use the Azure Portal or [Azure CLI][azure_cli].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ products:

## Prerequisites

* Python 3.7 or later is required to use this package.
* Python 3.8 or later is required to use this package.
* You must have an [Azure subscription][azure_sub], and a [Configuration Store][configuration_store] to use this package.

To create a Configuration Store, you can either use [Azure Portal](https://ms.portal.azure.com/#create/Microsoft.Azconfig) or if you are using [Azure CLI][azure_cli] you can simply run the following snippet in your console:
Expand Down
3 changes: 1 addition & 2 deletions sdk/appconfiguration/azure-appconfiguration/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand All @@ -67,7 +66,7 @@
],
zip_safe=False,
packages=find_packages(exclude=exclude_packages),
python_requires=">=3.7",
python_requires=">=3.8",
install_requires=[
"azure-core<2.0.0,>=1.28.0",
"isodate>=0.6.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# App config Performance Tests

In order to run the performance tests, the `devtools_testutils` package must be installed. This is done as part of the `dev_requirements`.
Start be creating a new virtual environment for your perf tests. This will need to be a Python 3 environment, preferably >=3.7.
Start be creating a new virtual environment for your perf tests. This will need to be a Python 3 environment, preferably >=3.8.

### Setup for test resources

Expand Down
2 changes: 2 additions & 0 deletions sdk/containerregistry/azure-containerregistry/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
### Bugs Fixed

### Other Changes
- Added support for Python 3.12.
- Python 3.7 is no longer supported. Please use Python version 3.8 or later.

## 1.2.0 (2023-07-11)

Expand Down
7 changes: 1 addition & 6 deletions sdk/containerregistry/azure-containerregistry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ Use the client library for Azure Container Registry to:
| [REST API documentation][rest_docs]
| [Product documentation][product_docs]

## _Disclaimer_

_Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_
_Python 3.7 or later is required to use this package. For more details, please refer to [Azure SDK for Python version support policy](https://github.com/Azure/azure-sdk-for-python/wiki/Azure-SDKs-Python-version-support-policy)._

## Getting started

### Install the package
Expand All @@ -33,7 +28,7 @@ pip install --pre azure-containerregistry

### Prerequisites

* Python 3.7 or later is required to use this package.
* Python 3.8 or later is required to use this package.
* You need an [Azure subscription][azure_sub] and a [Container Registry account][container_registry_docs] to use this package.

To create a new Container Registry, you can use the [Azure Portal][container_registry_create_portal],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ These code samples show common scenario operations with the Azure Container Regi
|[sample_set_get_image.py][set_get_image] ([sample_set_get_image_async.py][set_get_image_async]) | Set and get a manifest, and upload and download a blob to and from a repository |

### Prerequisites
* Python 3.7 or later is required to use this package.
* Python 3.8 or later is required to use this package.
* You need an [Azure subscription][azure_sub] and a [Container Registry account][container_registry_docs] to use this package.

## Setup
Expand Down
4 changes: 2 additions & 2 deletions sdk/containerregistry/azure-containerregistry/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
],
packages=find_packages(
Expand All @@ -54,7 +54,7 @@
"azure",
]
),
python_requires=">=3.7",
python_requires=">=3.8",
install_requires=[
"azure-core>=1.24.0,<2.0.0",
"isodate>=0.6.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

In order to run the performance tests, the `devtools_testutils` package must be installed. This is done as part of the
`dev_requirements` install. Start by creating a new virtual environment for your perf tests. This will need to be a
Python 3 environment, preferably >=3.7.
Python 3 environment, preferably >=3.8.

### Setup for test resources

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
### Other Changes

- Changed the default polling interval from 30s to 5s.
- Python 3.7 is no longer supported. Please use Python version 3.8 or later.

## 1.0.0b1 (2023-11-17)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Older API versions are supported in `azure-ai-formrecognizer`, please see the [M

#### Prequisites

- Python 3.7 or later is required to use this package.
- Python 3.8 or later is required to use this package.
- You need an [Azure subscription][azure_sub] to use this package.
- An existing Azure AI Document Intelligence instance.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ All of these samples need the endpoint to your Document Intelligence resource ([
You can check all samples from [here][sample_path].

## Prerequisites
* Python 3.7 or later is required to use this package
* Python 3.8 or later is required to use this package
* You must have an [Azure subscription][azure_subscription] and an
[Azure Document Intelligence account][azure_document_intelligence_account] to run these samples.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand All @@ -68,5 +67,5 @@
"azure-core<2.0.0,>=1.28.0",
"typing-extensions>=4.3.0; python_version<'3.8.0'",
],
python_requires=">=3.7",
python_requires=">=3.8",
)
2 changes: 2 additions & 0 deletions sdk/formrecognizer/azure-ai-formrecognizer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
### Bugs Fixed

### Other Changes
- Added support for Python 3.12.
- Python 3.7 is no longer supported. Please use Python version 3.8 or later.

## 3.3.2 (2023-11-07)

Expand Down
2 changes: 1 addition & 1 deletion sdk/formrecognizer/azure-ai-formrecognizer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Azure Document Intelligence ([previously known as Form Recognizer][service-renam

### Prerequisites

* Python 3.7 or later is required to use this package.
* Python 3.8 or later is required to use this package.
* You must have an [Azure subscription][azure_subscription] and a
[Cognitive Services or Form Recognizer resource][FR_or_CS_resource] to use this package.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ All of these samples need the endpoint to your Form Recognizer resource ([instru
Please see the samples [here][v3.0.0-samples-tag].

## Prerequisites
* Python 3.7 or later is required to use this package
* Python 3.8 or later is required to use this package
* You must have an [Azure subscription][azure_subscription] and an
[Azure Form Recognizer account][azure_form_recognizer_account] to run these samples.

Expand Down
4 changes: 2 additions & 2 deletions sdk/formrecognizer/azure-ai-formrecognizer/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
'Programming Language :: Python',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'License :: OSI Approved :: MIT License',
],
zip_safe=False,
Expand All @@ -67,7 +67,7 @@
package_data={
'azure.ai.formrecognizer': ['py.typed'],
},
python_requires=">=3.7",
python_requires=">=3.8",
install_requires=[
"azure-core<2.0.0,>=1.23.0",
"msrest>=0.6.21",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Form Recognizer Performance Tests

In order to run the performance tests, the `devtools_testutils` package must be installed. This is done as part of the `dev_requirements` install.
Start by creating a new virtual environment for your perf tests. This will need to be a Python 3 environment, preferably >=3.7.
Start by creating a new virtual environment for your perf tests. This will need to be a Python 3 environment, preferably >=3.8.

### Setup for test resources

Expand Down
2 changes: 2 additions & 0 deletions sdk/tables/azure-data-tables/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
### Other Changes
* Refactored batching code to use latest Core models and improve typing.
* Added a public type `EntityMetadata`, it is used in `TableEntity`'s metadata.
* Added support for Python 3.12.
* Python 3.7 is no longer supported. Please use Python version 3.8 or later.

## 12.4.4 (2023-09-14)

Expand Down
7 changes: 1 addition & 6 deletions sdk/tables/azure-data-tables/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,11 @@ Please note, this package is a replacement for [`azure-cosmosdb-tables`](https:/
| [API reference documentation][Tables_ref_docs]
| [Samples][Tables_samples]

## _Disclaimer_

_Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_
_Python 3.7 or later is required to use this package. For more details, please refer to [Azure SDK for Python version support policy](https://github.com/Azure/azure-sdk-for-python/wiki/Azure-SDKs-Python-version-support-policy)._

## Getting started
The Azure Tables SDK can access an Azure Storage or CosmosDB account.

### Prerequisites
* Python 3.7 or later is required to use this package.
* Python 3.8 or later is required to use this package.
* You must have an [Azure subscription][azure_subscription] and either
* an [Azure Storage account][azure_storage_account] or
* an [Azure Cosmos Account][azure_cosmos_account].
Expand Down
2 changes: 1 addition & 1 deletion sdk/tables/azure-data-tables/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ These sample programs show common scenarios for the Tables client's offerings.


### Prerequisites
* Python 3.7 or later is required to use this package.
* Python 3.8 or later is required to use this package.
* You must have an [Azure subscription](https://azure.microsoft.com/free/) and either an
[Azure storage account](https://docs.microsoft.com/azure/storage/common/storage-account-overview) or an [Azure Cosmos Account](https://docs.microsoft.com/azure/cosmos-db/account-overview) to use this package.

Expand Down
4 changes: 2 additions & 2 deletions sdk/tables/azure-data-tables/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
],
zip_safe=False,
Expand All @@ -65,7 +65,7 @@
"azure.data",
]
),
python_requires=">=3.7",
python_requires=">=3.8",
install_requires=[
"azure-core<2.0.0,>=1.29.4",
"yarl<2.0,>=1.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Tables Performance Tests

In order to run the performance tests, the `devtools_testutils` package must be installed. This is done as part of the `dev_requirements`.
Start be creating a new virtual environment for your perf tests. This will need to be a Python 3 environment, preferably >=3.7.
Start be creating a new virtual environment for your perf tests. This will need to be a Python 3 environment, preferably >=3.8.
T1 perf tests are not available at this time.

### Setup for test resources
Expand Down

0 comments on commit da54de9

Please sign in to comment.