Hello community,

here is the log from the commit of package python-sniffio for openSUSE:Factory 
checked in at 2020-11-29 12:19:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-sniffio (Old)
 and      /work/SRC/openSUSE:Factory/.python-sniffio.new.5913 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-sniffio"

Sun Nov 29 12:19:03 2020 rev:3 rq:850929 version:1.2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-sniffio/python-sniffio.changes    
2019-06-03 18:55:50.472418376 +0200
+++ /work/SRC/openSUSE:Factory/.python-sniffio.new.5913/python-sniffio.changes  
2020-11-29 12:19:07.069437168 +0100
@@ -1,0 +2,6 @@
+Thu Nov 26 08:56:32 UTC 2020 - Dirk Mueller <[email protected]>
+
+- update to 1.2.0:
+  * Include type hints
+
+-------------------------------------------------------------------

Old:
----
  sniffio-1.1.0.tar.gz

New:
----
  sniffio-1.2.0.tar.gz

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

Other differences:
------------------
++++++ python-sniffio.spec ++++++
--- /var/tmp/diff_new_pack.t2hnB6/_old  2020-11-29 12:19:07.909438018 +0100
+++ /var/tmp/diff_new_pack.t2hnB6/_new  2020-11-29 12:19:07.913438021 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-sniffio
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-sniffio
-Version:        1.1.0
+Version:        1.2.0
 Release:        0
 Summary:        Module to sniff which async library code runs under
 License:        MIT OR Apache-2.0

++++++ sniffio-1.1.0.tar.gz -> sniffio-1.2.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sniffio-1.1.0/.mypy.ini new/sniffio-1.2.0/.mypy.ini
--- old/sniffio-1.1.0/.mypy.ini 1970-01-01 01:00:00.000000000 +0100
+++ new/sniffio-1.2.0/.mypy.ini 2020-10-11 20:21:00.000000000 +0200
@@ -0,0 +1,11 @@
+[mypy]
+# Error codes can be used to write more specific `type: ignore` comments.
+show_error_codes = True
+
+[mypy-curio.*]
+# Curio doesn't provide type hints.
+ignore_missing_imports = True
+
+[mypy-pytest.*]
+# The version of pytest used doesn't provide type hints.
+ignore_missing_imports = True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sniffio-1.1.0/ci/travis.sh 
new/sniffio-1.2.0/ci/travis.sh
--- old/sniffio-1.1.0/ci/travis.sh      2019-04-20 06:00:48.000000000 +0200
+++ new/sniffio-1.2.0/ci/travis.sh      2020-10-11 20:21:00.000000000 +0200
@@ -2,6 +2,7 @@
 
 set -ex
 
+MYPY_VERSION=0.782
 YAPF_VERSION=0.22.0
 
 if [ "$TRAVIS_OS_NAME" = "osx" ]; then
@@ -75,6 +76,19 @@
 EOF
         exit 1
     fi
+    pip install mypy==${MYPY_VERSION}
+    if ! mypy --pretty sniffio; then
+      cat <<EOF
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
+Type checking problems were found (listed above).
+
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+EOF
+      exit 1
+    fi
     exit 0
 fi
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sniffio-1.1.0/docs/source/history.rst 
new/sniffio-1.2.0/docs/source/history.rst
--- old/sniffio-1.1.0/docs/source/history.rst   2019-04-20 06:00:48.000000000 
+0200
+++ new/sniffio-1.2.0/docs/source/history.rst   2020-10-11 20:21:00.000000000 
+0200
@@ -5,7 +5,16 @@
 
 .. towncrier release notes start
 
-Sniffio 1.1.0 (2019-04-19)
+sniffio 1.2.0 (2020-10-11)
+--------------------------
+
+Features
+~~~~~~~~
+
+- Include type hints (`#17 <https://github.com/python-trio/sniffio/pull/17>`__)
+
+
+sniffio 1.1.0 (2019-04-19)
 --------------------------
 
 Features
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sniffio-1.1.0/setup.py new/sniffio-1.2.0/setup.py
--- old/sniffio-1.1.0/setup.py  2019-04-20 06:00:48.000000000 +0200
+++ new/sniffio-1.2.0/setup.py  2020-10-11 20:21:00.000000000 +0200
@@ -14,6 +14,7 @@
     author_email="[email protected]",
     license="MIT -or- Apache License 2.0",
     packages=find_packages(),
