Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pytest-translations for 
openSUSE:Factory checked in at 2023-05-10 16:18:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-translations (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-translations.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-translations"

Wed May 10 16:18:58 2023 rev:5 rq:1085842 version:4.0.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pytest-translations/python-pytest-translations.changes
    2021-03-15 10:56:37.573376657 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-translations.new.1533/python-pytest-translations.changes
  2023-05-10 16:18:59.723141840 +0200
@@ -1,0 +2,7 @@
+Tue May  9 21:27:15 UTC 2023 - Dirk Müller <[email protected]>
+
+- update to 4.0.1:
+  * Fix aspell installation docs in README
+- drop pr_48.patch (upstream)
+
+-------------------------------------------------------------------

Old:
----
  pr_48.patch
  pytest-translations-3.0.0.tar.gz

New:
----
  pytest-translations-4.0.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pytest-translations.spec ++++++
--- /var/tmp/diff_new_pack.Mxhhgo/_old  2023-05-10 16:19:00.215144750 +0200
+++ /var/tmp/diff_new_pack.Mxhhgo/_new  2023-05-10 16:19:00.223144798 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pytest-translations
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,13 +19,12 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-pytest-translations
-Version:        3.0.0
+Version:        4.0.1
 Release:        0
 Summary:        Plugin for testing gettext, .po and .mo files
 License:        Apache-2.0
 URL:            https://github.com/Thermondo/pytest-translations
 Source:         
https://files.pythonhosted.org/packages/source/p/pytest-translations/pytest-translations-%{version}.tar.gz
-Patch0:         
https://patch-diff.githubusercontent.com/raw/Thermondo/pytest-translations/pull/48.patch#/pr_48.patch
 BuildRequires:  %{python_module pbr}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
@@ -51,7 +50,6 @@
 
 %prep
 %setup -q -n pytest-translations-%{version}
-%patch0 -p1
 
 %build
 export LANG=en_US.UTF-8

++++++ pytest-translations-3.0.0.tar.gz -> pytest-translations-4.0.1.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-translations-3.0.0/.github/workflows/ci.yml 
new/pytest-translations-4.0.1/.github/workflows/ci.yml
--- old/pytest-translations-3.0.0/.github/workflows/ci.yml      1970-01-01 
01:00:00.000000000 +0100
+++ new/pytest-translations-4.0.1/.github/workflows/ci.yml      2021-11-05 
17:26:29.000000000 +0100
@@ -0,0 +1,42 @@
+name: CI
+
+on:
+  push:
+    branches:
+      - master
+  pull_request:
+    branches:
+      - master
+
+jobs:
+  tests:
+    runs-on: ubuntu-20.04
+    strategy:
+      matrix:
+        python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
+
+    steps:
+      - uses: actions/checkout@v2
+
+      - name: Set up Python
+        uses: actions/setup-python@v2
+        with:
+          python-version: ${{ matrix.python-version }}
+
+      - name: Cache pip downloads
+        uses: syphar/restore-pip-download-cache@v1
+
+      - name: Install system package dependencies
+        run: |
+          sudo apt-get install -y python3-enchant aspell-en aspell-de
+
+      - name: installing python dependencies
+        run: |
+          pip install -U codecov
+          pip install -r requirements-dev.txt
+
+      - name: running tests
+        run: coverage run --source="pytest_translations" -m "pytest"
+
+      - name: uploading coverage
+        run: codecov --required
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-translations-3.0.0/.github/workflows/release.yml 
new/pytest-translations-4.0.1/.github/workflows/release.yml
--- old/pytest-translations-3.0.0/.github/workflows/release.yml 1970-01-01 
01:00:00.000000000 +0100
+++ new/pytest-translations-4.0.1/.github/workflows/release.yml 2021-11-05 
17:26:29.000000000 +0100
@@ -0,0 +1,27 @@
+name: Release
+
+on:
+  release:
+    types: [released]
+
+jobs:
+  package_release:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+
+      - name: Set up Python
+        uses: actions/setup-python@v2
+        with:
+          python-version: 3.x
+
+      - name: Build package
+        run: |
+          pip install wheel
+          python setup.py sdist bdist_wheel
+
+      - name: Publish package
+        uses: pypa/gh-action-pypi-publish@master
+        with:
+          user: __token__
+          password: ${{ secrets.pypi_token }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-translations-3.0.0/.travis.yml 
new/pytest-translations-4.0.1/.travis.yml
--- old/pytest-translations-3.0.0/.travis.yml   2020-10-26 12:08:24.000000000 
+0100
+++ new/pytest-translations-4.0.1/.travis.yml   1970-01-01 01:00:00.000000000 
+0100
@@ -1,29 +0,0 @@
-language: python
-sudo: false
-cache:
-- pip
-- apt
-python:
-- '3.6'
-addons:
-  apt:
-    packages:
-    - python3-enchant
-    - aspell-en
-    - aspell-de
-install:
-- pip install -U codecov
-- pip install -r requirements-dev.txt
-script:
-- coverage run --source="pytest_translations" -m "pytest"
-after_success:
-- codecov
-deploy:
-  provider: pypi
-  user: codingjoe
-  password:
-    secure: 
bXxLJ3dcm3JPKOAbsF+cvClNuRNGNv2eKzhHrtbHOdPfvLnVk5V2i1F3bUv4GR1TPdYkvPWlJJCPWCEx9CfFkhWCV9usgB0+c4H1q0QumXfYmkHJ5vqGImozQBTq80YIDaW+V7575Me0Hev2v4LaulHcJ88xfqvgrlngxjZtPU4=
-  on:
-    tags: true
-    distributions: sdist bdist_wheel
-    repo: Thermondo/pytest-translations
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-translations-3.0.0/AUTHORS 
new/pytest-translations-4.0.1/AUTHORS
--- old/pytest-translations-3.0.0/AUTHORS       2020-10-26 12:08:55.000000000 
+0100
+++ new/pytest-translations-4.0.1/AUTHORS       2021-11-05 17:26:37.000000000 
+0100
@@ -1,7 +1 @@
-Denis Cornehl <[email protected]>
-Denis Cornehl <[email protected]>
-Johannes Hoppe <[email protected]>
-Martins Grunskis <[email protected]>
-Rustem Sayargaliev <[email protected]>
-pyup-bot <[email protected]>
-requires.io <[email protected]>
+Rustem Saiargaliev <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-translations-3.0.0/ChangeLog 
new/pytest-translations-4.0.1/ChangeLog
--- old/pytest-translations-3.0.0/ChangeLog     2020-10-26 12:08:55.000000000 
+0100
+++ new/pytest-translations-4.0.1/ChangeLog     2021-11-05 17:26:37.000000000 
+0100
@@ -1,72 +1,7 @@
 CHANGES
 =======
 
-3.0.0
+4.0.1
 -----
 
-* refactor for pytest 6 compatibility (#45)
-
-2.0.0
------
-
-* Fix typos
-* Drop Python 2 support
-* Switch to CodeCov
-* Unfreeze development dependencies
-* Switch README to reStructuredText
-* Switch releases to pbr
-* Move PyTest config to setup.cfg file
-* Fix pydocstyle config, remove  dep from setup
-* Update pytest to 3.2.5, remove stale \`py\` dependency
-* Update pytest from 3.2.2 to 3.2.3
-* Update pytest from 3.2.1 to 3.2.2
-* Add linter config (#22)
-* Update pytest from 3.2.0 to 3.2.1
-* Update pytest from 3.1.3 to 3.2.0
-* Update pyenchant from 1.6.10 to 1.6.11
-* Update pyenchant from 1.6.9 to 1.6.10
-* Update pyenchant from 1.6.8 to 1.6.9
-* Update pytest from 3.1.2 to 3.1.3
-
-1.0.5
------
-
-* Bump version number
-* Make list of languages not dialects
-* Update pytest from 3.1.1 to 3.1.2
-* Update py from 1.4.33 to 1.4.34
-* Update pytest from 3.1.0 to 3.1.1
-* Update pytest from 3.0.7 to 3.1.0
-* Update py from 1.4.32 to 1.4.33
-* Set theme jekyll-theme-cayman
-* Update pytest from 3.0.6 to 3.0.7
-
-1.0.4
------
-
-* Fix install issue, defer imports
-* Add tag based auto deploys
-* Update pytest from 3.0.5 to 3.0.6
-* [requires.io] dependency update
-* [requires.io] dependency update on master branch (#15)
-* [requires.io] dependency update
-* [requires.io] dependency update (#13)
-* [requires.io] dependency update (#12)
-* [requires.io] dependency update (#11)
-* [requires.io] dependency update (#10)
-* [requires.io] dependency update (#9)
-* [requires.io] dependency update on master branch (#8)
-* [requires.io] dependency update (#7)
-* [requires.io] dependency update (#6)
-* fix package loading
-* bump version and release
-* [requires.io] dependency update
-* Fixes import for setuptools packaging
-
-1.0.0
------
-
-* Fixes OSX installation documentation
-* Adds spell checking
-* fix wrong version badge
-* fix travis status image
+* Fix aspell installation docs in README
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-translations-3.0.0/PKG-INFO 
new/pytest-translations-4.0.1/PKG-INFO
--- old/pytest-translations-3.0.0/PKG-INFO      2020-10-26 12:08:55.000000000 
+0100
+++ new/pytest-translations-4.0.1/PKG-INFO      2021-11-05 17:26:37.476549000 
+0100
@@ -1,124 +1,11 @@
-Metadata-Version: 1.1
+Metadata-Version: 2.1
 Name: pytest-translations
-Version: 3.0.0
+Version: 4.0.1
 Summary: Test your translation files.
 Home-page: https://github.com/Thermondo/pytest-translations
 Author: Thermondo GmbH
 Author-email: [email protected]
 License: Apache-2
-Description: |version| |ci| |coverage| |license|
-        
-        PyTest Translations
-        ===================
-        
-        A py.test plugin to check ``gettext`` ``po`` & ``mo`` files.
-        
-        Test check for:
-        
-        -  Spelling (using enchant & aspell)
-        -  Consistency of ``mo`` files
-        -  Obsolete translations
-        -  Fuzzy translations
-        
-        Installation
-        ------------
-        
-        Install the PyPi package.
-        
-        .. code:: bash
-        
-            pip install pytest-translations
-        
-        The spell checking requires enchant and aspell including the correct
-        dictionary.
-        
-        On Linux simply install:
-        
-        .. code:: bash
-        
-            sudo apt-get install python3-enchant python-enchant 
aspell-{en|de|CHOSE YOUR LANGUAGE CODES}
-        
-        To set up travis-ci simply add the apt packages to your travis-ci 
config
-        YAML:
-        
-        .. code:: yaml
-        
-            addons:
-              apt:
-                packages:
-                - python-enchant
-                - python3-enchant
-                - aspell-en
-                - aspell-de
-        
-        On Mac you can use brew to install:
-        
-        .. code:: bash
-        
-            brew install aspell --with-lang-{en|de|CHOSE YOUR LANGUAGE CODES}
-            brew install enchant
-        
-        Usage
-        -----
-        
-        To execute the translation tests simply run
-        
-        .. code:: bash
-        
-            py.test --translations
-        
-        Every file ending in ``.mo`` and ``.po`` will be discovered and tested,
-        starting from the command line arguments.
-        
-        You also can execute only the translation-tests by using:
-        
-        .. code:: bash
-        
-            py.test -m translations --translations
-        
-        Private Word Lists
-        ~~~~~~~~~~~~~~~~~~
-        
-        You will almost certainly use words that are not included in the 
default
-        dictionaries. That is why you can add your own word list that you want
-        to add to the dictionary.
-        
-        You may do so by adding a plain text file where each line is a word.
-        Words beginning with a capital letter are case sensitive where lower 
case words
-        are insensitive.
-        
-        There can be one file for each language contained in a single folder.
-        The files should be named like the proper language code.
-        
-        For example:
-        
-        .. code:: bash
-        
-            .
-            └── .spelling
-                ├── de
-                ├── en_GB
-                └── en_US
-        
-        What’s left to do is to set an environment variable to point to right
-        directory.
-        
-        For example:
-        
-        .. code:: bash
-        
-            export PYTEST_TRANSLATIONS_PRIVATE_WORD_LIST=path/to/my/.spelling
-        
-        .. |version| image:: 
https://img.shields.io/pypi/v/pytest-translations.svg
-           :target: https://pypi.python.org/pypi/pytest-translations/
-        .. |ci| image:: 
https://api.travis-ci.org/Thermondo/pytest-translations.svg?branch=master
-           :target: https://travis-ci.org/Thermondo/pytest-translations
-        .. |coverage| image:: 
https://codecov.io/gh/Thermondo/pytest-translations/branch/master/graph/badge.svg
-           :target: https://codecov.io/gh/Thermondo/pytest-translations
-        .. |license| image:: 
https://img.shields.io/badge/license-APL_2-blue.svg
-           :target: LICENSE
-        
-        
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: Environment :: Web Environment
@@ -127,3 +14,119 @@
 Classifier: Operating System :: OS Independent
 Classifier: Natural Language :: English
 Classifier: Programming Language :: Python :: 3
+License-File: LICENSE
+
+|version| |ci| |coverage| |license|
+
+PyTest Translations
+===================
+
+A py.test plugin to check ``gettext`` ``po`` & ``mo`` files.
+
+Test check for:
+
+-  Spelling (using enchant & aspell)
+-  Consistency of ``mo`` files
+-  Obsolete translations
+-  Fuzzy translations
+
+Installation
+------------
+
+Install the PyPi package.
+
+.. code:: bash
+
+    pip install pytest-translations
+
+The spell checking requires enchant and aspell including the correct
+dictionary.
+
+On Linux simply install:
+
+.. code:: bash
+
+    sudo apt-get install python3-enchant python-enchant aspell-{en|de|CHOSE 
YOUR LANGUAGE CODES}
+
+To set up travis-ci simply add the apt packages to your travis-ci config
+YAML:
+
+.. code:: yaml
+
+    addons:
+      apt:
+        packages:
+        - python-enchant
+        - python3-enchant
+        - aspell-en
+        - aspell-de
+
+On Mac you can use brew to install:
+
+.. code:: bash
+
+    brew install aspell
+    brew install enchant
+
+Usage
+-----
+
+To execute the translation tests simply run
+
+.. code:: bash
+
+    py.test --translations
+
+Every file ending in ``.mo`` and ``.po`` will be discovered and tested,
+starting from the command line arguments.
+
+You also can execute only the translation-tests by using:
+
+.. code:: bash
+
+    py.test -m translations --translations
+
+Private Word Lists
+~~~~~~~~~~~~~~~~~~
+
+You will almost certainly use words that are not included in the default
+dictionaries. That is why you can add your own word list that you want
+to add to the dictionary.
+
+You may do so by adding a plain text file where each line is a word.
+Words beginning with a capital letter are case sensitive where lower case words
+are insensitive.
+
+There can be one file for each language contained in a single folder.
+The files should be named like the proper language code.
+
+For example:
+
+.. code:: bash
+
+    .
+    └── .spelling
+        ├── de
+        ├── en_GB
+        └── en_US
+
+What’s left to do is to set an environment variable to point to right
+directory.
+
+For example:
+
+.. code:: bash
+
+    export PYTEST_TRANSLATIONS_PRIVATE_WORD_LIST=path/to/my/.spelling
+
+.. |version| image:: https://img.shields.io/pypi/v/pytest-translations.svg
+   :target: https://pypi.python.org/pypi/pytest-translations/
+.. |ci| image:: 
https://github.com/Thermondo/pytest-translations/actions/workflows/ci.yml/badge.svg
+   :target: 
https://github.com/Thermondo/pytest-translations/actions/workflows/ci.yml
+.. |coverage| image:: 
https://codecov.io/gh/Thermondo/pytest-translations/branch/master/graph/badge.svg
+   :target: https://codecov.io/gh/Thermondo/pytest-translations
+.. |license| image:: https://img.shields.io/badge/license-APL_2-blue.svg
+   :target: LICENSE
+
+
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-translations-3.0.0/README.rst 
new/pytest-translations-4.0.1/README.rst
--- old/pytest-translations-3.0.0/README.rst    2020-10-26 12:08:24.000000000 
+0100
+++ new/pytest-translations-4.0.1/README.rst    2021-11-05 17:26:29.000000000 
+0100
@@ -47,7 +47,7 @@
 
 .. code:: bash
 
-    brew install aspell --with-lang-{en|de|CHOSE YOUR LANGUAGE CODES}
+    brew install aspell
     brew install enchant
 
 Usage
@@ -103,8 +103,8 @@
 
 .. |version| image:: https://img.shields.io/pypi/v/pytest-translations.svg
    :target: https://pypi.python.org/pypi/pytest-translations/
-.. |ci| image:: 
https://api.travis-ci.org/Thermondo/pytest-translations.svg?branch=master
-   :target: https://travis-ci.org/Thermondo/pytest-translations
+.. |ci| image:: 
https://github.com/Thermondo/pytest-translations/actions/workflows/ci.yml/badge.svg
+   :target: 
https://github.com/Thermondo/pytest-translations/actions/workflows/ci.yml
 .. |coverage| image:: 
https://codecov.io/gh/Thermondo/pytest-translations/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/Thermondo/pytest-translations
 .. |license| image:: https://img.shields.io/badge/license-APL_2-blue.svg
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-translations-3.0.0/pytest_translations/po_spelling.py 
new/pytest-translations-4.0.1/pytest_translations/po_spelling.py
--- old/pytest-translations-3.0.0/pytest_translations/po_spelling.py    
2020-10-26 12:08:24.000000000 +0100
+++ new/pytest-translations-4.0.1/pytest_translations/po_spelling.py    
2021-11-05 17:26:29.000000000 +0100
@@ -79,7 +79,9 @@
         # 1. replace everything between curly braces
         text = re.sub('{.*?}', '', text)
         # 2. remove everything between %( and )
-        text = re.sub('\%\(.*?\)', '', text)
+        text = re.sub(r'\%\(.*?\)', '', text)
+        # 3. remove &shy; html entity
+        text = text.replace('&shy;', '')
 
         tokenizer = get_tokenizer(
             chunkers=[
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-translations-3.0.0/pytest_translations.egg-info/PKG-INFO 
new/pytest-translations-4.0.1/pytest_translations.egg-info/PKG-INFO
--- old/pytest-translations-3.0.0/pytest_translations.egg-info/PKG-INFO 
2020-10-26 12:08:55.000000000 +0100
+++ new/pytest-translations-4.0.1/pytest_translations.egg-info/PKG-INFO 
2021-11-05 17:26:37.000000000 +0100
@@ -1,124 +1,11 @@
-Metadata-Version: 1.1
+Metadata-Version: 2.1
 Name: pytest-translations
-Version: 3.0.0
+Version: 4.0.1
 Summary: Test your translation files.
 Home-page: https://github.com/Thermondo/pytest-translations
 Author: Thermondo GmbH
 Author-email: [email protected]
 License: Apache-2
-Description: |version| |ci| |coverage| |license|
-        
-        PyTest Translations
-        ===================
-        
-        A py.test plugin to check ``gettext`` ``po`` & ``mo`` files.
-        
-        Test check for:
-        
-        -  Spelling (using enchant & aspell)
-        -  Consistency of ``mo`` files
-        -  Obsolete translations
-        -  Fuzzy translations
-        
-        Installation
-        ------------
-        
-        Install the PyPi package.
-        
-        .. code:: bash
-        
-            pip install pytest-translations
-        
-        The spell checking requires enchant and aspell including the correct
-        dictionary.
-        
-        On Linux simply install:
-        
-        .. code:: bash
-        
-            sudo apt-get install python3-enchant python-enchant 
aspell-{en|de|CHOSE YOUR LANGUAGE CODES}
-        
-        To set up travis-ci simply add the apt packages to your travis-ci 
config
-        YAML:
-        
-        .. code:: yaml
-        
-            addons:
-              apt:
-                packages:
-                - python-enchant
-                - python3-enchant
-                - aspell-en
-                - aspell-de
-        
-        On Mac you can use brew to install:
-        
-        .. code:: bash
-        
-            brew install aspell --with-lang-{en|de|CHOSE YOUR LANGUAGE CODES}
-            brew install enchant
-        
-        Usage
-        -----
-        
-        To execute the translation tests simply run
-        
-        .. code:: bash
-        
-            py.test --translations
-        
-        Every file ending in ``.mo`` and ``.po`` will be discovered and tested,
-        starting from the command line arguments.
-        
-        You also can execute only the translation-tests by using:
-        
-        .. code:: bash
-        
-            py.test -m translations --translations
-        
-        Private Word Lists
-        ~~~~~~~~~~~~~~~~~~
-        
-        You will almost certainly use words that are not included in the 
default
-        dictionaries. That is why you can add your own word list that you want
-        to add to the dictionary.
-        
-        You may do so by adding a plain text file where each line is a word.
-        Words beginning with a capital letter are case sensitive where lower 
case words
-        are insensitive.
-        
-        There can be one file for each language contained in a single folder.
-        The files should be named like the proper language code.
-        
-        For example:
-        
-        .. code:: bash
-        
-            .
-            └── .spelling
-                ├── de
-                ├── en_GB
-                └── en_US
-        
-        What’s left to do is to set an environment variable to point to right
-        directory.
-        
-        For example:
-        
-        .. code:: bash
-        
-            export PYTEST_TRANSLATIONS_PRIVATE_WORD_LIST=path/to/my/.spelling
-        
-        .. |version| image:: 
https://img.shields.io/pypi/v/pytest-translations.svg
-           :target: https://pypi.python.org/pypi/pytest-translations/
-        .. |ci| image:: 
https://api.travis-ci.org/Thermondo/pytest-translations.svg?branch=master
-           :target: https://travis-ci.org/Thermondo/pytest-translations
-        .. |coverage| image:: 
https://codecov.io/gh/Thermondo/pytest-translations/branch/master/graph/badge.svg
-           :target: https://codecov.io/gh/Thermondo/pytest-translations
-        .. |license| image:: 
https://img.shields.io/badge/license-APL_2-blue.svg
-           :target: LICENSE
-        
-        
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: Environment :: Web Environment
@@ -127,3 +14,119 @@
 Classifier: Operating System :: OS Independent
 Classifier: Natural Language :: English
 Classifier: Programming Language :: Python :: 3
+License-File: LICENSE
+
+|version| |ci| |coverage| |license|
+
+PyTest Translations
+===================
+
+A py.test plugin to check ``gettext`` ``po`` & ``mo`` files.
+
+Test check for:
+
+-  Spelling (using enchant & aspell)
+-  Consistency of ``mo`` files
+-  Obsolete translations
+-  Fuzzy translations
+
+Installation
+------------
+
+Install the PyPi package.
+
+.. code:: bash
+
+    pip install pytest-translations
+
+The spell checking requires enchant and aspell including the correct
+dictionary.
+
+On Linux simply install:
+
+.. code:: bash
+
+    sudo apt-get install python3-enchant python-enchant aspell-{en|de|CHOSE 
YOUR LANGUAGE CODES}
+
+To set up travis-ci simply add the apt packages to your travis-ci config
+YAML:
+
+.. code:: yaml
+
+    addons:
+      apt:
+        packages:
+        - python-enchant
+        - python3-enchant
+        - aspell-en
+        - aspell-de
+
+On Mac you can use brew to install:
+
+.. code:: bash
+
+    brew install aspell
+    brew install enchant
+
+Usage
+-----
+
+To execute the translation tests simply run
+
+.. code:: bash
+
+    py.test --translations
+
+Every file ending in ``.mo`` and ``.po`` will be discovered and tested,
+starting from the command line arguments.
+
+You also can execute only the translation-tests by using:
+
+.. code:: bash
+
+    py.test -m translations --translations
+
+Private Word Lists
+~~~~~~~~~~~~~~~~~~
+
+You will almost certainly use words that are not included in the default
+dictionaries. That is why you can add your own word list that you want
+to add to the dictionary.
+
+You may do so by adding a plain text file where each line is a word.
+Words beginning with a capital letter are case sensitive where lower case words
+are insensitive.
+
+There can be one file for each language contained in a single folder.
+The files should be named like the proper language code.
+
+For example:
+
+.. code:: bash
+
+    .
+    └── .spelling
+        ├── de
+        ├── en_GB
+        └── en_US
+
+What’s left to do is to set an environment variable to point to right
+directory.
+
+For example:
+
+.. code:: bash
+
+    export PYTEST_TRANSLATIONS_PRIVATE_WORD_LIST=path/to/my/.spelling
+
+.. |version| image:: https://img.shields.io/pypi/v/pytest-translations.svg
+   :target: https://pypi.python.org/pypi/pytest-translations/
+.. |ci| image:: 
https://github.com/Thermondo/pytest-translations/actions/workflows/ci.yml/badge.svg
+   :target: 
https://github.com/Thermondo/pytest-translations/actions/workflows/ci.yml
+.. |coverage| image:: 
https://codecov.io/gh/Thermondo/pytest-translations/branch/master/graph/badge.svg
+   :target: https://codecov.io/gh/Thermondo/pytest-translations
+.. |license| image:: https://img.shields.io/badge/license-APL_2-blue.svg
+   :target: LICENSE
+
+
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-translations-3.0.0/pytest_translations.egg-info/SOURCES.txt 
new/pytest-translations-4.0.1/pytest_translations.egg-info/SOURCES.txt
--- old/pytest-translations-3.0.0/pytest_translations.egg-info/SOURCES.txt      
2020-10-26 12:08:55.000000000 +0100
+++ new/pytest-translations-4.0.1/pytest_translations.egg-info/SOURCES.txt      
2021-11-05 17:26:37.000000000 +0100
@@ -1,4 +1,3 @@
-.travis.yml
 AUTHORS
 ChangeLog
 LICENSE
@@ -9,6 +8,8 @@
 setup.cfg
 setup.py
 test_translations.py
+.github/workflows/ci.yml
+.github/workflows/release.yml
 pytest_translations/__init__.py
 pytest_translations/config.py
 pytest_translations/mo_files.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-translations-3.0.0/pytest_translations.egg-info/pbr.json 
new/pytest-translations-4.0.1/pytest_translations.egg-info/pbr.json
--- old/pytest-translations-3.0.0/pytest_translations.egg-info/pbr.json 
2020-10-26 12:08:55.000000000 +0100
+++ new/pytest-translations-4.0.1/pytest_translations.egg-info/pbr.json 
2021-11-05 17:26:37.000000000 +0100
@@ -1 +1 @@
-{"git_version": "13a4479", "is_release": false}
\ No newline at end of file
+{"git_version": "ae8c6ff", "is_release": false}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-translations-3.0.0/setup.cfg 
new/pytest-translations-4.0.1/setup.cfg
--- old/pytest-translations-3.0.0/setup.cfg     2020-10-26 12:08:55.000000000 
+0100
+++ new/pytest-translations-4.0.1/setup.cfg     2021-11-05 17:26:37.476549000 
+0100
@@ -24,7 +24,7 @@
        pytest_translations = pytest_translations
 
 [tool:pytest]
-norecursedirs = venv env
+norecursedirs = venv env .eggs
 addopts = --tb=short
 
 [pycodestyle]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-translations-3.0.0/test_translations.py 
new/pytest-translations-4.0.1/test_translations.py
--- old/pytest-translations-3.0.0/test_translations.py  2020-10-26 
12:08:24.000000000 +0100
+++ new/pytest-translations-4.0.1/test_translations.py  2021-11-05 
17:26:29.000000000 +0100
@@ -12,7 +12,7 @@
     @pytest.fixture
     def pomo(self, testdir):
         pofile = testdir.makefile(
-            'po',
+            '.po',
             """
             #: asdf.py:111
             msgid "car"
@@ -29,7 +29,7 @@
 
     def test_broken_file(self, testdir):
         testdir.makefile(
-            'po',
+            '.po',
             """
             #: asdf.py:111
             msgid "car"
@@ -37,7 +37,7 @@
             """
         )
         testdir.makefile(
-            'mo',
+            '.mo',
             """
             asdflkaj sdlkfaj
             """,
@@ -76,7 +76,7 @@
         os.unlink(po)
 
         testdir.makefile(
-            'po',
+            '.po',
             """
             msgid ""
             msgstr ""
@@ -100,7 +100,7 @@
 class TestPo(object):
     def test_uses_argument(self, testdir):
         testdir.makefile(
-            'po',
+            '.po',
             """
             #: asdf.py:111
             msgid "car"
@@ -114,7 +114,7 @@
 
     def test_broken_file(self, testdir):
         testdir.makefile(
-            'po',
+            '.po',
             """
             asdflkaj sdlkfaj
             """
@@ -127,7 +127,7 @@
 
     def test_valid(self, testdir):
         testdir.makefile(
-            'po',
+            '.po',
             """
             #: asdf.py:111
             msgid "car"
@@ -143,7 +143,7 @@
 
     def test_missing_translation(self, testdir):
         testdir.makefile(
-            'po',
+            '.po',
             """
             #: asdf.py:111
             msgid "car"
@@ -159,7 +159,7 @@
 
     def test_fuzzy(self, testdir):
         testdir.makefile(
-            'po',
+            '.po',
             """
             #: asdf.py:111
             #, fuzzy
@@ -177,7 +177,7 @@
 
     def test_obsolete(self, testdir):
         testdir.makefile(
-            'po',
+            '.po',
             """
             #: asdf.py:111
             #~ msgid "car"
@@ -194,7 +194,7 @@
 
     def test_all(self, testdir):
         testdir.makefile(
-            'po',
+            '.po',
             """
             #: asdf.py:111
             msgid "car2"
@@ -224,7 +224,7 @@
 class TestPoSpellcheck(object):
     def test_broken_file(self, testdir):
         testdir.makefile(
-            'po',
+            '.po',
             """
             asdflkjasdf laskdjfasdf
             """
@@ -236,7 +236,7 @@
 
     def test_language_missing_in_po(self, testdir):
         testdir.makefile(
-            'po',
+            '.po',
             """
             #: asdf.py:111
             msgid "meeting"
@@ -251,7 +251,7 @@
 
     def test_language_catalog_missing(self, testdir):
         testdir.makefile(
-            'po',
+            '.po',
             """
             msgid ""
             msgstr ""
@@ -270,7 +270,7 @@
 
     def test_python_format_placeholders(self, testdir):
         testdir.makefile(
-            'po',
+            '.po',
             """
             msgid ""
             msgstr ""
@@ -287,9 +287,28 @@
             "*4 passed*",
         ])
 
+    def test_shy_entity(self, testdir):
+        testdir.makefile(
+            '.po',
+            """
+            msgid ""
+            msgstr ""
+            "Language: de\\n"
+
+            #: asdf.py:111
+            msgid "meeting"
+            msgstr "Ver&shy;ab&shy;redung"
+            """
+        )
+        result = testdir.runpytest('--translations', '-vvv', '-r', 's')
+        result.stdout.fnmatch_lines([
+            "*collected 4*",
+            "*4 passed*",
+        ])
+
     def test_pass(self, testdir):
         testdir.makefile(
-            'po',
+            '.po',
             """
             msgid ""
             msgstr ""
@@ -308,7 +327,7 @@
 
     def test_fail(self, testdir):
         testdir.makefile(
-            'po',
+            '.po',
             """
             msgid ""
             msgstr ""
@@ -329,7 +348,7 @@
 
     def test_wordlist(self, testdir, monkeypatch):
         testdir.makefile(
-            'po',
+            '.po',
             """
             msgid ""
             msgstr ""

Reply via email to