Skip to content

Commit 9e32834

Browse files
authored
build: add Python package validation and fix CHANGELOG formatting (#222)
* build: add Python package validation * docs: fix CHANGELOG header formatting
1 parent 1e5d7cf commit 9e32834

File tree

8 files changed

+33
-8
lines changed

8 files changed

+33
-8
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
matrix:
2323
os: [ubuntu-latest]
2424
python-version: ['3.11', '3.12']
25-
toxenv: [py, quality, django42, django52, e2e]
25+
toxenv: [py, quality, django42, django52, e2e, package]
2626

2727
steps:
2828
- uses: actions/checkout@v4

CHANGELOG.rst

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,24 @@ Unreleased
1616

1717
*
1818

19+
0.3.4 – 2025-08-13
20+
******************
21+
22+
Added
23+
-----
24+
25+
* CI check to validate the Python package.
26+
27+
Fixed
28+
-----
29+
30+
* CHANGELOG header formatting.
31+
1932
0.3.3 – 2025-08-12
2033
******************
2134

2235
Fixed
23-
=====
36+
-----
2437

2538
* Do not raise runtime errors if an incorrect course ID is provided when
2639
checking if the MySQL backend is enabled.

forum/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Openedx forum app.
33
"""
44

5-
__version__ = "0.3.3"
5+
__version__ = "0.3.4"

requirements/doc.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@
55

66
doc8 # reStructuredText style checker
77
sphinx-book-theme # Common theme for all Open edX projects
8-
twine # Validates README.rst for usage on PyPI
9-
build # Needed to build the wheel for twine check
108
Sphinx # Documentation builder

requirements/doc.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ billiard==4.2.1
3737
# -r requirements/test.txt
3838
# celery
3939
build==1.2.2.post1
40-
# via -r requirements/doc.in
40+
# via -r requirements/test.txt
4141
cachetools==5.5.0
4242
# via
4343
# -r requirements/test.txt
@@ -420,7 +420,7 @@ text-unidecode==1.3
420420
tox==4.23.2
421421
# via -r requirements/test.txt
422422
twine==5.1.1
423-
# via -r requirements/doc.in
423+
# via -r requirements/test.txt
424424
typing-extensions==4.12.2
425425
# via
426426
# -r requirements/test.txt

requirements/test.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ code-annotations # provides commands used by the pii_check tox target.
99
tox
1010
mongomock
1111
Faker
12+
twine # Validates README.rst for usage on PyPI
13+
build # Needed to build the wheel for twine check

requirements/test.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ billiard==4.2.1
2626
# via
2727
# -r requirements/base.txt
2828
# celery
29+
build==1.2.2.post1
30+
# via -r requirements/test.in
2931
cachetools==5.5.0
3032
# via tox
3133
camel-converter[pydantic]==4.0.1
@@ -294,6 +296,8 @@ text-unidecode==1.3
294296
# python-slugify
295297
tox==4.23.2
296298
# via -r requirements/test.in
299+
twine==5.1.1
300+
# via -r requirements/test.in
297301
typing-extensions==4.12.2
298302
# via
299303
# -r requirements/base.txt

tox.ini

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{311, 312}-django{42,52}
2+
envlist = py{311, 312}-django{42,52},package
33

44
[doc8]
55
; D001 = Line too long
@@ -92,3 +92,11 @@ deps =
9292
-r{toxinidir}/requirements/test.txt
9393
commands =
9494
make test-e2e
95+
96+
[testenv:package]
97+
deps =
98+
build
99+
twine
100+
commands =
101+
python -m build
102+
twine check dist/*

0 commit comments

Comments
 (0)