Skip to content

Commit eae86db

Browse files
authored
Merge pull request #56 from stefankoegl/gh-actions
Migrate to GitHub Actions, remove py 3.5, 3.6
2 parents a95c26f + dc3627c commit eae86db

File tree

3 files changed

+36
-35
lines changed

3 files changed

+36
-35
lines changed

.github/workflows/test.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Python package
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
python-version: ["2.7", "3.7", "3.8", "3.9", "3.10", "3.11"]
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install flake8 pytest
24+
pip install coveralls
25+
# - name: Lint with flake8
26+
# run: |
27+
# stop the build if there are Python syntax errors or undefined names
28+
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
29+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
30+
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
31+
- name: Test
32+
run: |
33+
coverage run --source=jsonpatch tests.py

.travis.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@
4141
'Programming Language :: Python :: 2',
4242
'Programming Language :: Python :: 2.7',
4343
'Programming Language :: Python :: 3',
44-
'Programming Language :: Python :: 3.5',
45-
'Programming Language :: Python :: 3.6',
4644
'Programming Language :: Python :: 3.7',
4745
'Programming Language :: Python :: 3.8',
4846
'Programming Language :: Python :: 3.9',
47+
'Programming Language :: Python :: 3.10',
48+
'Programming Language :: Python :: 3.11',
4949
'Programming Language :: Python :: Implementation :: CPython',
5050
'Programming Language :: Python :: Implementation :: PyPy',
5151
'Topic :: Software Development :: Libraries',
@@ -64,5 +64,5 @@
6464
py_modules=MODULES,
6565
scripts=['bin/jsonpointer'],
6666
classifiers=CLASSIFIERS,
67-
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
67+
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*',
6868
)

0 commit comments

Comments
 (0)