diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 03ddfb79af466854b50db957d7d84f7340319304..c79bd6b832362c2b907f17b02dda035439fa5aa1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,6 +9,7 @@ cache: stages: - check_style + - tests - push_wheel pep8: @@ -21,6 +22,14 @@ docstyle: script: - tox -v -e docstyle +test: + stage: tests + before_script: + - apt-get install -y language-pack-pl-base + - dpkg-reconfigure locales + script: + - python setup.py test + push_wheel: before_script: - pip install twine @@ -34,4 +43,3 @@ push_wheel: --repository-url https://pypi.clarin-pl.eu/ -u $PIPY_USER -p $PIPY_PASS dist/plwn_api*.whl - diff --git a/plwn/download.py b/plwn/download.py index e38526c2ee8aac6a8b55cdfd3b5d11d0b447d338..f5647645180dea0dcf739020ef29b272d113a24a 100644 --- a/plwn/download.py +++ b/plwn/download.py @@ -1,11 +1,11 @@ """Implementation of download method.""" -import configparser import os import xml.etree.ElementTree as ET import re import requests from six.moves.urllib.request import urlopen +from six.moves import configparser config = configparser.ConfigParser() diff --git a/setup.py b/setup.py index fad428729a86384ba43d92a9283180427d2f8600..32793b9c8ffd5c8481ae0eaf59640b5831c36e78 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ import os ENVNAME_DIST_NODEFAULT = 'PLWN_API_DIST_NO_DEFAULT_STORAGE' setup_args = dict( - name='PLWN_API', + name='plwn_api', version='0.24', license='LGPL-3.0+', description='Python API to access plWordNet lexicon',