提交 771eb470 authored 作者: Brandon T. Willard's avatar Brandon T. Willard

Use requirements.txt and pin black version

上级 7f1ab2ac
.coverage
*.linkinfo
*.o
*.orig
......
......@@ -59,15 +59,16 @@ before_install:
install:
- conda create --yes -q -n pyenv python=$TRAVIS_PYTHON_VERSION
- conda activate pyenv
- conda install --yes -q mkl numpy scipy pip flake8 six pep8 pyflakes sphinx mkl-service graphviz cython
- python -m pip install -q pydot-ng sphinx_rtd_theme pytest pytest-cov>=2.6.1 coveralls sympy
- python -m pip install --no-deps --upgrade -e .
- conda install --yes -q mkl numpy scipy pip mkl-service graphviz cython libgpuarray pygpu
- pip install -q -r requirements.txt
- conda list && pip freeze
- python -c 'import theano; print(theano.config.__str__(print_doc=False))'
- python -c 'import theano; assert(theano.config.blas.ldflags != "")'
jobs:
include:
- stage: lint
script:
- pip install black
- black -t py36 --check theano/ tests/ setup.py
- flake8
- &normaltest
......@@ -92,19 +93,8 @@ script:
- export MKL_THREADING_LAYER=GNU
- export MKL_NUM_THREADS=1
- export OMP_NUM_THREADS=1
- which python
- python --version
- uname -a
- free -m
- df -h
- ulimit -a
- echo "$PART"
# Print information to help debug problems
- python -c 'import numpy; print(numpy.__version__)'
- python -c 'import theano; print(theano.__version__)'
- python -c 'import theano; print(theano.config.__str__(print_doc=False))'
- python -c 'import theano; assert(theano.config.blas.ldflags != "")'
- pytest -x -r A --verbose --runslow --cov=theano/ --cov-append --no-cov-on-fail $PART || travis_terminate 1
- pytest -x -r A --verbose --runslow --cov=theano/ --cov-append --no-cov-on-fail $PART
after_success:
- coveralls
......
......@@ -44,9 +44,9 @@ Install the latest stable version of Theano with:
- Use :blue:`user` for a user installation without admin rights. It will install Theano in your local site-packages.
- [test] will install the requirements for testing.
- Use `pip install -r requirements.txt` to install the requirements for testing.
- [doc] will install the requirements in order to generate the documentation.
- Use `pip install -r requirements-rtd.txt` install the requirements for generating the documentation.
If you encountered any trouble, head to the :ref:`troubleshooting` page.
......
-e ./
sphinx>=1.3.0
sphinx_rtd_theme
pygments
pytest
numpy
gnumpy
pydot
pydot2
pydot-ng
Cython
scipy==0.13
......@@ -107,10 +107,6 @@ def do_setup():
packages=find_packages(),
cmdclass=versioneer.get_cmdclass(),
install_requires=["numpy>=1.9.1", "scipy>=0.14", "six>=1.9.0"],
extras_require={
"test": ["pytest", "flake8", "black"],
"doc": ["Sphinx>=0.5.1", "pygments"],
},
package_data={
"": [
"*.txt",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论