Skip to content

Commit

Permalink
build: added openedx_tagging to build and test config files
Browse files Browse the repository at this point in the history
  • Loading branch information
pomegranited authored and ormsbee committed Jun 27, 2023
1 parent eb59338 commit e2b4f02
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
[run]
branch = True
data_file = .coverage
source=openedx_learning
source =
openedx_learning
openedx_tagging
omit =
test_settings
*migrations*
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit e2b4f02

Please sign in to comment.