Skip to content

Commit fd3aff7

Browse files
committed
fix: tutor olive+ support
1 parent 7d56732 commit fd3aff7

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
python-version: ['3.8', '3.12']
12+
python-version: ['3.7', '3.12']
1313
steps:
1414
- uses: actions/checkout@v4
1515
- name: Set up Python ${{ matrix.python-version }}
@@ -20,6 +20,17 @@ jobs:
2020
run: python -m pip install --upgrade pip
2121
- name: Install dependencies
2222
run: |
23-
pip install .[dev]
23+
if [ "${{ matrix.python-version }}" = "3.7" ]; then
24+
pip install "tutor==15.0.0"
25+
else
26+
pip install -U tutor
27+
fi
28+
# Install dev dependencies for testing
29+
pip install pylint mypy black types-setuptools importlib-resources
30+
echo "Installing tutor-contrib-wordpress"
31+
pip install -e .
32+
echo "Enable wordpress plugin and save configuration"
33+
tutor plugins enable wordpress
34+
tutor config save
2435
- name: Test lint, types, and format
2536
run: make test

setup.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,24 +41,21 @@ def load_about():
4141
long_description_content_type="text/x-rst",
4242
packages=find_packages(exclude=["tests*"]),
4343
include_package_data=True,
44-
python_requires=">=3.8",
45-
install_requires=["tutor>=14.0.0,<19.0.0"],
44+
python_requires=">=3.7",
45+
install_requires=["tutor>=15.0.0,<19.0.0", "importlib_resources", "pylint"],
4646
extras_require={
4747
"dev": [
48-
"tutor[dev]>=14.0.0,<19.0.0",
49-
]
50-
},
51-
entry_points={
52-
"tutor.plugin.v1": [
53-
"wordpress = tutorwordpress.plugin"
48+
"tutor[dev]>=15.0.0,<19.0.0",
5449
]
5550
},
51+
entry_points={"tutor.plugin.v1": ["wordpress = tutorwordpress.plugin"]},
5652
classifiers=[
5753
"Development Status :: 3 - Alpha",
5854
"Intended Audience :: Developers",
5955
"License :: OSI Approved :: GNU Affero General Public License v3",
6056
"Operating System :: OS Independent",
6157
"Programming Language :: Python",
58+
"Programming Language :: Python :: 3.7",
6259
"Programming Language :: Python :: 3.8",
6360
"Programming Language :: Python :: 3.9",
6461
"Programming Language :: Python :: 3.10",

0 commit comments

Comments
 (0)