Skip to content

Commit

Permalink
Update Tox and CI tests
Browse files Browse the repository at this point in the history
  - Bump minor version
  - Add tests for Python 3.11
  - Update dev requirements with tox>=4.0
  - Remove {homedir} from tox.ini
  - Replace whitelist_externals with allowlist_externals in tox.ini
  - Exclude Python 3.7 from flake8 CI tests (not compatible)
  • Loading branch information
brunato committed Mar 14, 2023
1 parent 1dc07cd commit 7c25567
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v2
- name: Set up Python
Expand All @@ -29,6 +29,7 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Lint with flake8
if: ${{ matrix.python-version != '3.7' }}
run: |
flake8 qeschema --max-line-length=100 --statistics
- name: Run tests
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
# -- Project information -----------------------------------------------------

project = 'qeschema'
copyright = '2015-2022, Quantum Espresso Foundation and SISSA'
copyright = '2015-2023, Quantum Espresso Foundation and SISSA'
author = 'Davide Brunato, Pietro Delugas'

# The full version, including alpha/beta/rc tags
release = '1.4.0'
release = '1.5.0'


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion qeschema/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from .exceptions import QESchemaError, XmlDocumentError
from .utils import set_logger

__version__ = '1.4.0'
__version__ = '1.5.0'

__all__ = [
'XmlDocument', 'QeDocument', 'PwDocument', 'PhononDocument', 'NebDocument',
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Requirements for setup a development environment for the qeschema package.
setuptools
tox
tox>=4.0
flake8
coverage
xmlschema>=1.6.4
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

setup(
name='qeschema',
version='1.4.0',
version='1.5.0',
install_requires=['xmlschema>=1.6.4', 'numpy'],
extras_require={
'HDF5': ['h5py'],
Expand All @@ -41,6 +41,7 @@
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Utilities',
Expand Down
5 changes: 2 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
# and then run "tox" from this directory.

[tox]
envlist = py{37,38,39,310}, docs, flake8, coverage
envlist = py{37,38,39,310,311}, docs, flake8, coverage
skip_missing_interpreters = true
toxworkdir = {homedir}/.tox/qeschema

[testenv]
deps =
Expand All @@ -18,7 +17,7 @@ deps =
docs: sphinx_rtd_theme
coverage: coverage
commands = python -m unittest
whitelist_externals = make
allowlist_externals = make

[testenv:docs]
commands =
Expand Down

0 comments on commit 7c25567

Please sign in to comment.