diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6a56c328..78352ef6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ on: env: PROJECT_FOLDER: "qgispluginci" - PYTHON_VERSION_RELEASE: "3.8" + PYTHON_VERSION_RELEASE: "3.10" jobs: tests: @@ -29,7 +29,7 @@ jobs: python: [ # Do not make simultaneous tests, transifex and GitHub release will fail # "3.6", - "3.9", + "3.10", ] # "3.10", diff --git a/.gitignore b/.gitignore index 4c03d450..9f44a275 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,8 @@ build/ dist/ *.egg-info +*.orig + __pycache__/ *.pyc *.tar diff --git a/qgispluginci/translation.py b/qgispluginci/translation.py index 5fc7a1e7..130692bc 100644 --- a/qgispluginci/translation.py +++ b/qgispluginci/translation.py @@ -36,7 +36,9 @@ def __init__( """ self.parameters = parameters self._t = Transifex( - transifex_token, parameters.transifex_organization, i18n_type="QT" + api_token=transifex_token, + organization_name=parameters.transifex_organization, + i18n_type="QT", ) assert self._t.ping() plugin_path = self.parameters.plugin_path @@ -57,7 +59,7 @@ def __init__( f"{self.parameters.transifex_project}" ) self._t.create_project( - slug=self.parameters.transifex_project, + project_slug=self.parameters.transifex_project, repository_url=self.parameters.repository_url, source_language_code=parameters.translation_source_language, ) diff --git a/requirements/base.txt b/requirements/base.txt index 0a8ae4bf..f55b5057 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -6,5 +6,5 @@ PyGithub>=1.54,<1.58 PyQt5>=5.15,<5.16 pyqt5ac>=1.2,<1.3 python-slugify>=4.0,<8.1 -pytransifex>=0.1.10,<0.2 +pytransifex>=1.0.10,<2.0 pyyaml>=5.4,<6.1