From cdc1d99a11a67c4ef2024d9861d0de4af3ff1dbc Mon Sep 17 00:00:00 2001 From: Michaela Ockova Date: Mon, 3 Feb 2020 19:51:50 +0100 Subject: [PATCH] Fix Cython installation --- .travis.yml | 2 +- requirements-dev.txt | 1 + setup.py | 6 ++---- 3 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 requirements-dev.txt diff --git a/.travis.yml b/.travis.yml index c56da3b..4b2a6d5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ language: python python: - "3.8" -install: "pip install . pre-commit" +install: "pip install -r requirements-dev.txt && pip install . pre-commit" jobs: include: diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..4a20613 --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1 @@ +Cython \ No newline at end of file diff --git a/setup.py b/setup.py index fa58d9b..a1c70c3 100644 --- a/setup.py +++ b/setup.py @@ -32,12 +32,11 @@ ], setup_requires=["setuptools>=18.0", "cython"], install_requires=[ - "setuptools>=18.0", "pandas", "networkx==1.11", "pyshp", "smopy", - "Cython", + "nose", "six", "geoindex", "osmread==0.2", @@ -46,8 +45,7 @@ "pyproj", "matplotlib-scalebar==0.6.1", ], - tests_require=["nose"], - ext_modules=[Extension("gtfspy.routing.label", sources=["gtfspy/routing/label.pyx"],),], + ext_modules=[Extension("gtfspy.routing.label", sources=["gtfspy/routing/label.pyx"])], keywords=[ "transit", "routing" "gtfs",