Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/release-paths.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
# Native source-only edits require updated shipped DLL/dylib before a release.
RuEn/**
scripts/package.py
LICENSE
3 changes: 3 additions & 0 deletions scripts/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('--version', help='GitVersion MajorMinorPatch for release packages')
args = parser.parse_args()
license_file = root / 'LICENSE'
if not license_file.is_file() or not license_file.read_text(encoding='utf-8').strip():
parser.error('Distribution license must exist and be nonempty')
manifest_file = root / 'RuEn/RuEn.manifest'
manifest = json.loads(manifest_file.read_text(encoding='utf-8'))
version = args.version or manifest['version']
Expand Down
1 change: 1 addition & 0 deletions tests/test_release_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def eligible_paths(changed):
"RuEn/libruen_v2.dylib",
"RuEn/ruen_filter.dll",
"scripts/package.py",
"LICENSE",
)

NON_RUNTIME_INPUTS = (
Expand Down
Loading