Merge pull request #4 from ktrace/weblate-cli-1.13

app-i18n/weblate-cli: add initial; fix warnings; fix broken tests
trojita
Victor K 2 years ago committed by GitHub
commit 4122f3b38f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,57 @@
diff --git a/setup.cfg b/setup.cfg
index c12464e..b730916 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -8,7 +8,7 @@ url = https://weblate.org/
author = Michal Čihař
author_email = michal@cihar.com
license = GPL-3.0-or-later
-license_file = LICENSE
+license_files = LICENSE
platforms = any
classifiers =
Development Status :: 5 - Production/Stable
@@ -36,10 +36,14 @@ project_urls =
Funding=https://weblate.org/donate/
[options]
-packages = wlc
-python_requires = >=3.6
+packages =
+ wlc
+ wlc.test_data
+ wlc.test_data.api
+ wlc.test_data.mock
package_dir = wlc=wlc
-include_package_data = 1
+python_requires = >=3.6
+include_package_data = True
[options.entry_points]
console_scripts =
diff --git a/wlc/test_main.py b/wlc/test_main.py
index 9156c3a..b91b53a 100644
--- a/wlc/test_main.py
+++ b/wlc/test_main.py
@@ -28,7 +28,7 @@ import wlc
from wlc.config import WeblateConfig
from wlc.main import Version, main
-from .test_base import APITest
+from wlc.test_base import APITest
TEST_DATA = os.path.join(os.path.dirname(__file__), "test_data")
TEST_CONFIG = os.path.join(TEST_DATA, "wlc")
diff --git a/wlc/test_wlc.py b/wlc/test_wlc.py
index 14c8ccf..fd5e555 100644
--- a/wlc/test_wlc.py
+++ b/wlc/test_wlc.py
@@ -34,7 +34,7 @@ from wlc import (
WeblateException,
)
-from .test_base import APITest
+from wlc.test_base import APITest
class WeblateErrorTest(APITest):

@ -14,6 +14,8 @@ LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
PATCHES=( "${FILESDIR}/01-fix-python-warnings.patch" )
COMMON_DEPEND="
dev-python/argcomplete
dev-python/python-dateutil
@ -27,3 +29,12 @@ RDEPEND="
${COMMON_DEPEND}
"
S="${WORKDIR}/wlc-${PV}"
python_test() {
distutils_install_for_testing
"${EPYTHON}" wlc/test_main.py || die
"${EPYTHON}" wlc/test_base.py || die
"${EPYTHON}" wlc/test_wlc.py || die
}

Loading…
Cancel
Save