fix: dev: Fixing bad dependencies in PyPI.
This commit is contained in:
parent
bab53adff8
commit
6173f2a993
|
@ -1,7 +1,7 @@
|
|||
language: python
|
||||
install:
|
||||
- sudo apt-get install graphviz
|
||||
- pip install tox coveralls
|
||||
- pip install -r requirements.dev.txt
|
||||
script:
|
||||
- tox
|
||||
after_success:
|
||||
|
|
|
@ -30,6 +30,6 @@ PyDotPlus version module.
|
|||
from __future__ import unicode_literals
|
||||
from __future__ import print_function
|
||||
|
||||
__version__ = '2.0.0-dev'
|
||||
__version__ = '2.0.1'
|
||||
|
||||
__all__ = ['__version__']
|
||||
|
|
14
setup.py
14
setup.py
|
@ -41,12 +41,26 @@ def find_version(filename):
|
|||
raise RuntimeError('Unable to find version string.')
|
||||
|
||||
|
||||
def find_requirements(requirements):
|
||||
import string
|
||||
with open(requirements, 'r') as fd:
|
||||
reqs = []
|
||||
for line in fd:
|
||||
line = line.strip()
|
||||
if line and not line[:1] in string.ascii_letters:
|
||||
reqs.append(line)
|
||||
return reqs
|
||||
|
||||
|
||||
setup(
|
||||
name='pydotplus',
|
||||
version=find_version('lib/pydotplus/version.py'),
|
||||
package_dir={'': 'lib'},
|
||||
packages=find_packages('lib'),
|
||||
|
||||
# Dependencies
|
||||
install_requires=find_requirements('requirements.txt'),
|
||||
|
||||
# Metadata
|
||||
author='PyDotPlus Developers',
|
||||
author_email='carlos@jenkins.co.cr',
|
||||
|
|
Loading…
Reference in New Issue