Skip to content

Commit

Permalink
Include scripts in source distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
brunato committed Aug 20, 2024
1 parent 82ff2d4 commit e1dafd2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ include doc/*

recursive-include xmlschema *
recursive-include tests *
recursive-include scripts *

exclude xmlschema/locale/xmlschema.pot
global-exclude *.py[cod]
7 changes: 4 additions & 3 deletions scripts/make_translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@

COPYRIGHT_HOLDER = r", 2016, SISSA (International School for Advanced Studies)."

parser = argparse.ArgumentParser(description="Translation files generator utility for xmlschema")
parser = argparse.ArgumentParser(
description="Translation files generator utility for xmlschema"
)
parser.add_argument(
'-L', '--directory', metavar='LOCALE-DIR', type=str, default=None,
help="use a custom locale directory (for extra local translations)"
Expand Down Expand Up @@ -58,7 +60,7 @@

template_file = locale_dir.joinpath('xmlschema.pot')
if args.template:
print(f"+++ Generate the template file ...")
print("+++ Generate the template file ...")

status, xgettext_cmd = subprocess.getstatusoutput('which xgettext')
assert status == 0, "xgettext command is not available!"
Expand Down Expand Up @@ -146,4 +148,3 @@
sys.exit(1)

print(f' ... file {str(mo_file)} written\n')

1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ deps =
commands =
flake8 xmlschema
flake8 tests
flake8 scripts

[testenv:mypy-py{38,39,310,311,312,py3}]
deps =
Expand Down

0 comments on commit e1dafd2

Please sign in to comment.