-
-
Notifications
You must be signed in to change notification settings - Fork 950
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #190 from SunshineStream/nightly
v0.14.0
- Loading branch information
Showing
133 changed files
with
4,215 additions
and
1,536 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,22 @@ | ||
## Description | ||
|
||
Please include a summary of the changes. | ||
<!--- Please include a summary of the changes. ---> | ||
|
||
### Screenshot | ||
|
||
Include screenshots if the changes are UI-related. | ||
<!--- Include screenshots if the changes are UI-related. ---> | ||
|
||
### Issues Fixed or Closed | ||
|
||
<!--- Delete if not relevant. ---> | ||
- Fixes #(issue) | ||
|
||
## Type of Change | ||
|
||
Please delete options that are not relevant. | ||
|
||
<!--- Please delete options that are not relevant. ---> | ||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) | ||
|
||
## Checklist | ||
|
||
<!--- DO NOT delete any options here. It is okay to have items unchecked! ---> | ||
- [ ] My code follows the style guidelines of this project | ||
- [ ] I have performed a self-review of my own code | ||
- [ ] I have commented my code, particularly in hard-to-understand areas | ||
- [ ] I have added or updated the documentation blocks for new or existing components | ||
- [ ] I have added or updated the docstring/documentation-blocks for new or existing methods/components |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
name: localize | ||
|
||
on: | ||
push: | ||
branches: [nightly] | ||
paths: # prevents workflow from running unless these files change | ||
- '.github/workflows/localize.yml' | ||
- 'sunshine/**' | ||
- 'locale/sunshine.po' | ||
workflow_dispatch: | ||
|
||
env: | ||
file: ./locale/sunshine.po | ||
|
||
jobs: | ||
localize: | ||
name: Update Localization | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Python 3.9 | ||
uses: actions/setup-python@v4 # https://github.com/actions/setup-python | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Set up Python 3.9 Dependencies | ||
run: | | ||
cd ./scripts | ||
python -m pip install --upgrade pip setuptools | ||
python -m pip install -r requirements.txt | ||
- name: Set up xgettext | ||
run: | | ||
sudo apt-get update -y && \ | ||
sudo apt-get --reinstall install -y \ | ||
gettext | ||
- name: Update Strings | ||
run: | | ||
# first, try to remove existing file as xgettext does not remove unused translations | ||
if [ -f "${{ env.file }}" ]; | ||
then | ||
rm ${{ env.file }} | ||
echo "new_file=false" >> $GITHUB_ENV | ||
else | ||
echo "new_file=true" >> $GITHUB_ENV | ||
fi | ||
# extract the new strings | ||
python ./scripts/_locale.py --extract | ||
- name: git diff | ||
if: ${{ env.new_file == 'false' }} | ||
run: | | ||
# disable the pager | ||
git config --global pager.diff false | ||
# print the git diff | ||
git diff locale/sunshine.po | ||
# set the variable with minimal output | ||
OUTPUT=$(git diff --numstat locale/sunshine.po) | ||
echo "git_diff=${OUTPUT}" >> $GITHUB_ENV | ||
- name: git reset | ||
# only run if a single line changed (date/time) and file already existed | ||
if: ${{ env.git_diff == '1 1 locale/sunshine.po' && env.new_file == 'false' }} | ||
run: | | ||
git reset --hard | ||
- name: Create/Update Pull Request | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
add-paths: | | ||
locale/*.po | ||
token: ${{ secrets.GH_PAT }} # must trigger PR tests | ||
commit-message: New localization template | ||
branch: localize/update | ||
delete-branch: true | ||
base: nightly | ||
title: New Babel Updates | ||
body: | | ||
Update report | ||
- Updated with *today's* date | ||
- Auto-generated by [create-pull-request][1] | ||
[1]: https://github.com/peter-evans/create-pull-request | ||
labels: | | ||
babel | ||
l10n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# .readthedocs.yaml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the version of Python | ||
build: | ||
os: ubuntu-20.04 | ||
tools: | ||
python: "3.9" | ||
|
||
## apt packages required packages to run cmake on sunshine, note that additional packages are required | ||
# apt_packages: | ||
# - cmake | ||
# - ffmpeg | ||
# - libboost-filesystem-dev | ||
# - libboost-log-dev | ||
# - libboost-thread-dev | ||
|
||
## run cmake | ||
# jobs: | ||
# pre_build: | ||
# - cmake . | ||
|
||
## Include the submodules, required for cmake | ||
#submodules: | ||
# include: all | ||
# recursive: true | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
builder: html | ||
configuration: docs/source/conf.py | ||
fail_on_warning: true | ||
|
||
# Using Sphinx, build docs in additional formats | ||
formats: all | ||
|
||
python: | ||
install: | ||
- requirements: ./scripts/requirements.txt | ||
system_packages: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.