Skip to content

Commit

Permalink
Release 2.0.1 (PR #162)
Browse files Browse the repository at this point in the history
Features
--------

- Add GPUs to cobra template. (#142)
- Lower startup time of the CLI. (#153)


Bugfixes
--------

- Already submitted benchmarks are now hidden in the summary of ``mdbenchmark submit``. (#139)
- Plotting will now work, even when some benchmarks are unfinished. (#140)
- Restarting benchmarks with ``mdbenchmark submit --force`` works again. (#141)


Misc
----

- Use ``poetry`` to manage Python dependencies and the project in general. (#155)
  • Loading branch information
mimischi authored Mar 4, 2020
2 parents fc468f5 + 7940eee commit 3d72698
Show file tree
Hide file tree
Showing 60 changed files with 3,774 additions and 1,043 deletions.
10 changes: 3 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
.eggs/
build/
dist/
pip-wheel-metadata/

# VSCode
.vscode/
Expand All @@ -28,10 +29,5 @@ docs/.doctrees/
docs/_build/
docs/.doctrees/

# Documentation
docs/_build/
docs/.doctrees/

# Ignore local Pipfile
Pipfile
Pipfile.lock
# Misc
.DS_Store
11 changes: 11 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2

python:
install:
- method: pip
path: .
extra_requirements:
- docs

sphinx:
configuration: docs/conf.py
73 changes: 32 additions & 41 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
os: linux
language: python
sudo: false
python: "3.6"
python: "3.8"

branches:
only:
Expand All @@ -14,11 +14,6 @@ cache:

env:
global:
- MAIN_CMD="pytest"
- SETUP_CMD="mdbenchmark -v"
- CONDA_DEPENDENCIES="datreant jinja2 click==6.7 pandas matplotlib xdg<2"
- CONDA_CHANNELS="conda-forge"
- NUMPY_VERSION=stable
- PIP_CACHE_DIR=$HOME/.cache/pip
- CODECOV=""
- PYTEST_COV=""
Expand All @@ -27,63 +22,59 @@ env:
jobs:
include:
- stage: "Linux - Unit tests"
name: "Python 3.6"
name: "Python 3.8"
env:
- CODECOV="--cov mdbenchmark"
- PYTEST_COV="pytest-cov codecov"
- name: "Python 3.7"
language: python
python: 3.7
python: "3.7"
- name: "Python 3.6"
language: python
python: "3.6"
dist: xenial
sudo: true
- name: "Python 3.5"
python: "3.5"
- name: "Python 2.7"
python: "2.7"

- stage: "Linting and formatting"
name: "Formatting with black"
install:
- $UPGRADE_PIP
- pip install black
script: make reformat-check
script: poetry run make reformat-check
- name: "Linting with flake8"
install:
- $UPGRADE_PIP
- pip install flake8
script: make flake8
script: poetry run make flake8
- name: "Sorting with isort"
install:
- $UPGRADE_PIP
- pip install isort
script: make isort
script: poetry run make isort-check
- name: "Lint reStructuredText"
install:
- $UPGRADE_PIP
- pip install restructuredtext_lint
script: make rst-lint
script: poetry run make rst-lint
- name: "Try to build documentation"
install:
- $UPGRADE_PIP
- pip install . sphinx-click
script: python setup.py build_sphinx
install: poetry install --extras docs
script:
- cd docs
- poetry run make build

- stage: "macOS - Unit tests"
language: generic
name: "Python 2.7"
env: PYTHON_VERSION=2.7
install:
- git clone git://github.com/astropy/ci-helpers.git
- source ci-helpers/travis/setup_conda.sh
- pip install -e .
script: $MAIN_CMD $SETUP_CMD
os: osx
osx_image: xcode11.2
language: shell
before_script:
- bash .travis/before_script.sh
before_cache:
- rm -f "$HOME/Library/Caches/pip/log/debug.log"
cache:
directories:
- "$HOME/Library/Caches/pip"
- "$HOME/Library/Caches/pypoetry"

install:
before_install:
- $UPGRADE_PIP
- pip install . $PYTEST_COV
- pip install poetry

install:
- poetry install

script:
- pytest $CODECOV
- poetry run pytest $CODECOV

after_success:
- if [ -z ${CODECOV} ]; then echo "Skipping codecov submit"; else codecov; fi
5 changes: 5 additions & 0 deletions .travis/before_script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
set -euo pipefail

mkdir -p $HOME/.matplotlib
echo "backend: TkAgg" > $HOME/.matplotlib/matplotlibrc
Loading

0 comments on commit 3d72698

Please sign in to comment.