+    package_data={"sniffio": ["py.typed"]},
     install_requires=[],
     keywords=[
         "async",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sniffio-1.1.0/sniffio/__init__.py 
new/sniffio-1.2.0/sniffio/__init__.py
--- old/sniffio-1.1.0/sniffio/__init__.py       2019-04-20 06:00:48.000000000 
+0200
+++ new/sniffio-1.2.0/sniffio/__init__.py       2020-10-11 20:21:00.000000000 
+0200
@@ -1,5 +1,10 @@
 """Top-level package for sniffio."""
 
+__all__ = [
+    "current_async_library", "AsyncLibraryNotFoundError",
+    "current_async_library_cvar"
+]
+
 from ._version import __version__
 
 from ._impl import (
@@ -7,8 +12,3 @@
     AsyncLibraryNotFoundError,
     current_async_library_cvar,
 )
-
-__all__ = [
-    "current_async_library", "UnknownAsyncLibraryError",
-    "current_async_library_cvar"
-]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sniffio-1.1.0/sniffio/_impl.py 
new/sniffio-1.2.0/sniffio/_impl.py
--- old/sniffio-1.1.0/sniffio/_impl.py  2019-04-20 06:00:48.000000000 +0200
+++ new/sniffio-1.2.0/sniffio/_impl.py  2020-10-11 20:21:00.000000000 +0200
@@ -1,16 +1,17 @@
 from contextvars import ContextVar
+from typing import Optional
 import sys
 
 current_async_library_cvar = ContextVar(
     "current_async_library_cvar", default=None
-)
+)  # type: ContextVar[Optional[str]]
 
 
 class AsyncLibraryNotFoundError(RuntimeError):
     pass
 
 
-def current_async_library():
+def current_async_library() -> str:
     """Detect which async library is currently running.
 
     The following libraries are currently supported:
@@ -65,9 +66,9 @@
     if "asyncio" in sys.modules:
         import asyncio
         try:
-            current_task = asyncio.current_task
+            current_task = asyncio.current_task  # type: ignore[attr-defined]
         except AttributeError:
-            current_task = asyncio.Task.current_task
+            current_task = asyncio.Task.current_task  # type: 
ignore[attr-defined]
         try:
             if current_task() is not None:
                 if (3, 7) <= sys.version_info:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sniffio-1.1.0/sniffio/_tests/test_sniffio.py 
new/sniffio-1.2.0/sniffio/_tests/test_sniffio.py
--- old/sniffio-1.1.0/sniffio/_tests/test_sniffio.py    2019-04-20 
06:00:48.000000000 +0200
+++ new/sniffio-1.2.0/sniffio/_tests/test_sniffio.py    2020-10-11 
20:21:00.000000000 +0200
@@ -1,3 +1,5 @@
+import sys
+
 import pytest
 
 from .. import (
@@ -43,6 +45,7 @@
         current_async_library()
 
 
[email protected](sys.version_info < (3, 6), reason='Curio requires 3.6+')
 def test_curio():
     import curio
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sniffio-1.1.0/sniffio/_version.py 
new/sniffio-1.2.0/sniffio/_version.py
--- old/sniffio-1.1.0/sniffio/_version.py       2019-04-20 06:00:48.000000000 
+0200
+++ new/sniffio-1.2.0/sniffio/_version.py       2020-10-11 20:21:00.000000000 
+0200
@@ -1,3 +1,3 @@
 # This file is imported from __init__.py and exec'd from setup.py
 
-__version__ = "1.1.0"
+__version__ = "1.2.0"
_______________________________________________
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/[email protected]

Reply via email to