Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-tcolorpy for openSUSE:Factory 
checked in at 2022-10-12 18:24:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-tcolorpy (Old)
 and      /work/SRC/openSUSE:Factory/.python-tcolorpy.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-tcolorpy"

Wed Oct 12 18:24:24 2022 rev:3 rq:1009834 version:0.1.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-tcolorpy/python-tcolorpy.changes  
2021-08-23 10:09:05.524181872 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-tcolorpy.new.2275/python-tcolorpy.changes    
    2022-10-12 18:25:54.641847228 +0200
@@ -1,0 +2,7 @@
+Tue Oct 11 15:47:10 UTC 2022 - Yogalakshmi Arunachalam <[email protected]>
+
+- Update to version 0.1.2 
+  * Use extras in tox instead of self-referencing the package in deps by 
@hroncok in #1
+  * Removed shebang from main.py by @hegjon in #3
+
+-------------------------------------------------------------------

Old:
----
  tcolorpy-0.1.0.tar.gz

New:
----
  tcolorpy-0.1.2.tar.gz

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

Other differences:
------------------
++++++ python-tcolorpy.spec ++++++
--- /var/tmp/diff_new_pack.JdZttG/_old  2022-10-12 18:25:55.049848248 +0200
+++ /var/tmp/diff_new_pack.JdZttG/_new  2022-10-12 18:25:55.053848258 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-tcolorpy
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 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-tcolorpy
-Version:        0.1.0
+Version:        0.1.2
 Release:        0
 Summary:        Python library to apply true color for terminal text
 License:        MIT

++++++ tcolorpy-0.1.0.tar.gz -> tcolorpy-0.1.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tcolorpy-0.1.0/PKG-INFO new/tcolorpy-0.1.2/PKG-INFO
--- old/tcolorpy-0.1.0/PKG-INFO 2021-06-12 15:33:34.150000000 +0200
+++ new/tcolorpy-0.1.2/PKG-INFO 2022-02-26 16:33:56.701723600 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: tcolorpy
-Version: 0.1.0
+Version: 0.1.2
 Summary: tcolopy is a Python library to apply true color for terminal text.
 Home-page: https://github.com/thombashi/tcolorpy
 Author: Tsuyoshi Hombashi
@@ -116,7 +116,7 @@
     :scale: 60%
     :alt: https://github.com/thombashi/tcolorpy/blob/master/ss/styles.png
 
-    `tcolorpy/ansi_styles.py 
<https://github.com/thombashi/tcolorpy/blob/master/examples/ansi_styles.py>`__
+    `example source code 
<https://github.com/thombashi/tcolorpy/blob/master/examples/ansi_styles.py>`__
 
 You can also specify colors by names:
 
@@ -124,7 +124,7 @@
     :scale: 60%
     :alt: https://github.com/thombashi/tcolorpy/blob/master/ss/ansi_colors.png
 
-    `tcolorpy/ansi_colors.py 
<https://github.com/thombashi/tcolorpy/blob/master/examples/ansi_colors.py>`__
+    `example source code 
<https://github.com/thombashi/tcolorpy/blob/master/examples/ansi_colors.py>`__
 
 
 CLI usage
@@ -133,7 +133,7 @@
 
 ::
 
-    $ python -m tcolorpy "tcolopy example" -c "#ee1177" -s 
bold,italic,underline
+    $ python3 -m tcolorpy "tcolopy example" -c "#ee1177" -s 
bold,italic,underline
 
 Command help
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -167,6 +167,6 @@
 Dependencies
 ============================================
 Python 3.6+
-No external dependencies.
+no external dependencies.
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tcolorpy-0.1.0/README.rst 
new/tcolorpy-0.1.2/README.rst
--- old/tcolorpy-0.1.0/README.rst       2021-06-12 15:33:19.000000000 +0200
+++ new/tcolorpy-0.1.2/README.rst       2022-02-26 16:33:35.000000000 +0100
@@ -82,7 +82,7 @@
     :scale: 60%
     :alt: https://github.com/thombashi/tcolorpy/blob/master/ss/styles.png
 
-    `tcolorpy/ansi_styles.py 
<https://github.com/thombashi/tcolorpy/blob/master/examples/ansi_styles.py>`__
+    `example source code 
<https://github.com/thombashi/tcolorpy/blob/master/examples/ansi_styles.py>`__
 
 You can also specify colors by names:
 
