Skip to content

Commit

Permalink
fix: unpin sphinx constraint & drop python 3.8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
irtazaakram committed Aug 28, 2024
1 parent a6634c1 commit 675da43
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 68 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
os: [ 'ubuntu-20.04' ]
python-version: ['3.8', '3.11', '3.12']
python-version: ['3.11', '3.12']
toxenv: [ 'django42' ]
# Only run these other workflows on the latest python version we support.
include:
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
run: tox

- name: Run Coverage
if: matrix.python-version == '3.8' && matrix.toxenv=='django42'
if: matrix.python-version == '3.11' && matrix.toxenv=='django42'
uses: codecov/codecov-action@v4
with:
flags: unittests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: setup python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.11

- name: Install pip
run: pip install -r requirements/pip.txt
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,5 @@ requirements/private.txt
.idea

test_output/
env/
.python-version
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ sphinx:
build:
os: "ubuntu-22.04"
tools:
python: "3.8"
python: "3.11"

python:
install:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def get_object(self):
)


@ XApiTransformersRegistry.register('edx.ui.lms.sequence.outline.selected')
@ XApiTransformersRegistry.register('edx.ui.lms.outline.selected')
@XApiTransformersRegistry.register('edx.ui.lms.sequence.outline.selected')
@XApiTransformersRegistry.register('edx.ui.lms.outline.selected')
class OutlineSelectedTransformer(NavigationTransformersMixin):
"""
xAPI transformer for Navigation events.
Expand All @@ -91,9 +91,9 @@ def get_object(self):
)


@ XApiTransformersRegistry.register('edx.ui.lms.sequence.next_selected')
@ XApiTransformersRegistry.register('edx.ui.lms.sequence.previous_selected')
@ XApiTransformersRegistry.register('edx.ui.lms.sequence.tab_selected')
@XApiTransformersRegistry.register('edx.ui.lms.sequence.next_selected')
@XApiTransformersRegistry.register('edx.ui.lms.sequence.previous_selected')
@XApiTransformersRegistry.register('edx.ui.lms.sequence.tab_selected')
class TabNavigationTransformer(NavigationTransformersMixin):
"""
xAPI transformer for Navigation events.
Expand Down
1 change: 0 additions & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ edx-toggles==5.2.0
event-tracking==2.4.0
# via
# -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
# -c requirements/constraints.txt
# -r requirements/base.in
fastavro==1.9.5
# via openedx-events
Expand Down
16 changes: 0 additions & 16 deletions requirements/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,3 @@

# Common constraints for edx repos
-c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt

# diff-cover latest requires (pluggy>=0.13.1,<0.14.0)
# which conflicts with pytest(pluggy>=0.12,<2.0.0) and tox(pluggy>0.12) both of these fetch pluggy==1.0.0
# but diff-cover latest has a pin (pluggy<1.0.0a1)
# Using the same version of diff-cover which is being used currently in edx-platform to avoid this conflict.
diff-cover==4.0.0

