Skip to content
Snippets Groups Projects
Commit 1db7616a authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Simplify requirements

parent 77cef530
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
black
matplotlib
memory_profiler
numpydoc
......@@ -12,5 +13,4 @@ sphinx-autoapi
sphinx-gallery>=0.1.12
sphinx_rtd_theme
sphinxcontrib-versioning
yapf>=0.30.0
wheel
......@@ -8,10 +8,10 @@ from setuptools import setup
import sys
def read_stripped_lines(filename):
def read_requirements(kind):
"""Return a list of stripped lines from a file"""
with open(filename) as fobj:
return [l.strip() for l in fobj.readlines()]
with open(os.path.join("requirements", kind + ".txt")) as fobj:
return = [l.strip() for l in fobj.readlines()]
try:
......@@ -33,8 +33,8 @@ setup(
setup_requires=['setuptools_scm'],
use_scm_version=True,
python_requires='>=3.5',
install_requires=read_stripped_lines("requirements.txt"),
extras_require={"dev": read_stripped_lines("requirements-dev.txt")},
install_requires=read_requirements("install"),
extras_require={kind: read_requirements(kind) for kind in ["dev"]},
classifiers=[
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment