Skip to content

Commit

Permalink
Use PIP 508 dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
avylove committed Oct 16, 2019
1 parent 4af6579 commit 0dade64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
wcwidth>=0.1.4
six>=1.9.0
# support python2.6 by using backport of 'orderedict'
ordereddict==1.1; python_version < "2.7"
# Windows requires jinxed
jinxed>=0.5.4; platform_system == "Windows"
10 changes: 0 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
#!/usr/bin/env python
"""Distutils setup script."""
import os
import platform
import setuptools


def _get_install_requires(fname):
import sys
result = [req_line.strip() for req_line in open(fname)
if req_line.strip() and not req_line.startswith('#')]

# support python2.6 by using backport of 'orderedict'
if sys.version_info < (2, 7):
result.append('ordereddict==1.1')

# Windows requires jinxed
if platform.system() == 'Windows':
result.append('jinxed>=0.5.4')

return result


Expand Down

0 comments on commit 0dade64

Please sign in to comment.