From e2b4f021376476ee644eb36248205671a03c2391 Mon Sep 17 00:00:00 2001 From: Jillian Vogel Date: Tue, 13 Jun 2023 13:48:06 +0930 Subject: [PATCH] build: added openedx_tagging to build and test config files --- .coveragerc | 4 +++- MANIFEST.in | 1 + Makefile | 5 +++++ README.rst | 1 + tox.ini | 2 +- 5 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.coveragerc b/.coveragerc index 368d3582..32fc62c8 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,7 +1,9 @@ [run] branch = True data_file = .coverage -source=openedx_learning +source = + openedx_learning + openedx_tagging omit = test_settings *migrations* diff --git a/MANIFEST.in b/MANIFEST.in index 6ce1f3b2..8cbdc3a6 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,3 +3,4 @@ include LICENSE.txt include README.rst include requirements/base.in recursive-include openedx_learning *.html *.png *.gif *.js *.css *.jpg *.jpeg *.svg *.py +recursive-include openedx_tagging *.html *.png *.gif *.js *.css *.jpg *.jpeg *.svg *.py diff --git a/Makefile b/Makefile index 2440de3e..3b2e8f1e 100644 --- a/Makefile +++ b/Makefile @@ -77,12 +77,16 @@ extract_translations: ## extract strings to be translated, outputting .mo files rm -rf docs/_build cd openedx_learning && ../manage.py makemessages -l en -v1 -d django cd openedx_learning && ../manage.py makemessages -l en -v1 -d djangojs + cd openedx_tagging && ../manage.py makemessages -l en -v1 -d django + cd openedx_tagging && ../manage.py makemessages -l en -v1 -d djangojs compile_translations: ## compile translation files, outputting .po files for each supported language cd openedx_learning && ../manage.py compilemessages + cd openedx_tagging && ../manage.py compilemessages detect_changed_source_translations: cd openedx_learning && i18n_tool changed + cd openedx_tagging && i18n_tool changed pull_translations: ## pull translations from Transifex tx pull -a -f -t --mode reviewed @@ -92,6 +96,7 @@ push_translations: ## push source translation files (.po) from Transifex dummy_translations: ## generate dummy translation (.po) files cd openedx_learning && i18n_tool dummy + cd openedx_tagging && i18n_tool dummy build_dummy_translations: extract_translations dummy_translations compile_translations ## generate and compile dummy translation files diff --git a/README.rst b/README.rst index 4bf7e06d..5ad362c6 100644 --- a/README.rst +++ b/README.rst @@ -27,6 +27,7 @@ Parts * ``openedx_learning.lib`` is for shared utilities, and may include things like custom field types, plugin registration code, etc. * ``openedx_learning.core`` contains our Core Django apps, where foundational data structures and APIs will live. +* ``openedx_tagging.core`` contains the core Tagging app, which provides data structures and apis for tagging Open edX objects. App Dependencies ~~~~~~~~~~~~~~~~ diff --git a/tox.ini b/tox.ini index 23e2650a..ad8e2cb5 100644 --- a/tox.ini +++ b/tox.ini @@ -31,7 +31,7 @@ match-dir = (?!migrations) [pytest] DJANGO_SETTINGS_MODULE = test_settings -addopts = --cov openedx_learning --cov-report term-missing --cov-report xml +addopts = --cov openedx_learning --cov openedx_tagging --cov-report term-missing --cov-report xml norecursedirs = .* docs requirements site-packages [testenv]