Skip to content

Commit 3d72698

Browse files
authored
Release 2.0.1 (PR #162)
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)
2 parents fc468f5 + 7940eee commit 3d72698

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+3774
-1043
lines changed

.gitignore

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
.eggs/
1212
build/
1313
dist/
14+
pip-wheel-metadata/
1415

1516
# VSCode
1617
.vscode/
@@ -28,10 +29,5 @@ docs/.doctrees/
2829
docs/_build/
2930
docs/.doctrees/
3031

31-
# Documentation
32-
docs/_build/
33-
docs/.doctrees/
34-
35-
# Ignore local Pipfile
36-
Pipfile
37-
Pipfile.lock
32+
# Misc
33+
.DS_Store

.readthedocs.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
3+
python:
4+
install:
5+
- method: pip
6+
path: .
7+
extra_requirements:
8+
- docs
9+
10+
sphinx:
11+
configuration: docs/conf.py

.travis.yml

Lines changed: 32 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
os: linux
12
language: python
2-
sudo: false
3-
python: "3.6"
3+
python: "3.8"
44

55
branches:
66
only:
@@ -14,11 +14,6 @@ cache:
1414

1515
env:
1616
global:
17-
- MAIN_CMD="pytest"
18-
- SETUP_CMD="mdbenchmark -v"
19-
- CONDA_DEPENDENCIES="datreant jinja2 click==6.7 pandas matplotlib xdg<2"
20-
- CONDA_CHANNELS="conda-forge"
21-
- NUMPY_VERSION=stable
2217
- PIP_CACHE_DIR=$HOME/.cache/pip
2318
- CODECOV=""
2419
- PYTEST_COV=""
@@ -27,63 +22,59 @@ env:
2722
jobs:
2823
include:
2924
- stage: "Linux - Unit tests"
30-
name: "Python 3.6"
25+
name: "Python 3.8"
3126
env:
3227
- CODECOV="--cov mdbenchmark"
3328
- PYTEST_COV="pytest-cov codecov"
3429
- name: "Python 3.7"
3530
language: python
36-
python: 3.7
31+
python: "3.7"
32+
- name: "Python 3.6"
33+
language: python
34+
python: "3.6"
3735
dist: xenial
38-
sudo: true
3936
- name: "Python 3.5"
4037
python: "3.5"
4138
- name: "Python 2.7"
4239
python: "2.7"
4340

4441
- stage: "Linting and formatting"
4542
name: "Formatting with black"
46-
install:
47-
- $UPGRADE_PIP
48-
- pip install black
49-
script: make reformat-check
43+
script: poetry run make reformat-check
5044
- name: "Linting with flake8"
51-
install:
52-
- $UPGRADE_PIP
53-
- pip install flake8
54-
script: make flake8
45+
script: poetry run make flake8
5546
- name: "Sorting with isort"
56-
install:
57-
- $UPGRADE_PIP
58-
- pip install isort
59-
script: make isort
47+
script: poetry run make isort-check
6048
- name: "Lint reStructuredText"
61-
install:
62-
- $UPGRADE_PIP
63-
- pip install restructuredtext_lint
64-
script: make rst-lint
49+
script: poetry run make rst-lint
6550
- name: "Try to build documentation"
66-
install:
67-
- $UPGRADE_PIP
68-
- pip install . sphinx-click
69-
script: python setup.py build_sphinx
51+
install: poetry install --extras docs
52+
script:
53+
- cd docs
54+
- poetry run make build
7055

7156
- stage: "macOS - Unit tests"
72-
language: generic
73-
name: "Python 2.7"
74-
env: PYTHON_VERSION=2.7
75-
install:
76-
- git clone git://github.com/astropy/ci-helpers.git
77-
- source ci-helpers/travis/setup_conda.sh
78-
- pip install -e .
79-
script: $MAIN_CMD $SETUP_CMD
57+
os: osx
58+
osx_image: xcode11.2
59+
language: shell
60+
before_script:
61+
- bash .travis/before_script.sh
62+
before_cache:
63+
- rm -f "$HOME/Library/Caches/pip/log/debug.log"
64+
cache:
65+
directories:
66+
- "$HOME/Library/Caches/pip"
67+
- "$HOME/Library/Caches/pypoetry"
8068

81-
install:
69+
before_install:
8270
- $UPGRADE_PIP
83-
- pip install . $PYTEST_COV
71+
- pip install poetry
72+
73+
install:
74+
- poetry install
8475

8576
script:
86-
- pytest $CODECOV
77+
- poetry run pytest $CODECOV
8778

8879
after_success:
8980
- if [ -z ${CODECOV} ]; then echo "Skipping codecov submit"; else codecov; fi

.travis/before_script.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
mkdir -p $HOME/.matplotlib
5+
echo "backend: TkAgg" > $HOME/.matplotlib/matplotlibrc

0 commit comments

Comments
 (0)