diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index dec2096..0000000 --- a/.travis.yml +++ /dev/null @@ -1,57 +0,0 @@ -language: python -branches: - only: - # This is where pull requests from "bors r+" are built. - - staging - # This is where pull requests from "bors try" are built. - - trying - # Uncomment this to enable building pull requests. - - master - -sudo: false - -cache: - directories: - - $HOME/.cache/pip - -matrix: - include: - - python: 3.4 - env: - - TOXENV=py34 - - python: 3.5 - env: - - TOXENV=py35 - - python: 3.6 - env: - - TOXENV=py36 - - python: 3.5 - env: - - TOXENV=flake8 - - python: 3.5 - env: - - TOXENV=pylint - - python: 3.5 - env: - - TOXENV=docs - - python: 3.5 - env: - - TOXENV=doctest - - python: 3.5 - env: - - TOXENV=check-manifest - - python: 3.5 - env: - - TOXENV=checkreadme - -before_install: - - pip install codecov # for coverage - -install: - - pip install tox - -script: - - tox - -after_success: - - codecov diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index abe5885..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,77 +0,0 @@ -# from https://packaging.python.org/en/latest/appveyor/ -branches: - only: - # This is where pull requests from "bors r+" are built. - - staging - # This is where pull requests from "bors try" are built. - - trying - # Uncomment this to enable building pull requests. - - master -environment: - matrix: - - # For Python versions available on Appveyor, see - # http://www.appveyor.com/docs/installed-software#python - # The list here is complete (excluding Python 2.6, which - # isn't covered by this document) at the time of writing. - - - PYTHON: "C:\\Python34" - TOXENV: "py34" - TOXPYTHON: "%PYTHON%\\python.exe" - - - PYTHON: "C:\\Python35" - TOXENV: "py35" - TOXPYTHON: "%PYTHON%\\python.exe" - - - PYTHON: "C:\\Python36" - TOXENV: "py36" - TOXPYTHON: "%PYTHON%\\python.exe" - - - PYTHON: "C:\\Python34-x64" - TOXENV: "py34" - TOXPYTHON: "%PYTHON%\\python.exe" - - - PYTHON: "C:\\Python35-x64" - TOXENV: "py35" - TOXPYTHON: "%PYTHON%\\python.exe" - - - PYTHON: "C:\\Python36-x64" - TOXENV: "py36" - TOXPYTHON: "%PYTHON%\\python.exe" - -install: - # We need wheel installed to build wheels - - "%PYTHON%\\python.exe -m pip install --upgrade wheel pip setuptools" - - "py -3.5 -m pip install --upgrade wheel pip setuptools" - - "py -3.5 -m pip install tox codecov" - -build: off - -test_script: - # Put your test command here. - # If you don't need to build C extensions on 64-bit Python 3.3 or 3.4, - # you can remove "build.cmd" from the front of the command, as it's - # only needed to support those cases. - # Note that you must use the environment variable %PYTHON% to refer to - # the interpreter you're using - Appveyor does not do anything special - # to put the Python evrsion you want to use on PATH. - - "py -3.5 -m tox" - -# This is commented out as there's no easy way to deal with numpy dropping -# older python versions without a recent pip/setuptools. -#after_test: -# # This step builds your wheels. -# # Again, you only need build.cmd if you're building C extensions for -# # 64-bit Python 3.3/3.4. And you need to use %PYTHON% to get the correct -# # interpreter -# - "ci\\appveyor\\build.cmd %PYTHON%\\python.exe setup.py bdist_wheel" -# -#artifacts: -# # bdist_wheel puts your built wheel in the dist directory -# - path: dist\* - -cache: - - "%LOCALAPPDATA%\\pip\\Cache" - -on_success: - - "py -3.5 -m codecov" diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..29805be --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,88 @@ +# from matplotlib's azure setup + + +schedules: +- cron: "0 0 * * 4" + displayName: Weekly build + branches: + include: + - releases/* + always: true + + +trigger: + tags: + include: + - '*' + branches: + include: + - '*' + + +variables: + PIP_CACHE_DIR: $(Pipeline.Workspace)/cache/pip + + +jobs: +- job: 'static_checks' + pool: + vmImage: ubuntu-16.04 + variables: + TOXENV: flake8,pylint,docs,check-manifest,checkreadme + steps: + - task: UsePythonVersion@0 + inputs: + versionSpec: '3.8' + architecture: 'x64' + - script: | + pip install tox + displayName: Install tox + - script: | + tox + displayName: tox + +- job: 'ubuntu1604' + pool: + vmImage: ubuntu-16.04 + strategy: + matrix: + py36: + python.version: '3.6' + TOXENV: py36 + py37: + python.version: '3.7' + TOXENV: py37 + py38: + python.version: '3.8' + TOXENV: py38 + py39: + python.version: '3.9' + TOXENV: py39 + maxParallel: 4 + + steps: + - template: ci/azure-pipelines-steps.yml + parameters: + platform: linux + +- job: 'macOS1015' + pool: + vmImage: macOS-10.15 + strategy: + matrix: + py37: + python.version: '3.7' + TOXENV: py37 + py38: + python.version: '3.8' + TOXENV: py38 + py39: + python.version: '3.9' + TOXENV: py39 + maxParallel: 4 + + steps: + - template: ci/azure-pipelines-steps.yml + parameters: + platform: macos + diff --git a/bors.toml b/bors.toml index 4e6e85f..c4ff17d 100644 --- a/bors.toml +++ b/bors.toml @@ -1,4 +1,6 @@ status = [ - "continuous-integration/travis-ci/push", - "continuous-integration/appveyor/branch" + "aragilar.spaceplot", + "codecov/patch", + "codecov/project", ] + diff --git a/ci/azure-pipelines-steps.yml b/ci/azure-pipelines-steps.yml new file mode 100644 index 0000000..831c65d --- /dev/null +++ b/ci/azure-pipelines-steps.yml @@ -0,0 +1,38 @@ +steps: +- task: UsePythonVersion@0 + inputs: + versionSpec: '$(python.version)' + architecture: 'x64' + displayName: 'Use Python $(python.version)' + condition: and(succeeded(), ne(variables['python.version'], 'Pre')) + +- script: | + python -m pip install --upgrade pip + pip install tox codecov twine wheel + displayName: 'Install pip dependencies' + +- task: TwineAuthenticate@0 + inputs: + externalFeeds: 'pypi' + condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/') + +- script: env + displayName: 'print env' + +- script: | + tox + displayName: 'tox' + +#- script: | +# codecov +# displayName: 'codecov' +# hopefully the bash uploader will work +- script: | + bash <(curl -s https://codecov.io/bash) + displayName: 'Upload to codecov.io' + +- script: | + python setup.py sdist bdist_wheel + twine upload --skip-existing -r pypi --config-file $(PYPIRC_PATH) dist/* + displayName: 'Upload to PyPI' + condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/') diff --git a/tox.ini b/tox.ini index f4e25ff..a3177f7 100644 --- a/tox.ini +++ b/tox.ini @@ -4,16 +4,17 @@ # and then run "tox" from this directory. [tox] -envlist = py34,py35,py36,flake8,pylint,docs,check-manifest,checkreadme +envlist = py36,py37,py38,py39,flake8,pylint,docs,check-manifest,checkreadme [testenv] commands = py.test --cov={envsitepackagesdir}/spaceplot -s {posargs} deps = -rtest-requirements.txt basepython = - py34: {env:TOXPYTHON:python3.4} - py35: {env:TOXPYTHON:python3.5} py36: {env:TOXPYTHON:python3.6} + py37: {env:TOXPYTHON:python3.7} + py38: {env:TOXPYTHON:python3.8} + py39: {env:TOXPYTHON:python3.9} flake8: {env:TOXPYTHON:python3} pylint: {env:TOXPYTHON:python3} docs: {env:TOXPYTHON:python3}