Skip to content

Commit 4a20d12

Browse files
authored
Merge pull request #1043 from openml/develop
Release 0.12
2 parents bc87333 + 5511fa0 commit 4a20d12

Some content is hidden

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

61 files changed

+2388
-1338
lines changed

.all-contributorsrc

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"files": [
3+
"README.md"
4+
],
5+
"imageSize": 100,
6+
"commit": false,
7+
"contributors": [
8+
{
9+
"login": "a-moadel",
10+
"name": "a-moadel",
11+
"avatar_url": "https://avatars0.githubusercontent.com/u/46557866?v=4",
12+
"profile": "https://github.com/a-moadel",
13+
"contributions": [
14+
"doc",
15+
"example"
16+
]
17+
},
18+
{
19+
"login": "Neeratyoy",
20+
"name": "Neeratyoy Mallik",
21+
"avatar_url": "https://avatars2.githubusercontent.com/u/3191233?v=4",
22+
"profile": "https://github.com/Neeratyoy",
23+
"contributions": [
24+
"code",
25+
"doc",
26+
"example"
27+
]
28+
}
29+
],
30+
"contributorsPerLine": 7,
31+
"projectName": "openml-python",
32+
"projectOwner": "openml",
33+
"repoType": "github",
34+
"repoHost": "https://github.com",
35+
"skipCi": true
36+
}

.github/workflows/dist.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: dist-check
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
dist:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Setup Python
11+
uses: actions/setup-python@v2
12+
with:
13+
python-version: 3.8
14+
- name: Build dist
15+
run: |
16+
python setup.py sdist
17+
- name: Twine check
18+
run: |
19+
pip install twine
20+
last_dist=$(ls -t dist/openml-*.tar.gz | head -n 1)
21+
twine check $last_dist
22+
- name: Install dist
23+
run: |
24+
last_dist=$(ls -t dist/openml-*.tar.gz | head -n 1)
25+
pip install $last_dist
26+
- name: PEP 561 Compliance
27+
run: |
28+
pip install mypy
29+
cd .. # required to use the installed version of openml
30+
if ! python -m mypy -c "import openml"; then exit 1; fi

