Skip to content

Commit

Permalink
feat(CI): add python 3.12 to CI testing on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
juarezr committed Mar 13, 2024
1 parent e829532 commit 191a59d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-changes.yml
Expand Up @@ -27,7 +27,7 @@ jobs:
fail-fast: false
matrix:
os: [ "ubuntu-latest", "windows-latest", "macos-latest" ]
python: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
python: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
include:
- python: '2.7'
os: "ubuntu-latest"
Expand Down
9 changes: 6 additions & 3 deletions setup.py
@@ -1,19 +1,21 @@
from __future__ import print_function, absolute_import, division
from setuptools import setup, find_packages
from __future__ import absolute_import, division, print_function

Check warning

Code scanning / Pylintpython3 (reported by Codacy)

Missing module docstring Warning

Missing module docstring

Check warning

Code scanning / Pylintpython3 (reported by Codacy)

Django was not configured. For more information run pylint --load-plugins=pylint_django --help-msg=django-not-configured Warning

Django was not configured. For more information run pylint --load-plugins=pylint_django --help-msg=django-not-configured

Check warning

Code scanning / Pylint (reported by Codacy)

Missing module docstring Warning

Missing module docstring

from setuptools import find_packages, setup

setup(
name='petl',
author='Alistair Miles',
author_email='alimanfoo@googlemail.com',
maintainer="Juarez Rudsatz",
maintainer_email="juarezr@gmail.com",
package_dir={'': '.'},
packages=find_packages('.'),
scripts=['bin/petl'],
url='https://github.com/petl-developers/petl',
license='MIT License',
description='A Python package for extracting, transforming and loading '
'tables of data.',
long_description=open('README.txt').read(),
long_description=open('README.txt', encoding="utf-8").read(),

Check warning

Code scanning / Pylintpython3 (reported by Codacy)

Consider using 'with' for resource-allocating operations Warning

Consider using 'with' for resource-allocating operations
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
setup_requires=["setuptools>18.0", "setuptools-scm>1.5.4"],
extras_require={
Expand Down Expand Up @@ -49,6 +51,7 @@
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
10 changes: 5 additions & 5 deletions tox.ini
Expand Up @@ -4,32 +4,32 @@
# and then run "tox" from this directory.

[tox]
envlist = py27, py36, py37, py38, py39, py310, py311, {py36,py37,py38,py39,py310,py311}-docs
envlist = py27, py36, py37, py38, py39, py310, py311, {py36,py37,py38,py39,py310,py311,py312}-docs

[testenv]
# get stable output for unordered types
setenv =
PYTHONHASHSEED = 42
py27: PY_MAJOR_VERSION = py2
py36,py37,py38,py39,py310,py311: PY_MAJOR_VERSION = py3
py36,py37,py38,py39,py310,py311,py312: PY_MAJOR_VERSION = py3
commands =
pytest --cov=petl petl
coverage report -m
deps =
-rrequirements-tests.txt
-rrequirements-formats.txt

[testenv:{py36,py37,py38,py39,py310,py311}-docs]
[testenv:{py36,py37,py38,py39,py310,py311,py312}-docs]
# build documentation under similar environment to readthedocs
changedir = docs
deps =
-rrequirements-docs.txt
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html

[testenv:{py36,py37,py38,py39,py310,py311}-doctest]
[testenv:{py36,py37,py38,py39,py310,py311,py312}-doctest]
commands =
py36,py37,py38,py39,py310,py311: pytest --doctest-modules --cov=petl petl
py36,py37,py38,py39,py310,py311,py312: pytest --doctest-modules --cov=petl petl
[testenv:{py36,py37,py38,py39}-dochtml]
changedir = docs
deps =
Expand Down

0 comments on commit 191a59d

Please sign in to comment.