Skip to content

Commit

Permalink
Update PyTransifex with the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry authored and 3nids committed Feb 17, 2023
1 parent 4eaac83 commit b06bb08
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:

env:
PROJECT_FOLDER: "qgispluginci"
PYTHON_VERSION_RELEASE: "3.8"
PYTHON_VERSION_RELEASE: "3.10"

jobs:
tests:
Expand All @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ build/
dist/
*.egg-info

*.orig

__pycache__/
*.pyc
*.tar
Expand Down
6 changes: 4 additions & 2 deletions qgispluginci/translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
)
Expand Down
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b06bb08

Please sign in to comment.