Skip to content

Commit 772054c

Browse files
authored
drop py27 support (Azure#22531)
* drop py27 support * update * update
1 parent e2b5852 commit 772054c

File tree

12 files changed

+9
-91
lines changed

12 files changed

+9
-91
lines changed

sdk/core/azure-core/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.21.2 (Unreleased)
3+
## 1.22.0 (Unreleased)
44

55
### Features Added
66

@@ -12,6 +12,8 @@
1212

1313
### Other Changes
1414

15+
- Python 2.7 is no longer supported. Please use Python version 3.6 or later.
16+
1517
## 1.21.1 (2021-12-06)
1618

1719
### Other Changes

sdk/core/azure-core/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ If you are a client library developer, please reference [client library develope
1010

1111
## _Disclaimer_
1212

13-
_Azure SDK Python packages support for Python 2.7 is ending 01 January 2022. For more information and questions, please refer to <https://github.com/Azure/azure-sdk-for-python/issues/20691>_
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>_
1414

1515
## Getting started
1616

sdk/core/azure-core/azure/core/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
VERSION = "1.21.2"
12+
VERSION = "1.22.0"
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
trio; python_version >= '3.5'
2-
aiohttp>=3.0; python_version >= '3.5'
1+
trio
2+
aiohttp>=3.0
33
typing_extensions>=3.7.2
44
opencensus>=0.6.0
55
opencensus-ext-azure
66
opencensus-ext-threading
7-
mock; python_version < '3.3'
87
-e ../../../tools/azure-sdk-tools
98
-e ../../../tools/azure-devtools
109
-e tests/testserver_tests/coretestserver

sdk/core/azure-core/samples/conftest.py

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

sdk/core/azure-core/setup.cfg

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

sdk/core/azure-core/setup.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@
4747
classifiers=[
4848
"Development Status :: 5 - Production/Stable",
4949
'Programming Language :: Python',
50-
'Programming Language :: Python :: 2',
51-
'Programming Language :: Python :: 2.7',
50+
"Programming Language :: Python :: 3 :: Only",
5251
'Programming Language :: Python :: 3',
5352
'Programming Language :: Python :: 3.6',
5453
'Programming Language :: Python :: 3.7',
@@ -66,13 +65,9 @@
6665
package_data={
6766
'pytyped': ['py.typed'],
6867
},
68+
python_requires=">=3.6",
6969
install_requires=[
7070
'requests>=2.18.4',
7171
'six>=1.11.0',
7272
],
73-
extras_require={
74-
":python_version<'3.0'": ['azure-nspkg'],
75-
":python_version<'3.4'": ['enum34>=1.0.4'],
76-
":python_version<'3.5'": ['typing'],
77-
}
7873
)

sdk/core/azure-core/tests/async_tests/conftest.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,6 @@ def testserver():
8282
yield
8383
terminate_testserver(server)
8484

85-
86-
# Ignore collection of async tests for Python 2
87-
collect_ignore_glob = []
88-
if sys.version_info < (3, 5):
89-
collect_ignore_glob.append("*_async.py")
90-
9185
@pytest.fixture
9286
def client(port):
9387
return AsyncTestRestClient(port)
94-
95-
import sys
96-
97-
# Ignore collection of async tests for Python 2
98-
collect_ignore = []
99-
if sys.version_info < (3, 5):
100-
collect_ignore.append("async_tests")

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@
3434
from rest_client import TestRestClient
3535
import sys
3636

37-
# Ignore collection of async tests for Python 2
38-
collect_ignore = []
39-
if sys.version_info < (3, 5):
40-
collect_ignore.append("async_tests")
41-
42-
4337
# If opencensus is loadable while doing these tests, register an empty tracer to avoid this:
4438
# https://github.com/census-instrumentation/opencensus-python/issues/442
4539
try:

sdk/core/ci.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ extends:
3131
template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
3232
parameters:
3333
ServiceDirectory: core
34-
MatrixConfigs:
35-
- Name: core_ci_matrix
36-
Path: sdk/core/platform-matrix.json
37-
Selection: sparse
38-
GenerateVMJobs: true
3934
Artifacts:
4035
- name: azure-core
4136
safeName: azurecore

0 commit comments

Comments
 (0)