Skip to content

Commit 348ddf0

Browse files
[translation] updates to drop 2.7 support (Azure#22222)
* updates to drop python 2.7 * fix * feedback
1 parent 677b2a1 commit 348ddf0

File tree

7 files changed

+12
-28
lines changed

7 files changed

+12
-28
lines changed

sdk/translation/azure-ai-translation-document/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
### Bugs Fixed
1010

1111
### Other Changes
12+
- Python 2.7 and 3.6 are no longer supported. Please use Python version 3.7 or later.
1213

1314
## 1.0.0b5 (2021-09-08)
1415

sdk/translation/azure-ai-translation-document/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@ and dialects while preserving document structure and data format. Use the client
99

1010
[Source code][python-dt-src] | [Package (PyPI)][python-dt-pypi] | [API reference documentation][python-dt-ref-docs] | [Product documentation][python-dt-product-docs] | [Samples][python-dt-samples]
1111

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

1418
### Prerequisites
15-
* Python 2.7, or 3.6 or later is required to use this package.
19+
* Python 3.7 or later is required to use this package.
1620
* You must have an [Azure subscription][azure_subscription] and a
1721
[Translator resource][DT_resource] to use this package.
1822

@@ -396,7 +400,7 @@ These code samples show common scenario operations with the Azure Document Trans
396400

397401

398402
### Async samples
399-
This library also includes a complete async API supported on Python 3.6+. To use it, you must
403+
This library also includes a complete set of async APIs. To use them, you must
400404
first install an async transport, such as [aiohttp](https://pypi.org/project/aiohttp/). Async clients
401405
are found under the `azure.ai.translation.document.aio` namespace.
402406

sdk/translation/azure-ai-translation-document/dev_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
../../core/azure-core
44
../../storage/azure-storage-blob
55
-e ../../identity/azure-identity
6-
aiohttp>=3.0; python_version >= '3.5'
6+
aiohttp>=3.0
77
pytz

sdk/translation/azure-ai-translation-document/samples/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ urlFragment: documenttranslation-samples
1212
# Samples for Azure Document Translation client library for Python
1313

1414
These code samples show common scenario operations with the Azure Document Translation client library.
15-
The async versions of the samples require Python 3.6 or later.
1615

1716
You can authenticate your client with a Document Translation API key or through Azure Active Directory with a token credential from [azure-identity][azure_identity]:
1817
* See [sample_authentication.py][sample_authentication] and [sample_authentication_async.py][sample_authentication_async] for how to authenticate in the above cases.
@@ -29,7 +28,7 @@ These sample programs show common scenarios for the Document Translation client'
2928

3029

3130
## Prerequisites
32-
* Python 2.7, or 3.6 or later is required to use this package (3.6 or later if using asyncio)
31+
* Python 3.7 or later is required to use this package
3332
* You must have an [Azure subscription][azure_subscription] and an
3433
[Azure Translator account][azure_document_translation_account] to run these samples.
3534

sdk/translation/azure-ai-translation-document/setup.cfg

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

sdk/translation/azure-ai-translation-document/setup.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,12 @@
3737
classifiers=[
3838
"Development Status :: 4 - Beta",
3939
'Programming Language :: Python',
40-
'Programming Language :: Python :: 2',
41-
'Programming Language :: Python :: 2.7',
40+
"Programming Language :: Python :: 3 :: Only",
4241
'Programming Language :: Python :: 3',
43-
'Programming Language :: Python :: 3.6',
4442
'Programming Language :: Python :: 3.7',
4543
'Programming Language :: Python :: 3.8',
4644
'Programming Language :: Python :: 3.9',
45+
'Programming Language :: Python :: 3.10',
4746
'License :: OSI Approved :: MIT License',
4847
],
4948
packages=find_packages(exclude=[
@@ -53,15 +52,12 @@
5352
'azure.ai',
5453
'azure.ai.translation'
5554
]),
55+
python_requires=">=3.7",
5656
install_requires=[
5757
"azure-core<2.0.0,>=1.14.0",
5858
"msrest>=0.6.21",
5959
'six>=1.11.0'
6060
],
61-
extras_require={
62-
":python_version<'3.0'": ['azure-ai-translation-nspkg'],
63-
":python_version<'3.5'": ['typing'],
64-
},
6561
project_urls={
6662
'Bug Reports': 'https://github.com/Azure/azure-sdk-for-python/issues',
6763
'Source': 'https://github.com/Azure/azure-sdk-python',

sdk/translation/azure-ai-translation-document/tests/conftest.py

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

0 commit comments

Comments
 (0)