Moved dependencies to setup.py extras (#462)

This commit is contained in:
Jonne Kaunisto 2020-04-03 15:04:05 -07:00 committed by GitHub
parent b01adba826
commit b6d35d4926
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 4 deletions

View File

@ -19,7 +19,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install -r requirements.txt pip install .[test]
- name: Lint with flake8 - name: Lint with flake8
run: | run: |
pip install -Iv enum34==1.1.6 # https://bitbucket.org/stoneleaf/enum34/issues/27/enum34-118-broken pip install -Iv enum34==1.1.6 # https://bitbucket.org/stoneleaf/enum34/issues/27/enum34-118-broken

View File

@ -1,3 +0,0 @@
mock==2.0.0
requests==2.20.0
six==1.10.0

View File

@ -3,6 +3,19 @@ from setuptools import setup
with open("README.md", "r") as f: with open("README.md", "r") as f:
long_description = f.read() 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( setup(
name='spotipy', name='spotipy',
version='2.10.0', version='2.10.0',
@ -16,5 +29,7 @@ setup(
'requests>=2.20.0', 'requests>=2.20.0',
'six>=1.10.0', 'six>=1.10.0',
], ],
tests_require=test_reqs,
extras_require=extra_reqs,
license='LICENSE.md', license='LICENSE.md',
packages=['spotipy']) packages=['spotipy'])