# greater version failing docs build
sphinx==4.2.0
# Sphinx requires docutils<0.18 && doc8<1.0.0
# This pin can be removed once sphinx constraint is removed.
docutils<0.18
doc8<1.0.0
event-tracking>=2.3.2
# it is not availablein python3.9
backports.zoneinfo;python_version<"3.9"
18 changes: 3 additions & 15 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ cffi==1.17.0
chardet==5.2.0
# via
# -r requirements/ci.txt
# diff-cover
# tox
charset-normalizer==3.3.2
# via
Expand Down Expand Up @@ -109,10 +110,8 @@ cryptography==43.0.0
# django-fernet-fields-v2
ddt==1.7.2
# via -r requirements/quality.txt
diff-cover==4.0.0
# via
# -c requirements/constraints.txt
# -r requirements/dev.in
diff-cover==9.1.1
# via -r requirements/dev.in
dill==0.3.8
# via
# -r requirements/quality.txt
Expand Down Expand Up @@ -193,7 +192,6 @@ edx-toggles==5.2.0
event-tracking==2.4.0
# via
# -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
# -c requirements/constraints.txt
# -r requirements/quality.txt
factory-boy==3.3.1
# via -r requirements/quality.txt
Expand All @@ -216,8 +214,6 @@ idna==3.8
# via
# -r requirements/quality.txt
# requests
inflect==7.3.1
# via jinja2-pluralize
iniconfig==2.0.0
# via
# -r requirements/quality.txt
Expand All @@ -233,9 +229,6 @@ jinja2==3.1.4
# -r requirements/quality.txt
# code-annotations
# diff-cover
# jinja2-pluralize
jinja2-pluralize==0.3.0
# via diff-cover
jsonfield==3.1.0
# via
# -r requirements/quality.txt
Expand All @@ -256,8 +249,6 @@ mccabe==0.7.0
# pylint
mock==5.1.0
# via -r requirements/quality.txt
more-itertools==10.4.0
# via inflect
newrelic==9.13.0
# via
# -r requirements/quality.txt
Expand Down Expand Up @@ -427,13 +418,10 @@ tomlkit==0.13.2
# pylint
tox==4.18.0
# via -r requirements/ci.txt
typeguard==4.3.0
# via inflect
typing-extensions==4.12.2
# via
# -r requirements/quality.txt
# edx-opaque-keys
# typeguard
tzdata==2024.1
# via
# -r requirements/quality.txt
Expand Down
29 changes: 7 additions & 22 deletions requirements/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
accessible-pygments==0.0.5
# via pydata-sphinx-theme
alabaster==0.7.16
alabaster==1.0.0
# via sphinx
amqp==5.2.0
# via
Expand Down Expand Up @@ -91,7 +91,6 @@ cryptography==43.0.0
# via
# -r requirements/test.txt
# django-fernet-fields-v2
# secretstorage
ddt==1.7.2
# via -r requirements/test.txt
django==4.2.15
Expand Down Expand Up @@ -136,13 +135,10 @@ djangorestframework==3.15.2
# via
# -r requirements/test.txt
# django-config-models
doc8==0.11.2
# via
# -c requirements/constraints.txt
# -r requirements/doc.in
docutils==0.17.1
doc8==1.1.1
# via -r requirements/doc.in
docutils==0.20.1
# via
# -c requirements/constraints.txt
# doc8
# pydata-sphinx-theme
# readme-renderer
Expand Down Expand Up @@ -173,7 +169,6 @@ edx-toggles==5.2.0
event-tracking==2.4.0
# via
# -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
# -c requirements/constraints.txt
# -r requirements/test.txt
factory-boy==3.3.1
# via -r requirements/test.txt
Expand Down Expand Up @@ -209,10 +204,6 @@ jaraco-context==6.0.1
# via keyring
jaraco-functools==4.0.2
# via keyring
jeepney==0.8.0
# via
# keyring
# secretstorage
jinja2==3.1.4
# via
# -r requirements/test.txt
Expand Down Expand Up @@ -283,7 +274,7 @@ pycparser==2.22
# via
# -r requirements/test.txt
# cffi
pydata-sphinx-theme==0.13.3
pydata-sphinx-theme==0.15.4
# via sphinx-book-theme
pygments==2.18.0
# via
Expand Down Expand Up @@ -352,8 +343,6 @@ rfc3986==2.0.0
# via twine
rich==13.8.0
# via twine
secretstorage==3.3.3
# via keyring
six==1.16.0
# via
# -r requirements/test.txt
Expand All @@ -365,13 +354,12 @@ snowballstemmer==2.2.0
# via sphinx
soupsieve==2.6
# via beautifulsoup4
sphinx==4.2.0
sphinx==8.0.2
# via
# -c requirements/constraints.txt
# -r requirements/doc.in
# pydata-sphinx-theme
# sphinx-book-theme
sphinx-book-theme==1.0.1
sphinx-book-theme==1.1.3
# via -r requirements/doc.in
sphinxcontrib-applehelp==2.0.0
# via sphinx
Expand Down Expand Up @@ -430,6 +418,3 @@ wcwidth==0.2.13
# prompt-toolkit
zipp==3.20.1
# via importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
# setuptools
1 change: 0 additions & 1 deletion requirements/quality.txt
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ edx-toggles==5.2.0
event-tracking==2.4.0
# via
# -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
# -c requirements/constraints.txt
# -r requirements/test.txt
factory-boy==3.3.1
# via -r requirements/test.txt
Expand Down
1 change: 0 additions & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ edx-toggles==5.2.0
event-tracking==2.4.0
# via
# -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
# -c requirements/constraints.txt
# -r requirements/base.txt
factory-boy==3.3.1
# via -r requirements/test.in
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def is_requirement(line):
],
include_package_data=True,
install_requires=load_requirements('requirements/base.in'),
python_requires=">=3.8",
python_requires=">=3.11",
license="AGPL 3.0",
zip_safe=False,
keywords='Python edx',
Expand All @@ -160,7 +160,6 @@ def is_requirement(line):
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{38,311,312}-django{42}, quality, docs, pii_check
envlist = py{311,312}-django{42}, quality, docs, pii_check

[doc8]
ignore = D001
Expand Down

0 comments on commit 675da43

Please sign in to comment.