@@ -90,7 +90,7 @@
     :scale: 60%
     :alt: https://github.com/thombashi/tcolorpy/blob/master/ss/ansi_colors.png
 
-    `tcolorpy/ansi_colors.py 
<https://github.com/thombashi/tcolorpy/blob/master/examples/ansi_colors.py>`__
+    `example source code 
<https://github.com/thombashi/tcolorpy/blob/master/examples/ansi_colors.py>`__
 
 
 CLI usage
@@ -99,7 +99,7 @@
 
 ::
 
-    $ python -m tcolorpy "tcolopy example" -c "#ee1177" -s 
bold,italic,underline
+    $ python3 -m tcolorpy "tcolopy example" -c "#ee1177" -s 
bold,italic,underline
 
 Command help
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -133,4 +133,4 @@
 Dependencies
 ============================================
 Python 3.6+
-No external dependencies.
+no external dependencies.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tcolorpy-0.1.0/pyproject.toml 
new/tcolorpy-0.1.2/pyproject.toml
--- old/tcolorpy-0.1.0/pyproject.toml   2021-06-12 15:33:19.000000000 +0200
+++ new/tcolorpy-0.1.2/pyproject.toml   2022-02-26 16:33:35.000000000 +0100
@@ -18,6 +18,7 @@
 )/
 | docs/conf.py
 '''
+target-version = ['py36', 'py37', 'py38', 'py39', 'py310']
 
 [tool.coverage.run]
 source = ['tcolorpy']
@@ -51,6 +52,16 @@
     '*/.tox/*',
 ]
 
+[tool.mypy]
+ignore_missing_imports = true
+python_version = 3.6
+
+pretty = true
+show_error_codes = true
+show_error_context = true
+warn_unreachable = true
+warn_unused_configs = true
+
 [tool.pytest.ini_options]
 testpaths = [
     "test",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tcolorpy-0.1.0/tcolorpy/__main__.py 
new/tcolorpy-0.1.2/tcolorpy/__main__.py
--- old/tcolorpy-0.1.0/tcolorpy/__main__.py     2021-06-12 15:33:19.000000000 
+0200
+++ new/tcolorpy-0.1.2/tcolorpy/__main__.py     2022-02-26 16:33:35.000000000 
+0100
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
 import argparse
 import sys
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tcolorpy-0.1.0/tcolorpy/__version__.py 
new/tcolorpy-0.1.2/tcolorpy/__version__.py
--- old/tcolorpy-0.1.0/tcolorpy/__version__.py  2021-06-12 15:33:19.000000000 
+0200
+++ new/tcolorpy-0.1.2/tcolorpy/__version__.py  2022-02-26 16:33:35.000000000 
+0100
@@ -1,6 +1,6 @@
 __author__ = "Tsuyoshi Hombashi"
 __copyright__ = f"Copyright 2020, {__author__}"
 __license__ = "MIT License"
-__version__ = "0.1.0"
+__version__ = "0.1.2"
 __maintainer__ = __author__
 __email__ = "[email protected]"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tcolorpy-0.1.0/tcolorpy/_truecolor.py 
new/tcolorpy-0.1.2/tcolorpy/_truecolor.py
--- old/tcolorpy-0.1.0/tcolorpy/_truecolor.py   2021-06-12 15:33:19.000000000 
+0200
+++ new/tcolorpy-0.1.2/tcolorpy/_truecolor.py   2022-02-26 16:33:35.000000000 
+0100
@@ -43,6 +43,7 @@
     def __init__(self, color: Union["Color", str, RGBTuple]) -> None:
         self.__name = ""
         self.__is_color_code_src = False
+        self.__hsv: Optional[HSV] = None
 
         if color is None:
             raise TypeError("color must be one of Color/str/RGBTuple")
@@ -67,8 +68,6 @@
             self.__name = color.name  # type: ignore
             self.red, self.green, self.blue = color.red, color.green, 
color.blue  # type: ignore
 
-        self.__hsv: Optional[HSV] = None
-
     def __eq__(self, other) -> bool:
         if self.name and other.name:
             return self.name == other.name
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tcolorpy-0.1.0/tcolorpy.egg-info/PKG-INFO 
new/tcolorpy-0.1.2/tcolorpy.egg-info/PKG-INFO
--- old/tcolorpy-0.1.0/tcolorpy.egg-info/PKG-INFO       2021-06-12 
15:33:34.000000000 +0200
+++ new/tcolorpy-0.1.2/tcolorpy.egg-info/PKG-INFO       2022-02-26 
16:33:56.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: tcolorpy
-Version: 0.1.0
+Version: 0.1.2
 Summary: tcolopy is a Python library to apply true color for terminal text.
 Home-page: https://github.com/thombashi/tcolorpy
 Author: Tsuyoshi Hombashi
@@ -116,7 +116,7 @@
     :scale: 60%
     :alt: https://github.com/thombashi/tcolorpy/blob/master/ss/styles.png
 
-    `tcolorpy/ansi_styles.py 
<https://github.com/thombashi/tcolorpy/blob/master/examples/ansi_styles.py>`__
+    `example source code 
<https://github.com/thombashi/tcolorpy/blob/master/examples/ansi_styles.py>`__
 
 You can also specify colors by names:
 
@@ -124,7 +124,7 @@
     :scale: 60%
     :alt: https://github.com/thombashi/tcolorpy/blob/master/ss/ansi_colors.png
 
-    `tcolorpy/ansi_colors.py 
<https://github.com/thombashi/tcolorpy/blob/master/examples/ansi_colors.py>`__
+    `example source code 
<https://github.com/thombashi/tcolorpy/blob/master/examples/ansi_colors.py>`__
 
 
 CLI usage
@@ -133,7 +133,7 @@
 
 ::
 
-    $ python -m tcolorpy "tcolopy example" -c "#ee1177" -s 
bold,italic,underline
+    $ python3 -m tcolorpy "tcolopy example" -c "#ee1177" -s 
bold,italic,underline
 
 Command help
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -167,6 +167,6 @@
 Dependencies
 ============================================
 Python 3.6+
-No external dependencies.
+no external dependencies.
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tcolorpy-0.1.0/test/test_color.py 
new/tcolorpy-0.1.2/test/test_color.py
--- old/tcolorpy-0.1.0/test/test_color.py       2021-06-12 15:33:19.000000000 
+0200
+++ new/tcolorpy-0.1.2/test/test_color.py       2022-02-26 16:33:35.000000000 
+0100
@@ -70,3 +70,17 @@
         assert black_name == black_name
         assert black_rgb != red_rgb
         assert black_rgb != black_name
+
+
+class Test_Color_hsv:
+    @pytest.mark.parametrize(
+        ["value", "expected"],
+        [
+            ["#ffffff", (0.0, 0.0, 1)],
+            [(255, 255, 255), (0.0, 0.0, 1)],
+            ["black", (0.0, 0.0, 0.0)],
+            ["red", (0.0, 0.7609756097560976, 0.803921568627451)],
+        ],
+    )
+    def test_normal(self, value, expected):
+        assert Color(value).hsv == expected
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tcolorpy-0.1.0/tox.ini new/tcolorpy-0.1.2/tox.ini
--- old/tcolorpy-0.1.0/tox.ini  2021-06-12 15:33:19.000000000 +0200
+++ new/tcolorpy-0.1.2/tox.ini  2022-02-26 16:33:35.000000000 +0100
@@ -9,8 +9,8 @@
     lint
 
 [testenv]
-deps =
-    .[test]
+extras =
+    test
 commands =
     pytest {posargs}
 
@@ -27,25 +27,25 @@
 [testenv:clean]
 skip_install = true
 deps =
-    cleanpy>=0.2
+    cleanpy>=0.3.1
 commands =
-    cleanpy --force --all --exclude-envs .
+    cleanpy --all --exclude-envs .
 
 [testenv:cov]
 passenv = *
+extras =
+    test
 deps =
-    .[test]
     coverage[toml]>=5
 commands =
     coverage run -m pytest {posargs:-vv}
     coverage report -m
 
 [testenv:fmt]
-basepython = python3.8
 skip_install = true
 deps =
-    autoflake
-    black
+    autoflake>=1.4
+    black>=22.1
     isort>=5
 commands =
     autoflake --in-place --recursive --remove-all-unused-imports 
--ignore-init-module-imports .
@@ -56,9 +56,9 @@
 basepython = python3.8
 skip_install = true
 deps =
-    mypy>=0.761
-    pylama
+    mypy>=0.931
+    pylama>=8.3.6
 commands =
     python setup.py check
-    -mypy tcolorpy setup.py
-    -pylama
+    mypy tcolorpy setup.py
+    pylama

Reply via email to