Skip to content

Commit

Permalink
Merge pull request #268 from hakonanes/state-support-for-python-310
Browse files Browse the repository at this point in the history
State support for Python 3.10
  • Loading branch information
pc494 authored Jan 18, 2022
2 parents 58ca468 + dd29695 commit c7487dd
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 15 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: python setup.py manifix

build-with-pip:
name: ${{ matrix.os }}/py${{ matrix.python-version }}/pip
name: ${{ matrix.os }}-py${{ matrix.python-version }}${{ matrix.LABEL }}
runs-on: ${{ matrix.os }}
timeout-minutes: 15
env:
Expand All @@ -32,27 +32,29 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.8, 3.9]
python-version: [3.9, '3.10']
include:
# Oldest supported version of main dependencies on Python 3.6
- os: ubuntu-latest
python-version: 3.6
OLDEST_SUPPORTED_VERSION: true
DEPENDENCIES: diffpy.structure==3 matplotlib==3.3
LABEL: -oldest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Display versions
- name: Display Python and pip versions
run: python -V; pip -V
- name: Install depedencies and package
shell: bash
run: pip install -U -e .'[doc, tests]'
- name: Install oldest supported version
if: ${{ matrix.OLDEST_SUPPORTED_VERSION }}
run: pip install ${{ matrix.DEPENDENCIES }}
- name: Display package versions
run: pip list
- name: Run tests
run: pytest --cov=orix --pyargs orix
- name: Generate line coverage
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ this project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0.htm
Unreleased
==========

Added
-----
- Python 3.10 support.

2021-12-21 - version 0.8.0
==========================

Expand Down
18 changes: 9 additions & 9 deletions doc/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ We recommend you install it in a `conda environment
<https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html>`_
with the `Miniconda distribution`_::

$ conda create --name orix-env python=3.8
$ conda activate orix-env
conda create --name orix-env python=3.10
conda activate orix-env

If you prefer a graphical interface to manage packages and environments, install the
`Anaconda distribution`_ instead.
Expand All @@ -27,11 +27,11 @@ Anaconda
Anaconda provides the easiest installation. In the Anaconda Prompt, terminal or Command
Prompt, install with::

$ conda install orix --channel conda-forge
conda install orix --channel conda-forge

If you at a later time need to update the package::

$ conda update orix
conda update orix

.. _install-with-pip:

Expand All @@ -41,11 +41,11 @@ Pip
To install with ``pip``, run the following in the Anaconda Prompt, terminal or Command
Prompt::

$ pip install orix
pip install orix

If you at a later time need to update the package::

$ pip install --upgrade orix
pip install --upgrade orix

.. _install-from-source:

Expand All @@ -55,9 +55,9 @@ Install from source
To install orix from source, clone the repository from `GitHub
<https://github.com/pyxem/orix>`_::

$ git clone https://github.com/pyxem/orix.git
$ cd orix
$ pip install --editable .
git clone https://github.com/pyxem/orix.git
cd orix
pip install --editable .

See the :ref:`contributing guidelines <set-up-a-development-installation>`
for how to set up a development installation.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
Expand All @@ -49,9 +50,9 @@
# fmt: off
install_requires=[
"dask[array]",
"diffpy.structure >= 3",
"diffpy.structure >= 3",
"h5py",
"matplotlib >= 3.3",
"matplotlib >= 3.3",
"matplotlib-scalebar",
"numba",
"numpy",
Expand Down

0 comments on commit c7487dd

Please sign in to comment.