Skip to content

Commit

Permalink
Add extra condition to requirements
Browse files Browse the repository at this point in the history
stylecloud is not supported in Python 2, therefore, PySS3 will not
support word cloud generation in Python 2.
  • Loading branch information
sergioburdisso committed Jun 12, 2021
1 parent 61e75d5 commit d9fe65d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ scikit-learn[alldeps]>=0.20
tqdm>=4.8.4
matplotlib
iterative-stratification
stylecloud
stylecloud; python_version >= '3'
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ scikit-learn[alldeps]>=0.20
tqdm>=4.8.4
matplotlib
iterative-stratification
stylecloud
stylecloud; python_version >= '3'
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,7 @@
'tqdm>=4.8.4',
'matplotlib',
'iterative-stratification'],
extras_require={
':python_version >== "3"': ['stylecloud'],
},
entry_points={'console_scripts': ['pyss3=pyss3.cmd_line:main']})

0 comments on commit d9fe65d

Please sign in to comment.