Skip to content

Commit

Permalink
Merge pull request #47 from QuLogic/disallow-python2
Browse files Browse the repository at this point in the history
Disallow installation on Python 2.
  • Loading branch information
ricklupton committed May 19, 2018
2 parents a31d586 + 4bc6896 commit a8f618b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,4 @@ Contributors
- Konstantin Stadler (issues & use in IOA)
- Dhanuka Lakshan
- Andreas Fehlner
- Elliott Sales de Andrade
1 change: 1 addition & 0 deletions flit.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ author = Rick Lupton
author-email = rick.lupton@eng.cam.ac.uk
home-page = https://github.com/ricklupton/floweaver
classifiers = License :: OSI Approved :: MIT License
requires-python = ">=3.4"
requires = numpy
pandas
networkx (>=1,<2)
Expand Down
6 changes: 0 additions & 6 deletions setup.cfg

This file was deleted.

12 changes: 12 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,23 @@
import codecs
import re
from os import path
import sys

# Always prefer setuptools over distutils
from setuptools import setup, find_packages

here = path.abspath(path.dirname(__file__))

# This check is here if the user does not have a new enough pip to recognize
# the minimum Python requirement in the metadata.
if sys.version_info < (3, 4):
error = """
floWeaver 2.0.0+ does not support Python 2.x, 3.0, 3.1, 3.2, or 3.3.
Python 3.4 and above is required. This may be due to an out of date pip.
Make sure you have pip >= 9.0.1.
"""
sys.exit(error)


def read(*parts):
with codecs.open(path.join(here, *parts), 'r') as fp:
Expand Down Expand Up @@ -46,6 +57,7 @@ def find_version(*file_paths):
],
keywords='Sankey diagram flow data visualisation',
packages=find_packages(exclude=['docs', 'tests']),
python_requires='>=3.4',
install_requires=[
'numpy',
'pandas',
Expand Down

0 comments on commit a8f618b

Please sign in to comment.