Commit 5c823a7d authored by quaeritis's avatar quaeritis

fix / update the .gitlab-ci.yml (python 3.5 -> 3.7)

update install_requires package versions
parent 61ae00b9
Pipeline #25102 passed with stages
in 3 minutes and 47 seconds
image: kwant/testing
image: quantumtinkerer/research
stages:
- test
test package:
stage: test
script:
- pip3 install sympy==1.1.1
- pip3 install -e .
- py.test -r w --cov semicon --cov-report term --flakes semicon
## Documentation for the format of this file can be found here:
## https://docs.gitlab.com/ce/ci/yaml/README.html#configuration-of-your-builds-with-gitlab-ci-yml
test build:
stage: build
script: python setup.py develop
artifacts:
paths:
- semicon/model_cache.json
expire_in: 2 hour
test package with latest scipy:
stage: test
test stable requirements:
script:
- pip3 install sympy==1.1.1 scipy==1.2.0rc2
- pip3 install -e .
- py.test -r w --cov semicon --cov-report term --flakes semicon
test package with latest SymPy and Kwant stable:
- conda env create -f docker/semicon-stable.yml
- source activate semicon-stable
- py.test semicon/ --cov=semicon --verbose --cov-report term
stage: test
test latest requirements:
script:
- pip3 install sympy
- pip3 install git+https://gitlab.kwant-project.org/kwant/kwant.git@stable
- pip3 install -e .
- py.test -r w --cov semicon --cov-report term --flakes semicon
- conda env create -f docker/semicon-latest.yml
- source activate semicon-latest
- py.test semicon/ --cov=semicon --verbose --cov-report term
stage: test
test packaging:
stage: test
script:
- pip3 install sympy==1.1.1
- pip3 install .
- conda env create -f docker/semicon-stable.yml
- source activate semicon-stable
- python setup.py install
- cd / # make sure we don't import the cloned version
- python3 -c 'import semicon; semicon.test()'
- python -c 'import semicon; semicon.test()'
stage: test
name: semicon-latest
channels:
- conda-forge
dependencies:
- python=3.7
- numpy
- scipy
- kwant
- sympy
- pandas
- tinyarray
- pyyaml
## Dev Dependencies
# Testing
- pytest
- pytest-cov
- pytest-flakes
- pytest-pep8
name: semicon-stable
channels:
- conda-forge
dependencies:
- python=3.5
- numpy=1.13
- scipy=0.19
- kwant
- sympy=1.1
- pandas
- tinyarray
- pyyaml
## Dev Dependencies
# Testing
- pytest
- pytest-cov
- pytest-flakes
- pytest-pep8
......@@ -2,7 +2,6 @@
# -*- coding: utf-8 -*-
import os
import sys
import imp
import json
import setuptools.command.develop
from setuptools import setup, find_packages
......@@ -97,9 +96,15 @@ setup(
packages=find_packages('.'),
package_data={'semicon': ['databank/*.yml']},
setup_requires=['sympy >= 0.7.6'],
install_requires=['pyyaml', 'scipy >= 0.17', 'kwant >= 1.3',
'sympy >= 1.1.1', 'pandas >= 0.19.2'],
setup_requires=['sympy >= 1.2'],
install_requires=[
'sympy >= 1.2',
'scipy >= 1.1.0',
'pandas >= 0.23.3',
'numpy >= 1.14.5',
'kwant >= 1.4',
'pyyaml'
],
classifiers=[c.strip() for c in classifiers.split('\n')],
cmdclass=cmdclass,
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment