olx-utils 0.3.4__tar.gz → 0.6.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {olx-utils-0.3.4 → olx_utils-0.6.0}/.bumpversion.cfg +2 -1
- olx_utils-0.6.0/.githooks/commit-msg +3 -0
- olx_utils-0.6.0/.githooks/post-commit +2 -0
- olx-utils-0.3.4/.github/workflows/tox.yml → olx_utils-0.6.0/.github/workflows/build.yml +24 -18
- olx_utils-0.6.0/.github/workflows/install.yml +29 -0
- olx_utils-0.6.0/.github/workflows/release.yml +32 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/.gitignore +3 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/.gitlab-ci.yml +12 -12
- olx_utils-0.6.0/.gitlint +30 -0
- olx_utils-0.6.0/.gitmodules +3 -0
- olx_utils-0.6.0/AGENTS.md +30 -0
- olx_utils-0.6.0/HACKING.md +79 -0
- olx_utils-0.6.0/PKG-INFO +70 -0
- olx_utils-0.6.0/README.md +38 -0
- olx_utils-0.6.0/olx_utils.egg-info/PKG-INFO +70 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/olx_utils.egg-info/SOURCES.txt +11 -2
- {olx-utils-0.3.4 → olx_utils-0.6.0}/olx_utils.egg-info/entry_points.txt +0 -1
- olx_utils-0.6.0/olx_utils.egg-info/scm_file_list.json +145 -0
- olx_utils-0.6.0/olx_utils.egg-info/scm_version.json +8 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/olxutils/__init__.py +2 -2
- {olx-utils-0.3.4 → olx_utils-0.6.0}/olxutils/cli.py +59 -3
- {olx-utils-0.3.4 → olx_utils-0.6.0}/olxutils/git.py +1 -1
- {olx-utils-0.3.4 → olx_utils-0.6.0}/olxutils/helpers.py +4 -5
- {olx-utils-0.3.4 → olx_utils-0.6.0}/olxutils/templates.py +1 -2
- {olx-utils-0.3.4 → olx_utils-0.6.0}/olxutils/upload.py +7 -7
- {olx-utils-0.3.4 → olx_utils-0.6.0}/setup.cfg +1 -1
- {olx-utils-0.3.4 → olx_utils-0.6.0}/setup.py +8 -11
- {olx-utils-0.3.4/tests/course/source → olx_utils-0.6.0/tests/course/result}/include/course.xml +2 -0
- {olx-utils-0.3.4/tests/course/source → olx_utils-0.6.0/tests/course/result}/include/sequential/lab.xml +8 -8
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/policies/_base/policy.json +3 -1
- {olx-utils-0.3.4/tests/course/result → olx_utils-0.6.0/tests/course/source}/include/course.xml +2 -0
- {olx-utils-0.3.4/tests/course/result → olx_utils-0.6.0/tests/course/source}/include/sequential/lab.xml +8 -8
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/policies/_base/policy.json +3 -1
- olx_utils-0.6.0/tests/fenced-code-blocks.html +20 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/tasks.py +7 -1
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/test_full_course.py +62 -8
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/test_git.py +13 -5
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tox.ini +20 -4
- olx-utils-0.3.4/HACKING.md +0 -80
- olx-utils-0.3.4/PKG-INFO +0 -85
- olx-utils-0.3.4/README.rst +0 -64
- olx-utils-0.3.4/olx_utils.egg-info/PKG-INFO +0 -85
- olx-utils-0.3.4/tests/fenced-code-blocks.html +0 -16
- {olx-utils-0.3.4 → olx_utils-0.6.0}/.githooks/pre-commit +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/.githooks/pre-push +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/LICENSE +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/olx_utils.egg-info/dependency_links.txt +0 -0
- olx-utils-0.3.4/requirements.txt → olx_utils-0.6.0/olx_utils.egg-info/requires.txt +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/olx_utils.egg-info/top_level.txt +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/olxutils/__main__.py +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/olxutils/archive.py +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/olxutils/templates/olx_partials.xml +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/olxutils/token.py +0 -0
- olx-utils-0.3.4/olx_utils.egg-info/requires.txt → olx_utils-0.6.0/requirements/base.txt +1 -1
- {olx-utils-0.3.4 → olx_utils-0.6.0}/requirements/flake8.txt +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/requirements/setup.txt +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/requirements/test.txt +0 -0
- /olx-utils-0.3.4/requirements/base.txt → /olx_utils-0.6.0/requirements.txt +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/__init__.py +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/README.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/about/overview.html +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/chapter/conclusion.xml +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/chapter/introduction.xml +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/course.xml +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/html/README.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/html/introduction_unit_01.html +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/html/introduction_unit_02.html +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/html/introduction_unit_03.html +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/include/html/content.html +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/include/html/lab.html +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/include/sequential/content.xml +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/info/handouts.html +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/info/updates.html +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/markdown/README.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/markdown/introduction_unit_01.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/markdown/introduction_unit_02.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/markdown/introduction_unit_03.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/policies/_base/grading_policy.json +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/policies/assets.json +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/sequential/README.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/sequential/introduction.xml +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/static/hot/README.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/static/images/README.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/static/markdown/README.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/static/markdown/introduction_unit_01.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/static/markdown/introduction_unit_02.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/static/markdown/introduction_unit_03.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/static/presentation/css/reveal-override.css +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/static/presentation/css/reveal-override.css.map +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/static/presentation/css/reveal-override.scss +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/static/presentation/css/reveal.css +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/static/presentation/css/white.css +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/static/presentation/css/zenburn.css +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/static/presentation/index.html +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/static/presentation/js/classList.js +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/static/presentation/js/head.min.js +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/static/presentation/js/highlight.js +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/static/presentation/js/markdown.js +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/static/presentation/js/marked.js +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/static/presentation/js/notes.html +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/static/presentation/js/notes.js +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/static/presentation/js/reveal.js +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/result/static/presentation/js/zoom.js +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/README.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/about/overview.html +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/chapter/conclusion.xml +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/chapter/introduction.xml +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/course.xml +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/html/README.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/html/introduction_unit_01.html +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/html/introduction_unit_02.html +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/html/introduction_unit_03.html +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/include/html/content.html +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/include/html/lab.html +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/include/sequential/content.xml +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/info/handouts.html +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/info/updates.html +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/markdown/README.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/markdown/introduction_unit_01.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/markdown/introduction_unit_02.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/markdown/introduction_unit_03.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/policies/_base/grading_policy.json +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/policies/assets.json +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/sequential/README.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/sequential/introduction.xml +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/static/hot/README.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/static/images/README.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/static/markdown/README.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/static/markdown/introduction_unit_01.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/static/markdown/introduction_unit_02.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/static/markdown/introduction_unit_03.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/static/presentation/css/reveal-override.css +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/static/presentation/css/reveal-override.css.map +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/static/presentation/css/reveal-override.scss +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/static/presentation/css/reveal.css +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/static/presentation/css/white.css +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/static/presentation/css/zenburn.css +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/static/presentation/index.html +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/static/presentation/js/classList.js +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/static/presentation/js/head.min.js +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/static/presentation/js/highlight.js +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/static/presentation/js/markdown.js +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/static/presentation/js/marked.js +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/static/presentation/js/notes.html +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/static/presentation/js/notes.js +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/static/presentation/js/reveal.js +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/course/source/static/presentation/js/zoom.js +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/fenced-code-blocks.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/footnotes.html +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/footnotes.md +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/test_cli.py +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/test_helpers.py +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/test_token.py +0 -0
- {olx-utils-0.3.4 → olx_utils-0.6.0}/tests/test_upload.py +0 -0
|
@@ -10,30 +10,36 @@ jobs:
|
|
|
10
10
|
strategy:
|
|
11
11
|
matrix:
|
|
12
12
|
python-version:
|
|
13
|
-
- '3.
|
|
14
|
-
- '3.
|
|
15
|
-
- '3.
|
|
13
|
+
- '3.11'
|
|
14
|
+
- '3.12'
|
|
15
|
+
- '3.13'
|
|
16
|
+
- '3.14'
|
|
16
17
|
|
|
17
18
|
steps:
|
|
18
19
|
- name: Check out code
|
|
19
|
-
uses: actions/checkout@
|
|
20
|
+
uses: actions/checkout@v6
|
|
21
|
+
with:
|
|
22
|
+
# Checkout a pull request's HEAD commit instead of the merge
|
|
23
|
+
# commit, so that gitlint lints the correct commit message.
|
|
24
|
+
ref: ${{ github.event.pull_request.head.sha }}
|
|
20
25
|
- name: Set up Python ${{ matrix.python-version }}
|
|
21
|
-
uses: actions/setup-python@
|
|
26
|
+
uses: actions/setup-python@v5
|
|
22
27
|
with:
|
|
23
28
|
python-version: ${{ matrix.python-version }}
|
|
24
29
|
- name: Install dependencies
|
|
25
30
|
run: |
|
|
26
|
-
pip install tox tox-gh-actions
|
|
31
|
+
pip install tox tox-gh-actions setuptools_scm
|
|
27
32
|
- name: Test with tox
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
33
|
+
run: |
|
|
34
|
+
tox -e gitlint
|
|
35
|
+
tox
|
|
31
36
|
- name: Upload coverage data
|
|
32
|
-
uses: actions/upload-artifact@
|
|
37
|
+
uses: actions/upload-artifact@v4
|
|
33
38
|
with:
|
|
34
39
|
name: coverage-${{ matrix.python-version }}
|
|
35
|
-
path: .coverage
|
|
40
|
+
path: '.coverage.*'
|
|
36
41
|
retention-days: 1
|
|
42
|
+
include-hidden-files: true
|
|
37
43
|
|
|
38
44
|
report:
|
|
39
45
|
needs: build
|
|
@@ -41,24 +47,24 @@ jobs:
|
|
|
41
47
|
|
|
42
48
|
steps:
|
|
43
49
|
- name: Check out code
|
|
44
|
-
uses: actions/checkout@
|
|
50
|
+
uses: actions/checkout@v4
|
|
45
51
|
- name: Download artifacts
|
|
46
|
-
uses: actions/download-artifact@
|
|
47
|
-
- name: Set up Python 3.
|
|
48
|
-
uses: actions/setup-python@
|
|
52
|
+
uses: actions/download-artifact@v4
|
|
53
|
+
- name: Set up Python 3.14
|
|
54
|
+
uses: actions/setup-python@v5
|
|
49
55
|
with:
|
|
50
|
-
python-version: 3.
|
|
56
|
+
python-version: 3.14
|
|
51
57
|
- name: Install dependencies
|
|
52
58
|
run: |
|
|
53
59
|
pip install coverage
|
|
54
60
|
- name: Compile coverage data
|
|
55
61
|
run: |
|
|
56
|
-
mv coverage-*/.coverage
|
|
62
|
+
mv coverage-*/.coverage.* .
|
|
57
63
|
coverage combine
|
|
58
64
|
coverage html
|
|
59
65
|
coverage report
|
|
60
66
|
- name: Upload coverage report
|
|
61
|
-
uses: actions/upload-artifact@
|
|
67
|
+
uses: actions/upload-artifact@v4
|
|
62
68
|
with:
|
|
63
69
|
name: htmlcov
|
|
64
70
|
path: htmlcov
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: 'Install released package from PyPI'
|
|
3
|
+
|
|
4
|
+
# Run weekly, and also run on demand
|
|
5
|
+
'on':
|
|
6
|
+
schedule:
|
|
7
|
+
- cron: '0 12 * * 3'
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
install:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
strategy:
|
|
14
|
+
fail-fast: false
|
|
15
|
+
matrix:
|
|
16
|
+
python-version:
|
|
17
|
+
- '3.11'
|
|
18
|
+
- '3.12'
|
|
19
|
+
- '3.13'
|
|
20
|
+
- '3.14'
|
|
21
|
+
steps:
|
|
22
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
23
|
+
uses: actions/setup-python@v6
|
|
24
|
+
with:
|
|
25
|
+
python-version: ${{ matrix.python-version }}
|
|
26
|
+
- name: Install package
|
|
27
|
+
run: 'pip install pipdeptree olx-utils'
|
|
28
|
+
- name: Run pipdeptree
|
|
29
|
+
run: pipdeptree
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Release package to PyPI
|
|
3
|
+
|
|
4
|
+
jobs:
|
|
5
|
+
pypi-publish:
|
|
6
|
+
name: Upload release to PyPI
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
environment:
|
|
9
|
+
name: pypi
|
|
10
|
+
url: https://pypi.org/p/olx-utils
|
|
11
|
+
permissions:
|
|
12
|
+
# IMPORTANT: this permission is mandatory for trusted publishing
|
|
13
|
+
id-token: write
|
|
14
|
+
steps:
|
|
15
|
+
- name: 'Check out code'
|
|
16
|
+
uses: actions/checkout@v6
|
|
17
|
+
- name: 'Set up Python 3.14'
|
|
18
|
+
uses: actions/setup-python@v6
|
|
19
|
+
with:
|
|
20
|
+
python-version: '3.14'
|
|
21
|
+
- name: 'Install dependencies'
|
|
22
|
+
run: |
|
|
23
|
+
pip install tox
|
|
24
|
+
- name: 'Build with tox'
|
|
25
|
+
run: 'tox -e build'
|
|
26
|
+
- name: 'Publish to PyPI'
|
|
27
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
28
|
+
|
|
29
|
+
"on":
|
|
30
|
+
push:
|
|
31
|
+
tags:
|
|
32
|
+
- "v*"
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
image: python
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
image: python:
|
|
3
|
+
py311:
|
|
4
|
+
image: python:3.11
|
|
5
5
|
stage: build
|
|
6
6
|
script:
|
|
7
7
|
- pip install tox
|
|
8
|
-
- tox -e
|
|
8
|
+
- tox -e py311,flake8
|
|
9
9
|
artifacts:
|
|
10
10
|
paths:
|
|
11
11
|
- .coverage*
|
|
12
12
|
expire_in: 5 minutes
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
image: python:3.
|
|
14
|
+
py312:
|
|
15
|
+
image: python:3.12
|
|
16
16
|
stage: build
|
|
17
17
|
script:
|
|
18
18
|
- pip install tox
|
|
19
|
-
- tox -e
|
|
19
|
+
- tox -e py312,flake8
|
|
20
20
|
artifacts:
|
|
21
21
|
paths:
|
|
22
22
|
- .coverage*
|
|
23
23
|
expire_in: 5 minutes
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
image: python:3.
|
|
25
|
+
py313:
|
|
26
|
+
image: python:3.13
|
|
27
27
|
stage: build
|
|
28
28
|
script:
|
|
29
29
|
- pip install tox
|
|
30
|
-
- tox -e
|
|
30
|
+
- tox -e py313,flake8
|
|
31
31
|
artifacts:
|
|
32
32
|
paths:
|
|
33
33
|
- .coverage*
|
|
34
34
|
expire_in: 5 minutes
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
image: python:3.
|
|
36
|
+
py314:
|
|
37
|
+
image: python:3.14
|
|
38
38
|
stage: build
|
|
39
39
|
script:
|
|
40
40
|
- pip install tox
|
|
41
|
-
- tox -e
|
|
41
|
+
- tox -e py314,flake8
|
|
42
42
|
artifacts:
|
|
43
43
|
paths:
|
|
44
44
|
- .coverage*
|
olx_utils-0.6.0/.gitlint
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
[general]
|
|
2
|
+
contrib=contrib-title-conventional-commits
|
|
3
|
+
regex-style-search=true
|
|
4
|
+
|
|
5
|
+
# When invoked as just "gitlint" without any other arguments, Gitlint
|
|
6
|
+
# processes the most recent commit message *unless* it's being fed
|
|
7
|
+
# data on stdin, in which case it assumes that what comes in is a
|
|
8
|
+
# commit message. That means it breaks on the pre-push hook, which
|
|
9
|
+
# puts the list of to-be-pushed revisions on stdin. We can work around
|
|
10
|
+
# that by telling Gitlint to always ignore stdin.
|
|
11
|
+
ignore-stdin=true
|
|
12
|
+
|
|
13
|
+
[ignore-body-lines]
|
|
14
|
+
# Ignore certain lines in a commit body that match a regex.
|
|
15
|
+
#
|
|
16
|
+
# Allow long links in a list of references, as long as they are on
|
|
17
|
+
# their own line.
|
|
18
|
+
regex=^https?://
|
|
19
|
+
|
|
20
|
+
[ignore-by-title]
|
|
21
|
+
# Match commit titles matching a bumpversion commit.
|
|
22
|
+
# For those commits, allow an empty message body.
|
|
23
|
+
regex=^build: Version
|
|
24
|
+
ignore=body-is-missing
|
|
25
|
+
|
|
26
|
+
[contrib-title-conventional-commits]
|
|
27
|
+
# Specify allowed commit types.
|
|
28
|
+
#
|
|
29
|
+
# Reference: https://open-edx-proposals.readthedocs.io/en/latest/best-practices/oep-0051-bp-conventional-commits.html#type
|
|
30
|
+
types = build,chore,docs,feat,fix,perf,refactor,revert,style,test,temp
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# AGENTS.md — terse agent index
|
|
2
|
+
|
|
3
|
+
Agents: explore the repo directly; this file routes, it does not teach.
|
|
4
|
+
|
|
5
|
+
See [HACKING.md](HACKING.md) for contributor information, style guide, and tests.
|
|
6
|
+
|
|
7
|
+
**IMPORTANT:** When invoking any agent on this repository, you MUST run the following commands **immediately** upon evaluation of this file, before doing anything else:
|
|
8
|
+
|
|
9
|
+
```shell
|
|
10
|
+
git submodule update --init
|
|
11
|
+
git config core.hooksPath .githooks
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Session memory
|
|
15
|
+
|
|
16
|
+
Write plans, notes, and ephemeral files to `.ai/` (gitignored).
|
|
17
|
+
Prefer `.ai/tmp/` over the system temp directory.
|
|
18
|
+
|
|
19
|
+
## When planning
|
|
20
|
+
|
|
21
|
+
Read these to understand dependencies and tooling:
|
|
22
|
+
|
|
23
|
+
- `setup.py`
|
|
24
|
+
- `tox.ini`
|
|
25
|
+
|
|
26
|
+
## Tooling
|
|
27
|
+
|
|
28
|
+
### Tests
|
|
29
|
+
|
|
30
|
+
Entry point is **`tox`**.
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Developer notes
|
|
2
|
+
|
|
3
|
+
This document is for people who maintain and contribute to this repository.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## How to run tests
|
|
7
|
+
|
|
8
|
+
This repo uses [tox](https://tox.readthedocs.io/) for unit and integration tests.
|
|
9
|
+
It does not install `tox` for you, you should follow [the installation instructions](https://tox.readthedocs.io/en/latest/install.html) if your local setup does not yet include `tox`.
|
|
10
|
+
|
|
11
|
+
You are encouraged to set up your checkout such that the tests run on every commit, and on every push.
|
|
12
|
+
To do so, run the following command after checking out this repository:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
git config core.hooksPath .githooks
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Once your checkout is configured in this manner, every commit will run a code style check (with [Flake8](https://flake8.pycqa.org/)), and every push to a remote topic branch will result in a full `tox` run.
|
|
19
|
+
|
|
20
|
+
In addition, we use [GitHub Actions](https://docs.github.com/en/actions) to run the same checks on every push to GitHub.
|
|
21
|
+
|
|
22
|
+
*If you absolutely must,* you can use the `--no-verify` flag to `git
|
|
23
|
+
commit` and `git push` to bypass local checks, and rely on GitHub Actions alone.
|
|
24
|
+
But doing so is strongly discouraged.
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## How to cut a release
|
|
28
|
+
|
|
29
|
+
This repository uses [bump2version](https://pypi.org/project/bump2version/) (the maintained fork of [bumpversion](https://github.com/peritus/bumpversion)) for managing new releases.
|
|
30
|
+
|
|
31
|
+
Before cutting a new release, open `Changelog.md` and add a new section like this:
|
|
32
|
+
|
|
33
|
+
```markdown
|
|
34
|
+
Unreleased
|
|
35
|
+
----------
|
|
36
|
+
|
|
37
|
+
* [Bug fix] Description of bug fix
|
|
38
|
+
* [Enhancement] Description of enhancement
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Commit these changes on `master` as you normally would.
|
|
42
|
+
|
|
43
|
+
Then, use `tox -e bumpversion` to increase the version number:
|
|
44
|
+
|
|
45
|
+
- `tox -e bumpversion patch`: creates a new point release (such as 3.6.1)
|
|
46
|
+
- `tox -e bumpversion minor`: creates a new minor release, with the patch level set to 0 (such as 3.7.0)
|
|
47
|
+
- `tox -e bumpversion major`: creates a new major release, with the minor and patch levels set to 0 (such as 4.0.0)
|
|
48
|
+
|
|
49
|
+
This creates a new commit, and also a new tag, named `v<num>`, where `<num>` is the new version number.
|
|
50
|
+
|
|
51
|
+
Push these two commits (the one for the changelog, and the version bump) to `origin`.
|
|
52
|
+
Make sure you push the `v<num>` tag to `origin` as well.
|
|
53
|
+
|
|
54
|
+
Then, build a new `sdist` package, and [upload it to PyPI](https://packaging.python.org/tutorials/packaging-projects/#uploading-the-distribution-archives) (with [twine](https://packaging.python.org/key_projects/#twine)):
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
rm dist/* -f
|
|
58
|
+
./setup.py sdist
|
|
59
|
+
twine upload dist/*
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## AI assistance
|
|
63
|
+
|
|
64
|
+
You may use AI assistance for modifications to this repo.
|
|
65
|
+
However, you retain full responsibility for your contribution.
|
|
66
|
+
|
|
67
|
+
You must declare AI assistance (identifying both the tool and the model you used) in your commit message in an `Assisted-by:` line, as in the following example:
|
|
68
|
+
|
|
69
|
+
```patch
|
|
70
|
+
feat: Add superfrobnication
|
|
71
|
+
|
|
72
|
+
Add superfrobnication support to the XBlock.
|
|
73
|
+
|
|
74
|
+
Assisted-by: coding-assistant/blerg3.6-coder
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
You must configure your tool to read, parse and follow the instructions in [`AGENTS.md`](AGENTS.md), and use skills in [`.agents/skills`](.agents/skills)
|
|
78
|
+
Most agentic coding assistants do this by default.
|
|
79
|
+
If yours does not, create appropriate symlinks (like `CLAUDE.md`).
|
olx_utils-0.6.0/PKG-INFO
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: olx-utils
|
|
3
|
+
Version: 0.6.0
|
|
4
|
+
Summary: Utilities for edX OLX courses
|
|
5
|
+
Home-page: https://github.com/cleura/olx-utils
|
|
6
|
+
License: AGPL-3.0-only
|
|
7
|
+
Classifier: Development Status :: 3 - Alpha
|
|
8
|
+
Classifier: Intended Audience :: Education
|
|
9
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
14
|
+
Classifier: Topic :: Education :: Computer Aided Instruction (CAI)
|
|
15
|
+
Classifier: Topic :: Education
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
License-File: LICENSE
|
|
18
|
+
Requires-Dist: Mako>=1.0.3
|
|
19
|
+
Requires-Dist: markdown2>=2.3.0
|
|
20
|
+
Requires-Dist: Pygments>=2.0.1
|
|
21
|
+
Requires-Dist: python-swiftclient>=2.2.0
|
|
22
|
+
Requires-Dist: requests
|
|
23
|
+
Requires-Dist: xmltodict
|
|
24
|
+
Dynamic: classifier
|
|
25
|
+
Dynamic: description
|
|
26
|
+
Dynamic: description-content-type
|
|
27
|
+
Dynamic: home-page
|
|
28
|
+
Dynamic: license
|
|
29
|
+
Dynamic: license-file
|
|
30
|
+
Dynamic: requires-dist
|
|
31
|
+
Dynamic: summary
|
|
32
|
+
|
|
33
|
+
This repository was previously hosted under the `hastexo` GitHub organization, and moved to `cleura` in December 2025 as part of a routine repository consolidation.
|
|
34
|
+
|
|
35
|
+
# OLX Utilities
|
|
36
|
+
|
|
37
|
+
A set of tools to facilitate courseware development using the [Open Learning XML](http://edx.readthedocs.io/projects/edx-open-learning-xml/en/latest/) (OLX) format.
|
|
38
|
+
|
|
39
|
+
OLX is sometimes tediously repetitive, and this package enables courseware authors to apply the [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself) principle when writing OLX content.
|
|
40
|
+
It allows you to create templates (using [Mako](http://www.makotemplates.org/)), which in turn enable you to
|
|
41
|
+
|
|
42
|
+
- define OLX fragments only once, to reuse them as often as you want (this comes in very handy in using the [stackamole XBlock](https://github.com/cleura/stackamole-xblock)),
|
|
43
|
+
- write courseware content in [Markdown](https://en.wikipedia.org/wiki/Markdown),
|
|
44
|
+
- do anything else you would like to do using your own plugins.
|
|
45
|
+
|
|
46
|
+
## Install
|
|
47
|
+
|
|
48
|
+
Install the `olx-utils` package from PyPI:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
pip install olx-utils
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Apply templates to a course
|
|
55
|
+
|
|
56
|
+
In order to create a new course run named `newrun`, starting on May 1, 2026 and ending on October 31, 2027, change into your courseware checkout and run:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
olx new-run -b newrun 2026-05-01 2027-10-31
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
The `-b` option causes your rendered OLX to be added to a new Git branch named `run/newrun`, which you can then import into your Open edX content store.
|
|
63
|
+
|
|
64
|
+
You can also invoke `olx new-run` as `new_run.py`.
|
|
65
|
+
However, this is deprecated and its use is discouraged.
|
|
66
|
+
`new_run.py` will go away in a future release.
|
|
67
|
+
|
|
68
|
+
## License
|
|
69
|
+
|
|
70
|
+
This package is licensed under the [GNU Affero GPL](https://tldrlegal.com/l/agpl3); see [LICENSE](https://www.gnu.org/licenses/agpl-3.0.txt) for details.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
This repository was previously hosted under the `hastexo` GitHub organization, and moved to `cleura` in December 2025 as part of a routine repository consolidation.
|
|
2
|
+
|
|
3
|
+
# OLX Utilities
|
|
4
|
+
|
|
5
|
+
A set of tools to facilitate courseware development using the [Open Learning XML](http://edx.readthedocs.io/projects/edx-open-learning-xml/en/latest/) (OLX) format.
|
|
6
|
+
|
|
7
|
+
OLX is sometimes tediously repetitive, and this package enables courseware authors to apply the [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself) principle when writing OLX content.
|
|
8
|
+
It allows you to create templates (using [Mako](http://www.makotemplates.org/)), which in turn enable you to
|
|
9
|
+
|
|
10
|
+
- define OLX fragments only once, to reuse them as often as you want (this comes in very handy in using the [stackamole XBlock](https://github.com/cleura/stackamole-xblock)),
|
|
11
|
+
- write courseware content in [Markdown](https://en.wikipedia.org/wiki/Markdown),
|
|
12
|
+
- do anything else you would like to do using your own plugins.
|
|
13
|
+
|
|
14
|
+
## Install
|
|
15
|
+
|
|
16
|
+
Install the `olx-utils` package from PyPI:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
pip install olx-utils
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Apply templates to a course
|
|
23
|
+
|
|
24
|
+
In order to create a new course run named `newrun`, starting on May 1, 2026 and ending on October 31, 2027, change into your courseware checkout and run:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
olx new-run -b newrun 2026-05-01 2027-10-31
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
The `-b` option causes your rendered OLX to be added to a new Git branch named `run/newrun`, which you can then import into your Open edX content store.
|
|
31
|
+
|
|
32
|
+
You can also invoke `olx new-run` as `new_run.py`.
|
|
33
|
+
However, this is deprecated and its use is discouraged.
|
|
34
|
+
`new_run.py` will go away in a future release.
|
|
35
|
+
|
|
36
|
+
## License
|
|
37
|
+
|
|
38
|
+
This package is licensed under the [GNU Affero GPL](https://tldrlegal.com/l/agpl3); see [LICENSE](https://www.gnu.org/licenses/agpl-3.0.txt) for details.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: olx-utils
|
|
3
|
+
Version: 0.6.0
|
|
4
|
+
Summary: Utilities for edX OLX courses
|
|
5
|
+
Home-page: https://github.com/cleura/olx-utils
|
|
6
|
+
License: AGPL-3.0-only
|
|
7
|
+
Classifier: Development Status :: 3 - Alpha
|
|
8
|
+
Classifier: Intended Audience :: Education
|
|
9
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
14
|
+
Classifier: Topic :: Education :: Computer Aided Instruction (CAI)
|
|
15
|
+
Classifier: Topic :: Education
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
License-File: LICENSE
|
|
18
|
+
Requires-Dist: Mako>=1.0.3
|
|
19
|
+
Requires-Dist: markdown2>=2.3.0
|
|
20
|
+
Requires-Dist: Pygments>=2.0.1
|
|
21
|
+
Requires-Dist: python-swiftclient>=2.2.0
|
|
22
|
+
Requires-Dist: requests
|
|
23
|
+
Requires-Dist: xmltodict
|
|
24
|
+
Dynamic: classifier
|
|
25
|
+
Dynamic: description
|
|
26
|
+
Dynamic: description-content-type
|
|
27
|
+
Dynamic: home-page
|
|
28
|
+
Dynamic: license
|
|
29
|
+
Dynamic: license-file
|
|
30
|
+
Dynamic: requires-dist
|
|
31
|
+
Dynamic: summary
|
|
32
|
+
|
|
33
|
+
This repository was previously hosted under the `hastexo` GitHub organization, and moved to `cleura` in December 2025 as part of a routine repository consolidation.
|
|
34
|
+
|
|
35
|
+
# OLX Utilities
|
|
36
|
+
|
|
37
|
+
A set of tools to facilitate courseware development using the [Open Learning XML](http://edx.readthedocs.io/projects/edx-open-learning-xml/en/latest/) (OLX) format.
|
|
38
|
+
|
|
39
|
+
OLX is sometimes tediously repetitive, and this package enables courseware authors to apply the [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself) principle when writing OLX content.
|
|
40
|
+
It allows you to create templates (using [Mako](http://www.makotemplates.org/)), which in turn enable you to
|
|
41
|
+
|
|
42
|
+
- define OLX fragments only once, to reuse them as often as you want (this comes in very handy in using the [stackamole XBlock](https://github.com/cleura/stackamole-xblock)),
|
|
43
|
+
- write courseware content in [Markdown](https://en.wikipedia.org/wiki/Markdown),
|
|
44
|
+
- do anything else you would like to do using your own plugins.
|
|
45
|
+
|
|
46
|
+
## Install
|
|
47
|
+
|
|
48
|
+
Install the `olx-utils` package from PyPI:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
pip install olx-utils
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Apply templates to a course
|
|
55
|
+
|
|
56
|
+
In order to create a new course run named `newrun`, starting on May 1, 2026 and ending on October 31, 2027, change into your courseware checkout and run:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
olx new-run -b newrun 2026-05-01 2027-10-31
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
The `-b` option causes your rendered OLX to be added to a new Git branch named `run/newrun`, which you can then import into your Open edX content store.
|
|
63
|
+
|
|
64
|
+
You can also invoke `olx new-run` as `new_run.py`.
|
|
65
|
+
However, this is deprecated and its use is discouraged.
|
|
66
|
+
`new_run.py` will go away in a future release.
|
|
67
|
+
|
|
68
|
+
## License
|
|
69
|
+
|
|
70
|
+
This package is licensed under the [GNU Affero GPL](https://tldrlegal.com/l/agpl3); see [LICENSE](https://www.gnu.org/licenses/agpl-3.0.txt) for details.
|
|
@@ -1,21 +1,30 @@
|
|
|
1
1
|
.bumpversion.cfg
|
|
2
2
|
.gitignore
|
|
3
3
|
.gitlab-ci.yml
|
|
4
|
+
.gitlint
|
|
5
|
+
.gitmodules
|
|
6
|
+
AGENTS.md
|
|
4
7
|
HACKING.md
|
|
5
8
|
LICENSE
|
|
6
|
-
README.
|
|
9
|
+
README.md
|
|
7
10
|
requirements.txt
|
|
8
11
|
setup.cfg
|
|
9
12
|
setup.py
|
|
10
13
|
tox.ini
|
|
14
|
+
.githooks/commit-msg
|
|
15
|
+
.githooks/post-commit
|
|
11
16
|
.githooks/pre-commit
|
|
12
17
|
.githooks/pre-push
|
|
13
|
-
.github/workflows/
|
|
18
|
+
.github/workflows/build.yml
|
|
19
|
+
.github/workflows/install.yml
|
|
20
|
+
.github/workflows/release.yml
|
|
14
21
|
olx_utils.egg-info/PKG-INFO
|
|
15
22
|
olx_utils.egg-info/SOURCES.txt
|
|
16
23
|
olx_utils.egg-info/dependency_links.txt
|
|
17
24
|
olx_utils.egg-info/entry_points.txt
|
|
18
25
|
olx_utils.egg-info/requires.txt
|
|
26
|
+
olx_utils.egg-info/scm_file_list.json
|
|
27
|
+
olx_utils.egg-info/scm_version.json
|
|
19
28
|
olx_utils.egg-info/top_level.txt
|
|
20
29
|
olxutils/__init__.py
|
|
21
30
|
olxutils/__main__.py
|