Hello community,

here is the log from the commit of package python-crashtest for 
openSUSE:Factory checked in at 2020-10-25 18:08:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-crashtest (Old)
 and      /work/SRC/openSUSE:Factory/.python-crashtest.new.3463 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-crashtest"

Sun Oct 25 18:08:29 2020 rev:2 rq:835103 version:0.3.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-crashtest/python-crashtest.changes        
2020-07-14 07:59:32.189837600 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-crashtest.new.3463/python-crashtest.changes  
    2020-10-25 18:08:38.255459850 +0100
@@ -1,0 +2,6 @@
+Thu Sep 17 06:49:16 UTC 2020 - Dirk Mueller <[email protected]>
+
+- update to 0.3.1:
+  * Fixed an error when trying to retrieve the line of a frame with no context 
+
+-------------------------------------------------------------------

Old:
----
  crashtest-0.3.0.tar.gz

New:
----
  crashtest-0.3.1.tar.gz

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

Other differences:
------------------
++++++ python-crashtest.spec ++++++
--- /var/tmp/diff_new_pack.PlFsit/_old  2020-10-25 18:08:39.819461331 +0100
+++ /var/tmp/diff_new_pack.PlFsit/_new  2020-10-25 18:08:39.819461331 +0100
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-crashtest
-Version:        0.3.0
+Version:        0.3.1
 Release:        0
 Summary:        Manage Python errors with ease
 License:        MIT