.github/workflows/docs.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Docs
2+
on: [pull_request, push]
3+
4+
jobs:
5+
build-and-deploy:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- name: Setup Python
10+
uses: actions/setup-python@v2
11+
with:
12+
python-version: 3.8
13+
- name: Install dependencies
14+
run: |
15+
pip install -e .[docs,examples,examples_unix]
16+
- name: Make docs
17+
run: |
18+
cd doc
19+
make html
20+
- name: Pull latest gh-pages
21+
if: (contains(github.ref, 'develop') || contains(github.ref, 'master')) && github.event_name == 'push'
22+
run: |
23+
cd ..
24+
git clone https://github.com/openml/openml-python.git --branch gh-pages --single-branch gh-pages
25+
- name: Copy new doc into gh-pages
26+
if: (contains(github.ref, 'develop') || contains(github.ref, 'master')) && github.event_name == 'push'
27+
run: |
28+
branch_name=${GITHUB_REF##*/}
29+
cd ../gh-pages
30+
rm -rf $branch_name
31+
cp -r ../openml-python/doc/build/html $branch_name
32+
- name: Push to gh-pages
33+
if: (contains(github.ref, 'develop') || contains(github.ref, 'master')) && github.event_name == 'push'
34+
run: |
35+
last_commit=$(git log --pretty=format:"%an: %s")
36+
cd ../gh-pages
37+
branch_name=${GITHUB_REF##*/}
38+
git add $branch_name/
39+
git config --global user.name 'Github Actions'
40+
git config --global user.email '[email protected]'
41+
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
42+
git commit -am "$last_commit"
43+
git push

.github/workflows/pre-commit.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: pre-commit
2+
3+
on: [push]
4+
5+
jobs:
6+
run-all-files:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Setup Python 3.7
11+
uses: actions/setup-python@v2
12+
with:
13+
python-version: 3.7
14+
- name: Install pre-commit
15+
run: |
16+
pip install pre-commit
17+
pre-commit install
18+
- name: Run pre-commit
19+
run: |
20+
pre-commit run --all-files

.github/workflows/ubuntu-test.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
ubuntu:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: [3.6, 3.7, 3.8]
12+
scikit-learn: [0.21.2, 0.22.2, 0.23.1, 0.24]
13+
exclude: # no scikit-learn 0.21.2 release for Python 3.8
14+
- python-version: 3.8
15+
scikit-learn: 0.21.2
16+
include:
17+
- python-version: 3.6
18+
scikit-learn: 0.18.2
19+
scipy: 1.2.0
20+
- python-version: 3.6
21+
scikit-learn: 0.19.2
22+
- python-version: 3.6
23+
scikit-learn: 0.20.2
24+
- python-version: 3.8
25+
scikit-learn: 0.23.1
26+
code-cov: true
27+
fail-fast: false
28+
max-parallel: 4
29+
30+
steps:
31+
- uses: actions/checkout@v2
32+
with:
33+
fetch-depth: 2
34+
- name: Setup Python ${{ matrix.python-version }}
35+
uses: actions/setup-python@v2
36+
with:
37+
python-version: ${{ matrix.python-version }}
38+
- name: Install test dependencies
39+
run: |
40+
python -m pip install --upgrade pip
41+
pip install -e .[test]
42+
- name: Install scikit-learn ${{ matrix.scikit-learn }}
43+
run: |
44+
pip install scikit-learn==${{ matrix.scikit-learn }}
45+
- name: Install scipy ${{ matrix.scipy }}
46+
if: ${{ matrix.scipy }}
47+
run: |
48+
pip install scipy==${{ matrix.scipy }}
49+
- name: Store repository status
50+
id: status-before
51+
run: |
52+
echo "::set-output name=BEFORE::$(git status --porcelain -b)"
53+
- name: Run tests
54+
run: |
55+
if [ ${{ matrix.code-cov }} ]; then codecov='--cov=openml --long --cov-report=xml'; fi
56+
pytest -n 4 --durations=20 --timeout=600 --timeout-method=thread --dist load -sv $codecov --reruns 5 --reruns-delay 1
57+
- name: Check for files left behind by test
58+
if: ${{ always() }}
59+
run: |
60+
before="${{ steps.status-before.outputs.BEFORE }}"
61+
after="$(git status --porcelain -b)"
62+
if [[ "$before" != "$after" ]]; then
63+
echo "git status from before: $before"
64+
echo "git status from after: $after"
65+
echo "Not all generated files have been deleted!"
66+
exit 1
67+
fi
68+
- name: Upload coverage
69+
if: matrix.code-cov && always()
70+
uses: codecov/codecov-action@v1
71+
with:
72+
files: coverage.xml
73+
fail_ci_if_error: true
74+
verbose: true

.travis.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -260,14 +260,9 @@ The resulting HTML files will be placed in ``build/html/`` and are viewable in
260260
a web browser. See the ``README`` file in the ``doc/`` directory for more
261261
information.
262262

263-
For building the documentation, you will need
264-
[sphinx](http://sphinx.pocoo.org/),
265-
[sphinx-bootstrap-theme](https://ryan-roemer.github.io/sphinx-bootstrap-theme/),
266-
[sphinx-gallery](https://sphinx-gallery.github.io/)
267-
and
268-
[numpydoc](https://numpydoc.readthedocs.io/en/latest/).
263+
For building the documentation, you will need to install a few additional dependencies:
269264
```bash
270-
$ pip install sphinx sphinx-bootstrap-theme sphinx-gallery numpydoc
265+
$ pip install -e .[docs]
271266
```
272267
When dependencies are installed, run
273268
```bash

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# OpenML-Python
2+
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
3+
[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors-)
4+
<!-- ALL-CONTRIBUTORS-BADGE:END -->
25

36
A python interface for [OpenML](http://openml.org), an online platform for open science collaboration in machine learning.
47
It can be used to download or upload OpenML data such as datasets and machine learning experiment results.
@@ -40,3 +43,23 @@ Bibtex entry:
4043
year = {2019},
4144
}
4245
```
46+
47+
## Contributors ✨
48+
49+
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
50+
51+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
52+
<!-- prettier-ignore-start -->
53+
<!-- markdownlint-disable -->
54+
<table>
55+
<tr>
56+
<td align="center"><a href="https://github.com/a-moadel"><img src="https://avatars0.githubusercontent.com/u/46557866?v=4" width="100px;" alt=""/><br /><sub><b>a-moadel</b></sub></a><br /><a href="https://github.com/openml/openml-python/commits?author=a-moadel" title="Documentation">📖</a> <a href="#example-a-moadel" title="Examples">💡</a></td>
57+
<td align="center"><a href="https://github.com/Neeratyoy"><img src="https://avatars2.githubusercontent.com/u/3191233?v=4" width="100px;" alt=""/><br /><sub><b>Neeratyoy Mallik</b></sub></a><br /><a href="https://github.com/openml/openml-python/commits?author=Neeratyoy" title="Code">💻</a> <a href="https://github.com/openml/openml-python/commits?author=Neeratyoy" title="Documentation">📖</a> <a href="#example-Neeratyoy" title="Examples">💡</a></td>
58+
</tr>
59+
</table>
60+
61+
<!-- markdownlint-enable -->
62+
<!-- prettier-ignore-end -->
63+
<!-- ALL-CONTRIBUTORS-LIST:END -->
64+
65+
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ build: false
4545

4646
test_script:
4747
- "cd C:\\projects\\openml-python"
48-
- "%CMD_IN_ENV% pytest -n 4 --timeout=600 --timeout-method=thread -sv"
48+
- "%CMD_IN_ENV% pytest -n 4 --timeout=600 --timeout-method=thread --dist load -sv"

ci_scripts/create_doc.sh

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)