Skip to content

Commit 97d44fa

Browse files
authored
Merge pull request #122 from AzureAD/drop-py27
Dropping Python 2.7
2 parents d7f7623 + 144a139 commit 97d44fa

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

.github/workflows/python-package.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
python-version: [3.7, 3.8, 3.9, 2.7]
20+
python-version: [3.7, 3.8, 3.9]
2121
os: [ubuntu-latest, windows-latest, macos-latest]
2222
include:
2323
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-environment-variables-in-a-matrix
@@ -27,8 +27,6 @@ jobs:
2727
toxenv: "py38"
2828
- python-version: 3.9
2929
toxenv: "py39"
30-
- python-version: 2.7
31-
toxenv: "py27"
3230
- python-version: 3.9
3331
os: ubuntu-latest
3432
lint: "true"

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ persistence.save(json.dumps(data))
8989
assert json.loads(persistence.load()) == data
9090
```
9191

92+
## Python version support policy
93+
94+
Python versions which are 6 months older than their
95+
[end-of-life cycle defined by Python Software Foundation (PSF)](https://devguide.python.org/versions/#versions)
96+
will not receive new feature updates from this library.
97+
9298

9399
## Community Help and Support
94100

setup.cfg

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
# https://setuptools.readthedocs.io/en/latest/setuptools.html#configuring-setup-using-setup-cfg-files
22

33
[bdist_wheel]
4-
universal=1
4+
universal=0
55

66
[metadata]
77
license = MIT
88
project_urls = Changelog = https://github.com/AzureAD/microsoft-authentication-extensions-for-python/releases
99
classifiers =
1010
License :: OSI Approved :: MIT License
1111
Development Status :: 5 - Production/Stable
12+
Programming Language :: Python :: 3 :: Only
13+
Programming Language :: Python :: 3
14+
Programming Language :: Python :: 3.7
15+
Programming Language :: Python :: 3.8
16+
Programming Language :: Python :: 3.9
1217
description = Microsoft Authentication Library extensions (MSAL EX) provides a persistence API that can save your data on disk, encrypted on Windows, macOS and Linux. Concurrent data access will be coordinated by a file lock mechanism.

setup.py

+3-10
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,13 @@
2020
long_description=long_description,
2121
long_description_content_type="text/markdown",
2222
package_data={'': ['LICENSE']},
23+
python_requires=">=3.7",
2324
install_requires=[
2425
'msal>=0.4.1,<2.0.0',
2526

26-
# In order to implement these requirements:
27-
# Lowerbound = (1.6 if playform_system == 'Windows' else 1.0)
28-
# Upperbound < (3 if python_version >= '3.5' else 2)
29-
# The following 4 lines use the `and` syntax defined here:
30-
# https://www.python.org/dev/peps/pep-0508/#grammar
31-
"portalocker<3,>=1.0;python_version>='3.5' and platform_system!='Windows'",
32-
"portalocker<2,>=1.0;python_version=='2.7' and platform_system!='Windows'",
33-
"portalocker<3,>=1.6;python_version>='3.5' and platform_system=='Windows'",
34-
"portalocker<2,>=1.6;python_version=='2.7' and platform_system=='Windows'",
27+
"portalocker<3,>=1.0;platform_system!='Windows'",
28+
"portalocker<3,>=1.6;platform_system=='Windows'",
3529

36-
"pathlib2;python_version<'3.0'",
3730
## We choose to NOT define a hard dependency on this.
3831
# "pygobject>=3,<4;platform_system=='Linux'",
3932

0 commit comments

Comments
 (0)