Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

CI Update Python #1430

Merged
merged 19 commits into from
Nov 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions .azure-pipelines/azure-pipelines-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,21 @@ jobs:
strategy:
matrix:
Python_39:
python.version: 3.9
python.version: "3.9"
PyPIGithub: false
name: "Python 3.9"
Python_38_preview:
python.version: 3.8
Python_39_preview:
python.version: "3.9"
PyPIGithub: true
name: "Python 3.8"
name: "Python 3.9"
Python_38:
python.version: 3.8
python.version: "3.8"
PyPIGithub: false
name: "Python 3.8"
Python_37:
python.version: 3.7
python.version: "3.7"
PyPIGithub: false
name: "Python 3.7"
Python_36:
python.version: 3.6
PyPIGithub: false
name: "Python 3.6"

steps:
- task: UsePythonVersion@0
Expand Down
6 changes: 3 additions & 3 deletions .azure-pipelines/azure-pipelines-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ jobs:
timeoutInMinutes: 360
strategy:
matrix:
Python_38:
python.version: 3.8
name: "Python 3.8 - benchmarks"
Python_39:
python.version: "3.9"
name: "Python 3.9 - benchmarks"

steps:

Expand Down
6 changes: 3 additions & 3 deletions .azure-pipelines/azure-pipelines-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
timeoutInMinutes: 360
strategy:
matrix:
Python_38:
python.version: 3.8
name: "Python 3.8 - docs"
Python_39:
python.version: "3.9"
name: "Python 3.9 - docs"

steps:
- script: |
Expand Down
28 changes: 7 additions & 21 deletions .azure-pipelines/azure-pipelines-external.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,20 @@ jobs:
timeoutInMinutes: 360
strategy:
matrix:
Python_38_Latest:
python.version: 3.8
Python_39_Latest:
python.version: "3.9"
pystan.version: "latest"
cmdstanpy.version: "latest"
pymc3.version: "latest"
pyro.version: "latest"
pytorch.version: "latest"
emcee.version: "latest"
name: "External latest"

Python_38_Special_versions:
python.version: 3.8
Python_39_Special_versions:
python.version: "3.9"
pystan.version: 2.19.1.1
cmdstanpy.version: 0.9.67
pymc3.version: "github"
pyro.version: 1.2
pytorch.version: 1.4
emcee.version: 2
tensorflow.version: 1
name: "External special"

steps:
Expand All @@ -51,11 +46,7 @@ jobs:
python -m pip install --upgrade pip
python -m pip install wheel

if [ "$(pytorch.version)" = "latest" ]; then
python -m pip --no-cache-dir install torch -f https://download.pytorch.org/whl/cpu/torch_stable.html
else
python -m pip --no-cache-dir install torch=="$(pytorch.version)" -f https://download.pytorch.org/whl/cpu/torch_stable.html
fi
python -m pip --no-cache-dir install torch -f https://download.pytorch.org/whl/cpu/torch_stable.html

if [ "$(pystan.version)" = "latest" ]; then
python -m pip --no-cache-dir install pystan
Expand All @@ -73,12 +64,6 @@ jobs:
python -m pip --no-cache-dir install cmdstanpy=="$(cmdstanpy.version)"
fi

if [ "$(pyro.version)" = "latest" ]; then
python -m pip --no-cache-dir install pyro-ppl
else
python -m pip --no-cache-dir install pyro-ppl=="$(pyro.version)"
fi

if [ "$(emcee.version)" = "latest" ]; then
python -m pip --no-cache-dir install emcee h5py
else
Expand All @@ -92,7 +77,8 @@ jobs:
python -m pip --no-cache-dir install pymc3
fi

grep -Ev '^pystan|^cmdstanpy|^pyro|^emcee|^pymc3' requirements-external.txt | xargs python -m pip install
grep -Ev '^pystan|^cmdstanpy|^emcee|^pymc3' requirements-external.txt | xargs python -m pip install

displayName: 'Install packages'

- script: |
Expand Down
6 changes: 3 additions & 3 deletions .azure-pipelines/azure-pipelines-wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
timeoutInMinutes: 360
strategy:
matrix:
Python_38:
python.version: 3.8
name: "Python 3.8 - wheel"
Python_39:
python.version: "3.9"
name: "Python 3.9 - wheel"

steps:

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
### New features

### Maintenance and fixes
* Drop Python 3.6 support ([1430](https://github.com/arviz-devs/arviz/pull/1430))
* Bokeh 3 compatibility. ([1919](https://github.com/arviz-devs/arviz/pull/1919))

### Deprecation
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ python setup.py install

## Dependencies

ArviZ is tested on Python 3.6, 3.7 and 3.8, and depends on NumPy, SciPy, xarray, and Matplotlib.
ArviZ is tested on Python 3.7, 3.8 and 3.9, and depends on NumPy, SciPy, xarray, and Matplotlib.


## Citation
Expand Down
8 changes: 4 additions & 4 deletions arviz/data/inference_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,9 @@ def groups(self) -> List[str]:
class InferenceDataValuesView(ValuesView[xr.Dataset]):
"""ValuesView implementation for InferenceData, to allow it to implement Mapping."""

def __init__(
def __init__( # pylint: disable=super-init-not-called
self, parent: "InferenceData"
) -> None: # pylint: disable=super-init-not-called
) -> None:
"""Create a new InferenceDataValuesView from an InferenceData object."""
self.parent = parent

Expand Down Expand Up @@ -277,9 +277,9 @@ def values(self) -> "InferenceData.InferenceDataValuesView":
class InferenceDataItemsView(ItemsView[str, xr.Dataset]):
"""ItemsView implementation for InferenceData, to allow it to implement Mapping."""

def __init__(
def __init__( # pylint: disable=super-init-not-called
self, parent: "InferenceData"
) -> None: # pylint: disable=super-init-not-called
) -> None:
"""Create a new InferenceDataItemsView from an InferenceData object."""
self.parent = parent

Expand Down
4 changes: 2 additions & 2 deletions scripts/create_testenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ command -v conda >/dev/null 2>&1 || {
exit 1;
}

# if no python specified, use Travis version, or else 3.8
PYTHON_VERSION=${PYTHON_VERSION:-${TRAVIS_PYTHON_VERSION:-3.8}}
# if no python specified, use 3.9
PYTHON_VERSION=${PYTHON_VERSION:-3.9}
PYSTAN_VERSION=${PYSTAN_VERSION:-latest}
PYTORCH_VERSION=${PYTORCH_VERSION:-latest}
PYRO_VERSION=${PYRO_VERSION:-latest}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ def get_version():
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Scientific/Engineering :: Mathematics",
Expand Down