-
Notifications
You must be signed in to change notification settings - Fork 5
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 #38 from ausgerechnet/v0.9.16
v0.10.0
- Loading branch information
Showing
81 changed files
with
34,234 additions
and
2,346 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Build & Test | ||
|
||
on: [workflow_dispatch, push] | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: [ 3.6, 3.7, 3.8, 3.9 ] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install CWB | ||
run: | | ||
sudo apt-get install libncurses5-dev | ||
svn co http://svn.code.sf.net/p/cwb/code/cwb/trunk cwb | ||
cd cwb | ||
sed -i 's/SITE=beta-install/SITE=standard/' config.mk | ||
sudo ./install-scripts/install-linux | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -q pipenv | ||
make install | ||
- name: Lint | ||
continue-on-error: true | ||
run: | | ||
make lint | ||
- name: Build | ||
run: | | ||
make compile | ||
make build | ||
- name: Test | ||
run: | | ||
make test |
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,46 @@ | ||
name: Create Dist & Publish on PyPI | ||
|
||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
|
||
publish: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install CWB | ||
run: | | ||
sudo apt-get install libncurses5-dev | ||
svn co http://svn.code.sf.net/p/cwb/code/cwb/trunk cwb | ||
cd cwb | ||
sed -i 's/SITE=beta-install/SITE=standard/' config.mk | ||
sudo ./install-scripts/install-linux | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.8' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -q setuptools wheel twine pipenv | ||
make install | ||
- name: Build | ||
run: | | ||
make compile | ||
make build | ||
- name: Test | ||
run: | | ||
make test | ||
- name: Create Dist | ||
run: | | ||
make dist | ||
- name: Publish | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
legacy/ | ||
|
||
*.so | ||
|
||
*.pyc | ||
__pycache__/ | ||
|
||
|
@@ -19,5 +21,3 @@ build/ | |
.Rproj.user | ||
.RData | ||
.Rhistory | ||
|
||
Pipfile.lock |
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,19 @@ | ||
# pylint config | ||
[MASTER] | ||
ignore-patterns=^test.* | ||
[BASIC] | ||
# variable-naming-style=any | ||
# argument-naming-style=any | ||
argument-rgx=[A-Za-z_][A-Za-z0-9_]{1,30}$ | ||
variable-rgx=[A-Za-z_][A-Za-z0-9_]{1,30}$ | ||
method-rgx=[A-Za-z_][A-Za-z0-9_]{1,30}$ | ||
attr-rgx=[A-Za-z_][A-Za-z0-9_]{1,30}$ | ||
module-rgx=[A-Za-z_][A-Za-z0-9_]{1,30}$ | ||
[MESSAGES CONTROL] | ||
disable=too-few-public-methods, | ||
no-name-in-module, | ||
fixme, | ||
too-many-arguments, | ||
too-many-instance-attributes, | ||
logging-not-lazy, | ||
line-too-long, |
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,64 @@ | ||
FROM ubuntu:20.04 | ||
|
||
########################## | ||
# INSTALL OS DEPENDENCIES | ||
########################## | ||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive \ | ||
apt-get install --no-install-recommends -y \ | ||
apt-utils \ | ||
autoconf \ | ||
bison \ | ||
flex \ | ||
gcc \ | ||
libc6-dev \ | ||
libglib2.0-0 \ | ||
libglib2.0-dev \ | ||
libncurses5 \ | ||
libncurses5-dev \ | ||
libpcre3-dev \ | ||
libreadline8 \ | ||
libreadline-dev \ | ||
make \ | ||
pkg-config \ | ||
subversion \ | ||
git \ | ||
python3 \ | ||
python3-dev \ | ||
python3-pip \ | ||
python3-setuptools \ | ||
cython3 \ | ||
less \ | ||
mg | ||
|
||
|
||
##################### | ||
# INSTALL LATEST CWB | ||
##################### | ||
RUN svn co http://svn.code.sf.net/p/cwb/code/cwb/trunk /cwb | ||
WORKDIR /cwb | ||
RUN sed -i 's/SITE=beta-install/SITE=standard/' config.mk &&\ | ||
./install-scripts/install-linux | ||
|
||
|
||
############################## | ||
# INSTALL PYTHON DEPENDENCIES | ||
############################## | ||
RUN python3 -m pip install --upgrade pip && \ | ||
python3 -m pip install -q pipenv | ||
|
||
WORKDIR /cwb-ccc | ||
COPY . /cwb-ccc | ||
|
||
RUN make clean | ||
RUN make install | ||
RUN make compile | ||
RUN make build | ||
|
||
########## | ||
# TESTING | ||
########## | ||
# update registry directory is done in makefile | ||
# RUN HERE=$(pwd) && \ | ||
# sed -i "s|HOME .*|HOME $HERE/tests/corpora/data/germaparl1386|g" tests/corpora/registry/germaparl1386 | ||
RUN make test |
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 @@ | ||
global-include *.pyx |
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.