Skip to content

Commit 5dd5b26

Browse files
committed
Updated project requirements
1 parent 95172ae commit 5dd5b26

File tree

2 files changed

+10
-19
lines changed

2 files changed

+10
-19
lines changed

requirements/common.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pillow
2-
tinycss
3-
six
4-
requests
1+
pillow>=3.0.0
2+
tinycss>=0.3
3+
six>=1.10.0
4+
requests>=2.8.1

setup.py

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,6 @@ def run_tests(self):
3535
description = ''
3636

3737

38-
# Requirements based on Python version
39-
if sys.version_info >= (3, 0):
40-
# Python 3
41-
install_requires = ['pillow>=3.0.0',
42-
'tinycss>=0.3',
43-
'six>=1.10.0',
44-
'requests>=2.8.1']
45-
else:
46-
# Python 2
47-
install_requires = ['pillow>=2.8.1',
48-
'tinycss>=0.3',
49-
'six>=1.10.0',
50-
'requests>=2.8.1']
51-
5238
setup(
5339
name='icon_font_to_png',
5440
url='https://github.com/Pythonity/icon-font-to-png',
@@ -62,7 +48,12 @@ def run_tests(self):
6248
packages=['icon_font_to_png'],
6349
tests_require=['tox'],
6450
cmdclass={'test': Tox},
65-
install_requires=install_requires,
51+
install_requires=[
52+
'pillow>=3.0.0',
53+
'tinycss>=0.3',
54+
'six>=1.10.0',
55+
'requests>=2.8.1'
56+
],
6657
extras_require={
6758
'testing': ['pytest'],
6859
},

0 commit comments

Comments
 (0)