Merge branch 'master' into ankiaddon-filetype-handling

This commit is contained in:
Aristotelis 2020-01-04 02:49:36 +01:00 committed by GitHub
commit 60bae595af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 26 additions and 6 deletions

13
.github/workflows/contrib.yml vendored Normal file
View File

@ -0,0 +1,13 @@
name: Author in CONTRIBUTORS
on: [pull_request]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check
run: |
headAuthor=$(git log -1 --pretty=format:'%ae')
git log --pretty=format:'%ae' CONTRIBUTORS | grep -q "$headAuthor"

View File

@ -19,6 +19,7 @@ support site, it would be great if you could add your name below as well.
********************
Erez Volk <erez.volk@gmail.com>
Aristotelis P. <glutanimate.com/contact>
AMBOSS MD Inc. <https://www.amboss.com/>
********************

5
build
View File

@ -11,7 +11,4 @@ for dir in $DEVEL; do
(cd $dir && make build BUILDFLAGS="$BUILDFLAGS")
done
# add build hash to outputs
ver=$(cat meta/version)
hash=$(cat meta/buildhash)
(cd dist && rename "s/$ver/${ver}+$hash/" *.whl)
helpers/rename-with-buildhash

9
helpers/rename-with-buildhash Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
# add buildhash to output files
top=$(dirname $0)/..
ver=$(cat $top/meta/version)
hash=$(cat $top/meta/buildhash)
rename "s/-${ver}-/-${ver}+${hash}-/" $top/dist/*

View File

@ -23,7 +23,7 @@ from anki.utils import intTime, isWin
class ServerData:
minutes_west: Optional[int]
minutes_west: Optional[int] = None
def Collection(

View File

@ -13,7 +13,7 @@ fi
# activate venv
if [ ! -d pyenv ]; then
python -m venv pyenv
python3 -m venv pyenv
. pyenv/bin/activate
pip install --upgrade pip setuptools
else