Skip to content

Commit

Permalink
Merge pull request #97 from AzureAD/allow-portalocker-2
Browse files Browse the repository at this point in the history
Allow portalocker 2 on Python 3.5+
  • Loading branch information
rayluo committed Aug 30, 2021
2 parents 79ba947 + 3c99901 commit 26240cb
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,17 @@
package_data={'': ['LICENSE']},
install_requires=[
'msal>=0.4.1,<2.0.0',
"portalocker~=1.6;platform_system=='Windows'",
"portalocker~=1.0;platform_system!='Windows'",

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

"pathlib2;python_version<'3.0'",
## We choose to NOT define a hard dependency on this.
# "pygobject>=3,<4;platform_system=='Linux'",
Expand Down

0 comments on commit 26240cb

Please sign in to comment.