diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index b3b3fca..3fba53e 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -19,7 +19,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt + pip install .[test] - name: Lint with flake8 run: | pip install -Iv enum34==1.1.6 # https://bitbucket.org/stoneleaf/enum34/issues/27/enum34-118-broken diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index accca78..0000000 --- a/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -mock==2.0.0 -requests==2.20.0 -six==1.10.0 diff --git a/setup.py b/setup.py index 2df423e..527ef07 100644 --- a/setup.py +++ b/setup.py @@ -3,6 +3,19 @@ from setuptools import setup with open("README.md", "r") as f: long_description = f.read() +test_reqs = [ + 'mock==2.0.0' +] + +doc_reqs = [ + 'Sphinx>=1.5.2' +] + +extra_reqs = { + 'doc': doc_reqs, + 'test': test_reqs +} + setup( name='spotipy', version='2.10.0', @@ -16,5 +29,7 @@ setup( 'requests>=2.20.0', 'six>=1.10.0', ], + tests_require=test_reqs, + extras_require=extra_reqs, license='LICENSE.md', packages=['spotipy'])