Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4fa1c2f

Browse filesBrowse files
committed
Reworking optional dependency on typing module
Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
1 parent b29a77b commit 4fa1c2f
Copy full SHA for 4fa1c2f

File tree

1 file changed

+4
-8
lines changed
Filter options

1 file changed

+4
-8
lines changed

‎setup.py

Copy file name to clipboardExpand all lines: setup.py
+4-8Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python3
2-
import sys
32
from io import open
43
from os.path import abspath, dirname, join
54

@@ -15,12 +14,6 @@
1514
.strip().strip('\'"')
1615
)
1716

18-
install_requires = [
19-
'ifaddr'
20-
]
21-
if sys.version_info[:2] < (3, 5):
22-
install_requires.append('typing')
23-
2417
setup(
2518
name='zeroconf',
2619
version=version,
@@ -53,5 +46,8 @@
5346
'Bonjour', 'Avahi', 'Zeroconf', 'Multicast DNS', 'Service Discovery',
5447
'mDNS',
5548
],
56-
install_requires=install_requires,
49+
install_requires=[
50+
'ifaddr',
51+
'typing;python<"3.5"'
52+
],
5753
)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.