Skip to content

Commit 9014a00

Browse files
authored
updates to drop 2.7 support (Azure#22300)
* updates to drop 2.7 support * update * update * update
1 parent 86f6dc0 commit 9014a00

File tree

41 files changed

+55
-279
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+55
-279
lines changed

sdk/appconfiguration/azure-appconfiguration/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 1.3.1 (Unreleased)
3+
## 1.4.0 (Unreleased)
44

55
### Features Added
66

@@ -10,6 +10,8 @@
1010

1111
### Other Changes
1212

13+
- Python 2.7 and 3.6 are no longer supported. Please use Python version 3.7 or later.
14+
1315
## 1.3.0 (2021-11-10)
1416

1517
### Bugs Fixed

sdk/appconfiguration/azure-appconfiguration/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ Use the client library for App Configuration to create and manage application co
88

99
[Source code](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/appconfiguration/azure-appconfiguration) | [Package (Pypi)][package] | [API reference documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/appconfiguration/azure-appconfiguration) | [Product documentation][appconfig_docs]
1010

11+
## _Disclaimer_
12+
13+
_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_
14+
1115
## Getting started
1216

1317
### Install the package
@@ -20,7 +24,7 @@ pip install azure-appconfiguration
2024

2125
### Prerequisites
2226

23-
* Python 2.7, or 3.5 or later is required to use this package.
27+
* Python 3.7 or later is required to use this package.
2428
* You need an [Azure subscription][azure_sub], and a [Configuration Store][configuration_store] to use this package.
2529

2630
To create a Configuration Store, you can use the Azure Portal or [Azure CLI][azure_cli].
@@ -217,7 +221,7 @@ for item in filtered_listed:
217221

218222
### Async APIs
219223

220-
Async client is supported for python 3.5+.
224+
Async client is supported.
221225
To use the async client library, import the AzureAppConfigurationClient from package azure.appconfiguration.aio instead of azure.appconfiguration
222226

223227
```python

sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# Licensed under the MIT License.
44
# ------------------------------------
55

6-
VERSION = "1.3.1"
6+
VERSION = "1.4.0"

sdk/appconfiguration/azure-appconfiguration/conftest.py

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-e ../../../tools/azure-devtools
22
../../core/azure-core
33
-e ../../identity/azure-identity
4-
aiohttp>=3.0; python_version >= '3.5'
4+
aiohttp>=3.0
55
-e ../../../tools/azure-sdk-tools
66
-e ../../../tools/azure-devtools

sdk/appconfiguration/azure-appconfiguration/setup.cfg

Lines changed: 0 additions & 2 deletions
This file was deleted.

sdk/appconfiguration/azure-appconfiguration/setup.py

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,6 @@
2121
# a-b-c => a.b.c
2222
namespace_name = PACKAGE_NAME.replace("-", ".")
2323

24-
# azure v0.x is not compatible with this package
25-
# azure v0.x used to have a __version__ attribute (newer versions don't)
26-
try:
27-
import azure
28-
29-
try:
30-
ver = azure.__version__
31-
raise Exception(
32-
"This package is incompatible with azure=={}. ".format(ver)
33-
+ 'Uninstall it with "pip uninstall azure".'
34-
)
35-
except AttributeError:
36-
pass
37-
except ImportError:
38-
pass
39-
4024
# Version extraction inspired from 'requests'
4125
with open(os.path.join(package_folder_path, "_version.py"), "r") as fd:
4226
version = re.search(
@@ -75,26 +59,18 @@
7559
classifiers=[
7660
"Development Status :: 5 - Production/Stable",
7761
"Programming Language :: Python",
78-
"Programming Language :: Python :: 2",
79-
"Programming Language :: Python :: 2.7",
8062
"Programming Language :: Python :: 3",
81-
"Programming Language :: Python :: 3.5",
82-
"Programming Language :: Python :: 3.6",
8363
"Programming Language :: Python :: 3.7",
8464
"Programming Language :: Python :: 3.8",
8565
"Programming Language :: Python :: 3.9",
66+
"Programming Language :: Python :: 3.10",
8667
"License :: OSI Approved :: MIT License",
8768
],
8869
zip_safe=False,
8970
packages=find_packages(exclude=exclude_packages),
71+
python_requires=">=3.7",
9072
install_requires=[
9173
"msrest>=0.6.10",
9274
"azure-core<2.0.0,>=1.2.2",
9375
],
94-
extras_require={
95-
":python_version<'3.0'": ["azure-nspkg"],
96-
":python_version<'3.4'": ["enum34>=1.0.4"],
97-
":python_version<'3.5'": ["typing"],
98-
"async:python_version>='3.5'": ["aiohttp>=3.0", "aiodns>=2.0"],
99-
},
10076
)

sdk/appconfiguration/azure-appconfiguration/swagger/README.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

sdk/appconfiguration/azure-appconfiguration/tests/conftest.py

Lines changed: 0 additions & 31 deletions
This file was deleted.

sdk/identity/azure-identity/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 1.7.2 (Unreleased)
3+
## 1.8.0 (Unreleased)
44

55
### Features Added
66

@@ -10,6 +10,8 @@
1010

1111
### Other Changes
1212

13+
- Python 2.7 and 3.6 are no longer supported. Please use Python version 3.7 or later.
14+
1315
## 1.7.1 (2021-11-09)
1416

1517
### Bugs Fixed

0 commit comments

Comments
 (0)