++++++ crashtest-0.3.0.tar.gz -> crashtest-0.3.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/crashtest-0.3.0/.github/workflows/main.yml 
new/crashtest-0.3.1/.github/workflows/main.yml
--- old/crashtest-0.3.0/.github/workflows/main.yml      1970-01-01 
01:00:00.000000000 +0100
+++ new/crashtest-0.3.1/.github/workflows/main.yml      2020-07-31 
15:26:04.000000000 +0200
@@ -0,0 +1,89 @@
+name: Main
+
+on:
+  push:
+    branches:
+      - master
+    tags:
+      - '**'
+  pull_request:
+    branches:
+      - '**'
+
+jobs:
+  flake8:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Setup Python
+        uses: actions/setup-python@v1
+        with:
+          python-version: 3.7
+          architecture: x64
+      - uses: actions/checkout@master
+      - name: Install flake8
+        run: pip install flake8
+      - name: Run flake8
+        uses: suo/flake8-github-action@releases/v1
+        with:
+          checkName: 'flake8'
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+  black:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v1
+      - name: Run Black
+        uses: lgeiger/black-action@master
+        with:
+          args: --check crashtest/ tests/
+
+  tests:
+    runs-on: ubuntu-latest
+    strategy:
+      max-parallel: 4
+      matrix:
+        python-version: [3.6, 3.7, 3.8]
+    steps:
+      - uses: actions/checkout@v2
+
+      - name: Set up Python ${{ matrix.python-version }}
+        uses: actions/setup-python@v1
+        with:
+          python-version: ${{ matrix.python-version }}
+
+      - name: Get full Python version
+        id: full-python-version
+        shell: bash
+        run: echo ::set-output name=version::$(python -c "import sys; 
print('-'.join(str(v) for v in sys.version_info))")
+
+      - name: Install poetry
+        shell: bash
+        run: |
+          curl -fsS -o get-poetry.py 
https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py
+          python get-poetry.py -y
+          echo "::set-env name=PATH::$HOME/.poetry/bin:$PATH"
+
+      - name: Configure poetry
+        shell: bash
+        run: poetry config virtualenvs.in-project true
+
+      - name: Set up cache
+        uses: actions/cache@v2
+        id: cache
+        with:
+          path: .venv
+          key: venv-${{ runner.os }}-${{ 
steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
+
+      - name: Ensure cache is healthy
+        if: steps.cache.outputs.cache-hit == 'true'
+        shell: bash
+        run: poetry run pip --version >/dev/null 2>&1 || rm -rf .venv
+
+      - name: Install dependencies
+        shell: bash
+        run: poetry install
+
+      - name: Run pytest
+        shell: bash
+        run: poetry run pytest -v tests
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/crashtest-0.3.0/.github/workflows/release.yml 
new/crashtest-0.3.1/.github/workflows/release.yml
--- old/crashtest-0.3.0/.github/workflows/release.yml   1970-01-01 
01:00:00.000000000 +0100
+++ new/crashtest-0.3.1/.github/workflows/release.yml   2020-07-31 
15:26:04.000000000 +0200
@@ -0,0 +1,38 @@
+name: Release
+
+on:
+  push:
+    tags:
+      - '**'
+
+jobs:
+  release:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v2
+    - name: Get tag
+      id: tag
+      run: |
+        echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
+    - name: Set up Python 3.7
+      uses: actions/setup-python@v1
+      with:
+        python-version: 3.7
+    - name: Install dependencies
+      run: python -m pip install --upgrade pip poetry --pre
+    - name: Publish release to PyPI
+      env:
+        POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
+      run: |
+        poetry build
+        poetry publish
+    - name: Create Release
+      id: create_release
+      uses: actions/create-release@v1
+      env:
+        GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
+      with:
+        tag_name: ${{ steps.tag.outputs.tag }}
+        release_name: ${{ steps.tag.outputs.tag }}
+        draft: false
+        prerelease: false
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/crashtest-0.3.0/README.md 
new/crashtest-0.3.1/README.md
--- old/crashtest-0.3.0/README.md       2020-04-02 10:16:28.000000000 +0200
+++ new/crashtest-0.3.1/README.md       2020-07-31 15:26:04.000000000 +0200
@@ -1 +1,3 @@
 # Crashtest
+
+Crashtest is a Python library that makes exceptions handling and inspection 
easier.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/crashtest-0.3.0/crashtest/__init__.py 
new/crashtest-0.3.1/crashtest/__init__.py
--- old/crashtest-0.3.0/crashtest/__init__.py   2020-04-02 10:16:28.000000000 
+0200
+++ new/crashtest-0.3.1/crashtest/__init__.py   2020-07-31 15:26:04.000000000 
+0200
@@ -1 +1 @@
-__version__ = "0.3.0"
+__version__ = "0.3.1"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/crashtest-0.3.0/crashtest/frame.py 
new/crashtest-0.3.1/crashtest/frame.py
--- old/crashtest-0.3.0/crashtest/frame.py      2020-04-02 10:16:28.000000000 
+0200
+++ new/crashtest-0.3.1/crashtest/frame.py      2020-07-31 15:26:04.000000000 
+0200
@@ -1,6 +1,6 @@
 import inspect
 
-from types import TracebackType
+from types import FrameType
 from typing import Dict
 
 
@@ -17,7 +17,7 @@
         self._file_content = None
 
     @property
-    def frame(self) -> TracebackType:
+    def frame(self) -> FrameType:
         return self._frame
 
     @property
@@ -34,6 +34,9 @@
 
     @property
     def line(self) -> str:
+        if not self._frame_info.code_context:
+            return ""
+
         return self._frame_info.code_context[0]
 
     @property
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/crashtest-0.3.0/pyproject.toml 
new/crashtest-0.3.1/pyproject.toml
--- old/crashtest-0.3.0/pyproject.toml  2020-04-02 10:16:28.000000000 +0200
+++ new/crashtest-0.3.1/pyproject.toml  2020-07-31 15:26:04.000000000 +0200
@@ -1,6 +1,6 @@
 [tool.poetry]
 name = "crashtest"
-version = "0.3.0"
+version = "0.3.1"
 description = "Manage Python errors with ease"
 authors = ["Sébastien Eustace <[email protected]>"]
 license = "MIT"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/crashtest-0.3.0/tests/test_frame.py 
new/crashtest-0.3.1/tests/test_frame.py
--- old/crashtest-0.3.0/tests/test_frame.py     2020-04-02 10:16:28.000000000 
+0200
+++ new/crashtest-0.3.1/tests/test_frame.py     2020-07-31 15:26:04.000000000 
+0200
@@ -35,3 +35,9 @@
     assert other_frame != frame
     assert hash(same_frame) == hash(frame)
     assert hash(other_frame) != hash(frame)
+
+
+def test_frame_with_no_context_should_return_empty_line():
+    frame = Frame(inspect.FrameInfo(None, "filename.py", 123, "function", 
None, 3))
+
+    assert "" == frame.line


Reply via email to