Skip to content

Commit ba3bab4

Browse files
cjekelwonch002
authored andcommitted
fix travis ci tf versions
1 parent be0d4a9 commit ba3bab4

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ install:
1010
- pip install . --no-cache-dir
1111
script:
1212
- pytest --cov=pwlf -p no:warnings tests/tests.py
13-
- pip install tensorflow<=2.0.0
13+
- pip install "tensorflow>=1.0.0,<2.0.0"
1414
- pytest --cov=pwlf --cov-append -p no:warnings tests/teststf.py
1515
before_script:
1616
- flake8 pwlf

setup.py

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,28 @@
77
exec(fp.read(), version)
88

99
setup(
10-
name='pwlf',
10+
name="pwlf",
1111
version=version["__version__"],
12-
author='Charles Jekel',
13-
author_email='cjekel@gmail.com',
14-
packages=['pwlf'],
15-
url='https://github.com/cjekel/piecewise_linear_fit_py',
16-
license='MIT License',
17-
description='fit piecewise linear functions to data',
18-
long_description=io.open('README.rst', encoding="utf-8").read(),
12+
author="Charles Jekel",
13+
author_email="cjekel@gmail.com",
14+
packages=["pwlf"],
15+
url="https://github.com/cjekel/piecewise_linear_fit_py",
16+
license="MIT License",
17+
description="fit piecewise linear functions to data",
18+
long_description=io.open("README.rst", encoding="utf-8").read(),
1919
# long_description_content_type='text/markdown',
20-
platforms=['any'],
20+
platforms=["any"],
2121
install_requires=[
2222
"numpy >= 1.14.0",
2323
"scipy >= 1.2.0",
2424
"pyDOE >= 0.3.8",
2525
],
2626
classifiers=[
27-
'License :: OSI Approved :: MIT License',
28-
'Programming Language :: Python :: 3',
27+
"License :: OSI Approved :: MIT License",
28+
"Programming Language :: Python :: 3",
2929
],
3030
python_requires=">3.5",
31+
extras_require={
32+
"PiecewiseLinFitTF": ["tensorflow < 2.0.0"],
33+
},
3134
)

0 commit comments

Comments
 (0)