diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 81a9e4fefb18e6a54f9f44b864124c6a576f51dc..27ceab8d9df90952e9e3e2e9b2cb43354b9105f0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -40,7 +40,7 @@ image: registry.duniter.org/docker/python3/duniterpy-builder:0.0.7 .changes: only: changes: - - sakia/**/*.py + - src/sakia/* - .gitlab-ci.yml - Makefile - requirements_dev.txt diff --git a/setup.py b/setup.py index a18297305d834f600ae103bb7b667c8b1d9dcb6c..3ea347c811e80ebfdf56d6e184a234c8bc576f2c 100644 --- a/setup.py +++ b/setup.py @@ -42,7 +42,7 @@ EDITABLE_REQUIREMENT = re.compile(r'^-e (?P<link>(?P<vcs>git|svn|hg|bzr).+#egg=( install_requires = [] dependency_links = [] -data_files = [('sakia', ['src/sakia/root_servers.yml', 'src/sakia/g1_licence.html'])] +data_files = [('sakia', ['src/sakia/root_servers.yml', 'src/sakia/g1_license.html'])] for requirement in (l.strip() for l in open('requirements.txt')): match = EDITABLE_REQUIREMENT.match(requirement) @@ -100,4 +100,4 @@ setup( ] }, data_files=data_files -) \ No newline at end of file +) diff --git a/src/sakia/g1_licence.html b/src/sakia/g1_license.html similarity index 100% rename from src/sakia/g1_licence.html rename to src/sakia/g1_license.html diff --git a/src/sakia/services/network.py b/src/sakia/services/network.py index 00f2033ee0c67e4a2e2c4576e618299c6831378c..7c55ef458d14a34dc343b0ba18b195b4eb137651 100644 --- a/src/sakia/services/network.py +++ b/src/sakia/services/network.py @@ -290,7 +290,7 @@ class NetworkService(QObject): def run_ws2p_check(self): if not self._ws2p_heads_refreshing: self._ws2p_heads_refreshing = True - asyncio.async(self.check_ws2p_heads()) + asyncio.ensure_future(self.check_ws2p_heads()) async def check_ws2p_heads(self): await asyncio.sleep(5)