fix: dev: Fixing bad dependencies in PyPI.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
language: python
|
language: python
|
||||||
install:
|
install:
|
||||||
- sudo apt-get install graphviz
|
- sudo apt-get install graphviz
|
||||||
- pip install tox coveralls
|
- pip install -r requirements.dev.txt
|
||||||
script:
|
script:
|
||||||
- tox
|
- tox
|
||||||
after_success:
|
after_success:
|
||||||
|
|||||||
@@ -30,6 +30,6 @@ PyDotPlus version module.
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
__version__ = '2.0.0-dev'
|
__version__ = '2.0.1'
|
||||||
|
|
||||||
__all__ = ['__version__']
|
__all__ = ['__version__']
|
||||||
|
|||||||
14
setup.py
14
setup.py
@@ -41,12 +41,26 @@ def find_version(filename):
|
|||||||
raise RuntimeError('Unable to find version string.')
|
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(
|
setup(
|
||||||
name='pydotplus',
|
name='pydotplus',
|
||||||
version=find_version('lib/pydotplus/version.py'),
|
version=find_version('lib/pydotplus/version.py'),
|
||||||
package_dir={'': 'lib'},
|
package_dir={'': 'lib'},
|
||||||
packages=find_packages('lib'),
|
packages=find_packages('lib'),
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
|
install_requires=find_requirements('requirements.txt'),
|
||||||
|
|
||||||
# Metadata
|
# Metadata
|
||||||
author='PyDotPlus Developers',
|
author='PyDotPlus Developers',
|
||||||
author_email='carlos@jenkins.co.cr',
|
author_email='carlos@jenkins.co.cr',
|
||||||
|
|||||||
Reference in New Issue
Block a user