Skip to content

Commit f8bbee2

Browse files
committed
Use markers for Python 2-only dependencies.
1 parent ac5c101 commit f8bbee2

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

CHANGES.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ChangeLog
44
`1.5.1 (unreleased) <https://github.com/scaleway/python-scaleway/compare/v1.5.0...develop>`_
55
--------------------------------------------------------------------------------------------
66

7-
* No changes yet.
7+
* Use markers for Python 2-only dependencies.
88

99

1010
`1.5.0 (2016-12-19) <https://github.com/scaleway/python-scaleway/compare/v1.4.1...v1.5.0>`_

setup.py

+5-8
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,11 @@
2828

2929
DEPENDENCIES = [
3030
'slumber >= 0.6.2',
31-
'six']
32-
33-
# Packages required to handle SNI, only for Python2.
34-
if sys.version_info.major == 2:
35-
DEPENDENCIES += [
36-
'pyOpenSSL',
37-
'ndg-httpsclient',
38-
'pyasn1']
31+
'six',
32+
# Packages required to handle SNI, only for Python2.
33+
"pyOpenSSL; python_version < '3.0'",
34+
"ndg-httpsclient; python_version < '3.0'",
35+
"pyasn; python_version < '3.0'"]
3936

4037
EXTRA_DEPENDENCIES = {
4138
# Extra dependencies are made available through the

0 commit comments

Comments
 (0)