Skip to content

Commit

Permalink
Docs bump version and release autosub-0.5.1-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
BingLingGroup committed Jul 31, 2019
1 parent 1d5cdb0 commit 49ff034
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 13 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## TOC

- [[0.5.1-alpha] - 2019-07-31](#051-alpha---2019-07-31)
- [Added](#added051-alpha)
- [Changed](#changed051-alpha)
- [[0.5.0-alpha] - 2019-07-27](#050-alpha---2019-07-27)
- [Added](#added050-alpha)
- [Changed](#changed050-alpha)
Expand All @@ -20,6 +23,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

Click up arrow to go back to TOC.

### [0.5.1-alpha] - 2019-07-31

#### Added(0.5.1-alpha)

- Add translation source lang code auto match.

#### Changed(0.5.1-alpha)

- Fix method list_to_googletrans index error bug.
- Fix unix subprocess.check_output compatibility. [issue #47](https://github.com/BingLingGroup/autosub/issues/47)

<escape><a href = "#TOC">&nbsp;&nbsp;</a></escape>

### [0.5.0-alpha] - 2019-07-27

#### Added(0.5.0-alpha)
Expand Down Expand Up @@ -54,6 +70,8 @@ Click up arrow to go back to TOC.
- Add i18n support. [issue #9](https://github.com/BingLingGroup/autosub/issues/9)
- Add i18n language choice. [issue #45](https://github.com/BingLingGroup/autosub/issues/45)

<escape><a href = "#TOC">&nbsp;&nbsp;</a></escape>

#### Changed(0.5.0-alpha)

- [issue #5](https://github.com/BingLingGroup/autosub/issues/5).
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Click up arrow to go back to TOC.

Autosub is an automatic subtitles generating utility. It can detect speech regions automatically by using Auditok, split the audio files according to regions by using ffmpeg, transcribe speech based on [Google-Speech-v2](https://github.com/gillesdemey/google-speech-v2)([Chrome-Web-Speech-api](https://github.com/agermanidis/autosub/issues/1)) and translate the subtitles' text by using py-googletrans. It currently not supports the latest Google Cloud APIs.

The new features mentioned above are only available after autosub-0.5.0a (0.5.0-alpha). Not available on PyPI or the original repo.
The new features mentioned above are only available after autosub-0.5.1a (0.5.0-alpha). Not available on PyPI or the original repo.

### License

Expand Down Expand Up @@ -120,7 +120,7 @@ Due to the autosub PyPI project is maintained by the original autosub repo's own

Include dependencies installation commands.

Install from `alpha` branch.(autosub-0.5.0a)
Install from `alpha` branch.(autosub-0.5.1a)

```bash
apt install ffmpeg python python-pip git -y
Expand Down Expand Up @@ -163,7 +163,7 @@ Choco installation command is for cmd.(not Powershell)
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
```

Install from `alpha` branch.(autosub-0.5.0a)
Install from `alpha` branch.(autosub-0.5.1a)

```batch
choco install git python2 curl ffmpeg -y
Expand Down
2 changes: 1 addition & 1 deletion autosub/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# For gettext po files

NAME = 'autosub'
VERSION = '0.5.0-alpha'
VERSION = '0.5.1-alpha'
DESCRIPTION = _('Auto-generate subtitles for video/audio/subtitles file.')
LONG_DESCRIPTION = (
_('Autosub is an automatic subtitles generating utility. '
Expand Down
18 changes: 17 additions & 1 deletion docs/CHANGELOG.zh-Hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

## 目录

- [[0.5.1-alpha] - 2019-07-31](#051-alpha---2019-07-27)
- [添加](#添加050-alpha)
- [改动](#改动050-alpha)
- [[0.5.0-alpha] - 2019-07-27](#050-alpha---2019-07-27)
- [添加](#添加050-alpha)
- [改动](#改动050-alpha)
Expand All @@ -19,7 +22,20 @@

点击上箭头以返回目录。

### [[0.5.0-alpha] - 2019-07-27]
### [0.5.1-alpha] - 2019-07-31

#### 添加(0.5.1-alpha)

- 添加翻译源语言代码自动匹配功能。

#### 改动(0.5.1-alpha)

- 修复方法list_to_googletrans的列表越界bug。
- 修复unix subprocess.check_output的兼容性问题。[issue #47](https://github.com/BingLingGroup/autosub/issues/47)

<escape><a href = "#TOC">&nbsp;&nbsp;</a></escape>

### [0.5.0-alpha] - 2019-07-27

#### 添加(0.5.0-alpha)

Expand Down
12 changes: 9 additions & 3 deletions scripts/create_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,15 @@ def copytree(src,
release_name = "autosub"
package_name = release_name

here = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
os.chdir(here)
pyinstaller_dist_path = ".build_and_dist/pyinstaller.build"
dist_path = ".build_and_dist"

if not os.path.isdir(dist_path):
os.makedirs(dist_path)

metadata = {}
os.chdir(os.pardir)
here = os.getcwd()
with open(os.path.join(here, package_name, "metadata.py")) as metafile:
exec(metafile.read(), metadata)

Expand All @@ -64,6 +70,7 @@ def copytree(src,
shutil.rmtree(target_pyi)
os.makedirs(target_pyi)
command = "pipreqs --encoding=utf-8 --force --savepath requirements.txt {}".format(package_name)
print(command)
if sys.platform.startswith('win'):
args = command
else:
Expand Down Expand Up @@ -103,7 +110,6 @@ def copytree(src,
shutil.copy2("binaries/ffprobe.exe", target_nuitka)
shutil.copy2("binaries/ffmpeg.exe", target_pyi)
shutil.copy2("binaries/ffprobe.exe", target_pyi)

command = "7z a -sdel \".release/{release_name}-{version}-win-x64.7z\" \"{target}\"".format(
release_name=release_name,
version=metadata['VERSION'],
Expand Down
9 changes: 4 additions & 5 deletions scripts/nuitka_build.bat
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
@echo off
set output_dir="../.build_and_dist/"
set icon_dir="../docs/icon/autosub.ico"
set package_name="autosub"
set "output_dir=.build_and_dist/"
set "icon_dir=docs/icon/autosub.ico"
set "package_name=autosub"

@echo on
cd %~dp0
call update_requirements.bat
cd ..\
pip install -r requirements.txt
cd scripts
nuitka "../%package_name:~1,-1%" --standalone --output-dir %output_dir% --show-progress --show-scons --show-modules --windows-icon=%icon_dir% --recurse-to=multiprocessing --plugin-enable=multiprocessing --lto --assume-yes-for-downloads
nuitka "%package_name%" --standalone --output-dir %output_dir% --show-progress --show-scons --show-modules --windows-icon=%icon_dir% --recurse-to=multiprocessing --plugin-enable=multiprocessing --lto --assume-yes-for-downloads

0 comments on commit 49ff034

Please sign in to comment.