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

Use requirements.txt and pin black version

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