Skip to content

Commit 5ca7643

Browse files
authored
Use arviz_example_data submodule (#2096)
* Remove local datasets * Add example data as git submodule * Explicitly specify package data * Add name to metadata * Replace dataset constant writing code * Add missing newline to file * Update example_data * Update setup.py * Update package data * Include all package data * Checkout with submodules on Azure * Add missing keyword to RemoteFileMetadata * Build docs with submodules * Specify encoding * Update branch to main * Update submodule commit * Specify example data files to include * Don't run pydocstyle on example_data * Ignore example_data using black * Revert "Ignore example_data using black" This reverts commit 296f279. * Ignore example_data using black * Update CHANGELOG.md
1 parent e2b2ea9 commit 5ca7643

16 files changed

+51
-135
lines changed

.azure-pipelines/azure-pipelines-base.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929

3030

3131
steps:
32+
33+
- checkout: self
34+
submodules: true
35+
3236
- task: UsePythonVersion@0
3337
inputs:
3438
versionSpec: '$(python.version)'

.azure-pipelines/azure-pipelines-benchmarks.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111

1212
steps:
1313

14+
- checkout: self
15+
submodules: true
16+
1417
- task: UsePythonVersion@0
1518
inputs:
1619
versionSpec: '$(python.version)'

.azure-pipelines/azure-pipelines-docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
name: "Python 3.9 - docs"
1717

1818
steps:
19+
- checkout: self
20+
submodules: true
1921
- script: |
2022
PRTitle=$(curl -s https://api.github.com/repos/arviz-devs/arviz/pulls/${PULLREQUESTNUMBER} | grep title | cut -d'"' -f4)
2123
echo "##vso[task.setvariable variable=PRTitle]${PRTitle}"

.azure-pipelines/azure-pipelines-external.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
name: "External special"
2828

2929
steps:
30+
- checkout: self
31+
submodules: true
3032
- task: UsePythonVersion@0
3133
inputs:
3234
versionSpec: '$(python.version)'

.azure-pipelines/azure-pipelines-wheel.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818

1919
steps:
2020

21+
- checkout: self
22+
submodules: true
23+
2124
- task: UsePythonVersion@0
2225
inputs:
2326
versionSpec: '$(python.version)'

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "arviz/data/example_data"]
2+
path = arviz/data/example_data
3+
url = https://github.com/arviz-devs/arviz_example_data
4+
branch = main

.pydocstyle.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[pydocstyle]
22
convention = numpy
3+
match-dir = '^(?!example_data).*'

.readthedocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
version: 2
22

3+
submodules:
4+
include: all
5+
36
sphinx:
47
configuration: doc/source/conf.py
58

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
### Maintenance and fixes
99
* Add exception in `az.plot_hdi` for `x` of type `np.datetime64` and `smooth=True` ([2016](https://github.com/arviz-devs/arviz/pull/2016))
1010
* Change `ax.plot` usage to `ax.scatter` in `plot_pair` ([1990](https://github.com/arviz-devs/arviz/pull/1990))
11+
* Example data has been moved to the [arviz_example_data](https://github.com/arviz-devs/arviz_example_data) repository and is now included as a git submodule. ([2096](https://github.com/arviz-devs/arviz/pull/2096))
1112

1213
### Deprecation
1314
* Removed `fill_last`, `contour` and `plot_kwargs` arguments from `plot_pair` function ([2085](https://github.com/arviz-devs/arviz/pull/2085))

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ include LICENSE
55
include arviz/py.typed
66

77
recursive-include arviz *.mplstyle
8-
recursive-include arviz *.nc
98
recursive-include arviz/static *
9+
recursive-include arviz/data/example_data *.nc *.json

0 commit comments

Comments
 (0)