Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-crayons for openSUSE:Factory checked in at 2021-06-16 20:34:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-crayons (Old) and /work/SRC/openSUSE:Factory/.python-crayons.new.32437 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-crayons" Wed Jun 16 20:34:53 2021 rev:6 rq:900355 version:0.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-crayons/python-crayons.changes 2021-01-06 19:56:43.185105695 +0100 +++ /work/SRC/openSUSE:Factory/.python-crayons.new.32437/python-crayons.changes 2021-06-16 20:36:39.387306070 +0200 @@ -1,0 +2,6 @@ +Tue Jun 15 17:32:37 UTC 2021 - Matej Cepl <[email protected]> + +- Don't own everything under sitelib. +- Run some tests (and use GitHub tarball to get it) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-crayons.spec ++++++ --- /var/tmp/diff_new_pack.F63cgS/_old 2021-06-16 20:36:39.763306711 +0200 +++ /var/tmp/diff_new_pack.F63cgS/_new 2021-06-16 20:36:39.767306718 +0200 @@ -17,13 +17,15 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define modname crayons Name: python-crayons Version: 0.4.0 Release: 0 Summary: Colored strings for terminal usage License: MIT URL: https://github.com/MasterOdin/crayons -Source: https://files.pythonhosted.org/packages/source/c/crayons/crayons-%{version}.tar.gz +Source: https://github.com/MasterOdin/%{modname}/archive/refs/tags/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz +BuildRequires: %{python_module colorama} BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros Requires: python-colorama @@ -36,7 +38,7 @@ and normal. %prep -%setup -q -n crayons-%{version} +%setup -q -n %{modname}-%{version} %build %python_build @@ -44,9 +46,14 @@ %install %python_install +%check +%python_exec test_crayons.py + %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/%{modname}.py +%{python_sitelib}/%{modname}-%{version}-py*.egg-info +%pycache_only %{python_sitelib}/__pycache__/%{modname}* %changelog ++++++ crayons-0.4.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/crayons-0.4.0/.flake8 new/crayons-0.4.0/.flake8 --- old/crayons-0.4.0/.flake8 1970-01-01 01:00:00.000000000 +0100 +++ new/crayons-0.4.0/.flake8 2020-08-26 23:33:14.000000000 +0200 @@ -0,0 +1,2 @@ +[flake8] +ignore = F822 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/crayons-0.4.0/.github/workflows/publish.yml new/crayons-0.4.0/.github/workflows/publish.yml --- old/crayons-0.4.0/.github/workflows/publish.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/crayons-0.4.0/.github/workflows/publish.yml 2020-08-26 23:33:14.000000000 +0200 @@ -0,0 +1,26 @@ +name: Publish ????s + +on: + release: + types: [published] + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + + - name: install dependencies + run: python -m pip install -U pip wheel setuptools + + - run: python setup.py sdist bdist_wheel + + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@master + with: + password: ${{ secrets.PYPI_TOKEN }} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/crayons-0.4.0/.github/workflows/test.yml new/crayons-0.4.0/.github/workflows/test.yml --- old/crayons-0.4.0/.github/workflows/test.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/crayons-0.4.0/.github/workflows/test.yml 2020-08-26 23:33:14.000000000 +0200 @@ -0,0 +1,53 @@ +name: Test + +on: + push: + branches: [ '*' ] + pull_request: + branches: [ '*' ] + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: ['2.7', '3.5', '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: Install Dependencies + run: | + python -m pip install -U pip + python -m pip install colorama + + + - run: python test_crayons.py + + - run: pip install . + + lint: + runs-on: ubuntu-latest + env: + python-version: '3.7' + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python ${{ env.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ env.python-version }} + + - name: Install Dependencies + run: | + python3 -m pip install -U pip + python3 -m pip install flake8 flake8-bugbear + + - run: flake8 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/crayons-0.4.0/.gitignore new/crayons-0.4.0/.gitignore --- old/crayons-0.4.0/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/crayons-0.4.0/.gitignore 2020-08-26 23:33:14.000000000 +0200 @@ -0,0 +1,6 @@ +__pycache__/ +.DS_Store +*.py[cod] +dist/ +build/ +*.egg-info/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/crayons-0.4.0/PKG-INFO new/crayons-0.4.0/PKG-INFO --- old/crayons-0.4.0/PKG-INFO 2020-08-26 23:34:12.000000000 +0200 +++ new/crayons-0.4.0/PKG-INFO 1970-01-01 01:00:00.000000000 +0100 @@ -1,82 +0,0 @@ -Metadata-Version: 1.2 -Name: crayons -Version: 0.4.0 -Summary: TextUI colors for Python. -Home-page: https://github.com/MasterOdin/crayons -Author: Kenneth Reitz -Author-email: [email protected] -Maintainer: Matthew Peveler -Maintainer-email: [email protected] -License: MIT -Description: - Crayons: Text UI colors for Python. - =================================== - - .. image:: https://img.shields.io/pypi/v/crayons.svg - :target: https://pypi.org/project/crayons/ - - .. image:: https://github.com/MasterOdin/crayons/workflows/Test/badge.svg - :target: https://github.com/MasterOdin/crayons/actions?query=workflow%3ATest+branch%3Amaster - - .. image:: https://img.shields.io/pypi/l/crayons.svg - :target: https://pypi.python.org/pypi/crayons - - .. image:: https://img.shields.io/pypi/wheel/crayons.svg - :target: https://pypi.python.org/pypi/crayons - - .. image:: https://img.shields.io/pypi/pyversions/crayons.svg - :target: https://pypi.python.org/pypi/crayons - - - This module is really simple, it gives you colored strings for terminal - usage. Included colors are ``red``, ``green``, ``yellow``, ``blue``, ``black``, ``magenta``, ``cyan``, ``white``, and - ``normal`` (as well as ``clean`` and ``disable``). - - **Crayons** is nice because it automatically wraps a given string in both the foreground color, as well as returning to the - original state after the string is complete. Most terminal color libraries make you manage this yourself. - - - .. image:: https://d3vv6lp55qjaqc.cloudfront.net/items/3q0I293q1z293R3a3a3n/Screen%20Shot%202017-01-23%20at%206.00.02%20PM.png?X-CloudApp-Visitor-Id=2577 - - - Arguments include ``always=True`` and ``bold=True``. - - Features - -------- - - - If you call ``disable()``, all future calls to colors will be ignored. - - If you call ``normal()``, color is reset to default foreground color - - If the current process is not in a TTY (e.g. being piped), no colors will be displayed. - - Length of ColoredStrings can be properly calculated. - - Powered by colorama. - - Usage is simple - --------------- - - :: - - # red is red, white is white. - >>> print('{} white'.format(crayons.red('red'))) - red white - - That's it! - - Installation - ------------ - - :: - - $ pip install crayons - -Platform: UNKNOWN -Classifier: License :: OSI Approved :: MIT License -Classifier: Programming Language :: Python -Classifier: Programming Language :: Python :: 2.7 -Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.4 -Classifier: Programming Language :: Python :: 3.5 -Classifier: Programming Language :: Python :: 3.6 -Classifier: Programming Language :: Python :: 3.7 -Classifier: Programming Language :: Python :: 3.8 -Classifier: Programming Language :: Python :: Implementation :: CPython -Classifier: Programming Language :: Python :: Implementation :: PyPy diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/crayons-0.4.0/crayons.egg-info/PKG-INFO new/crayons-0.4.0/crayons.egg-info/PKG-INFO --- old/crayons-0.4.0/crayons.egg-info/PKG-INFO 2020-08-26 23:34:12.000000000 +0200 +++ new/crayons-0.4.0/crayons.egg-info/PKG-INFO 1970-01-01 01:00:00.000000000 +0100 @@ -1,82 +0,0 @@ -Metadata-Version: 1.2 -Name: crayons -Version: 0.4.0 -Summary: TextUI colors for Python. -Home-page: https://github.com/MasterOdin/crayons -Author: Kenneth Reitz -Author-email: [email protected] -Maintainer: Matthew Peveler -Maintainer-email: [email protected] -License: MIT -Description: - Crayons: Text UI colors for Python. - =================================== - - .. image:: https://img.shields.io/pypi/v/crayons.svg - :target: https://pypi.org/project/crayons/ - - .. image:: https://github.com/MasterOdin/crayons/workflows/Test/badge.svg - :target: https://github.com/MasterOdin/crayons/actions?query=workflow%3ATest+branch%3Amaster - - .. image:: https://img.shields.io/pypi/l/crayons.svg - :target: https://pypi.python.org/pypi/crayons - - .. image:: https://img.shields.io/pypi/wheel/crayons.svg - :target: https://pypi.python.org/pypi/crayons - - .. image:: https://img.shields.io/pypi/pyversions/crayons.svg - :target: https://pypi.python.org/pypi/crayons - - - This module is really simple, it gives you colored strings for terminal - usage. Included colors are ``red``, ``green``, ``yellow``, ``blue``, ``black``, ``magenta``, ``cyan``, ``white``, and - ``normal`` (as well as ``clean`` and ``disable``). - - **Crayons** is nice because it automatically wraps a given string in both the foreground color, as well as returning to the - original state after the string is complete. Most terminal color libraries make you manage this yourself. - - - .. image:: https://d3vv6lp55qjaqc.cloudfront.net/items/3q0I293q1z293R3a3a3n/Screen%20Shot%202017-01-23%20at%206.00.02%20PM.png?X-CloudApp-Visitor-Id=2577 - - - Arguments include ``always=True`` and ``bold=True``. - - Features - -------- - - - If you call ``disable()``, all future calls to colors will be ignored. - - If you call ``normal()``, color is reset to default foreground color - - If the current process is not in a TTY (e.g. being piped), no colors will be displayed. - - Length of ColoredStrings can be properly calculated. - - Powered by colorama. - - Usage is simple - --------------- - - :: - - # red is red, white is white. - >>> print('{} white'.format(crayons.red('red'))) - red white - - That's it! - - Installation - ------------ - - :: - - $ pip install crayons - -Platform: UNKNOWN -Classifier: License :: OSI Approved :: MIT License -Classifier: Programming Language :: Python -Classifier: Programming Language :: Python :: 2.7 -Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.4 -Classifier: Programming Language :: Python :: 3.5 -Classifier: Programming Language :: Python :: 3.6 -Classifier: Programming Language :: Python :: 3.7 -Classifier: Programming Language :: Python :: 3.8 -Classifier: Programming Language :: Python :: Implementation :: CPython -Classifier: Programming Language :: Python :: Implementation :: PyPy diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/crayons-0.4.0/crayons.egg-info/SOURCES.txt new/crayons-0.4.0/crayons.egg-info/SOURCES.txt --- old/crayons-0.4.0/crayons.egg-info/SOURCES.txt 2020-08-26 23:34:12.000000000 +0200 +++ new/crayons-0.4.0/crayons.egg-info/SOURCES.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1,10 +0,0 @@ -LICENSE -README.rst -crayons.py -setup.cfg -setup.py -crayons.egg-info/PKG-INFO -crayons.egg-info/SOURCES.txt -crayons.egg-info/dependency_links.txt -crayons.egg-info/requires.txt -crayons.egg-info/top_level.txt \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/crayons-0.4.0/crayons.egg-info/dependency_links.txt new/crayons-0.4.0/crayons.egg-info/dependency_links.txt --- old/crayons-0.4.0/crayons.egg-info/dependency_links.txt 2020-08-26 23:34:12.000000000 +0200 +++ new/crayons-0.4.0/crayons.egg-info/dependency_links.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/crayons-0.4.0/crayons.egg-info/requires.txt new/crayons-0.4.0/crayons.egg-info/requires.txt --- old/crayons-0.4.0/crayons.egg-info/requires.txt 2020-08-26 23:34:12.000000000 +0200 +++ new/crayons-0.4.0/crayons.egg-info/requires.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -colorama diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/crayons-0.4.0/crayons.egg-info/top_level.txt new/crayons-0.4.0/crayons.egg-info/top_level.txt --- old/crayons-0.4.0/crayons.egg-info/top_level.txt 2020-08-26 23:34:12.000000000 +0200 +++ new/crayons-0.4.0/crayons.egg-info/top_level.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -crayons diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/crayons-0.4.0/setup.cfg new/crayons-0.4.0/setup.cfg --- old/crayons-0.4.0/setup.cfg 2020-08-26 23:34:12.000000000 +0200 +++ new/crayons-0.4.0/setup.cfg 2020-08-26 23:33:14.000000000 +0200 @@ -1,10 +1,13 @@ [metadata] +# This includes the license file(s) in the wheel. +# https://wheel.readthedocs.io/en/stable/user_guide.html#including-license-files-in-the-generated-wheel-file license_files = LICENSE [bdist_wheel] -universal = 1 - -[egg_info] -tag_build = -tag_date = 0 - +# This flag says to generate wheels that support both Python 2 and Python +# 3. If your code will not run unchanged on both Python 2 and 3, you will +# need to generate separate wheels for each Python version that you +# support. Removing this line (or setting universal to 0) will prevent +# bdist_wheel from trying to make a universal wheel. For more see: +# https://packaging.python.org/guides/distributing-packages-using-setuptools/#wheels +universal=1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/crayons-0.4.0/test_crayons.py new/crayons-0.4.0/test_crayons.py --- old/crayons-0.4.0/test_crayons.py 1970-01-01 01:00:00.000000000 +0100 +++ new/crayons-0.4.0/test_crayons.py 2020-08-26 23:33:14.000000000 +0200 @@ -0,0 +1,50 @@ +"""Simple test of just running the README example. Better tests to come.""" + +from __future__ import print_function +import crayons +from crayons import * # NOQA + +print(crayons.red('red string')) +print('{} white {}'.format(crayons.red('red'), crayons.blue('blue'))) +crayons.disable() +print('{} white {}'.format(crayons.red('red'), crayons.blue('blue'))) +print('non-string value {!s}'.format(crayons.red(1234))) +crayons.enable() +print('{} white {}'.format(crayons.red('red'), crayons.blue('blue'))) +print('non-string value {!s}'.format(crayons.red(1234))) +print(crayons.red('red string', bold=True)) +print(crayons.yellow('yellow string', bold=True)) +print(crayons.magenta('magenta string', bold=True)) +print(crayons.white('white string', bold=True)) +print(crayons.random('random color')) +print(crayons.random('random and bold', bold=True)) +print(crayons.red('red')) +print(crayons.green('green')) +print(crayons.yellow('yellow')) +print(crayons.blue('blue')) +print(crayons.black('black', bold=True)) + + +print(crayons.magenta('magenta')) +print(crayons.cyan('cyan')) +print(crayons.white('white')) +print(crayons.normal('normal')) +print(crayons.clean('{} clean {}'.format( + crayons.red('red'), + crayons.blue('blue') +))) +print(red('red')) # NOQA +print(green('green')) # NOQA +print(yellow('yellow')) # NOQA +print(blue('blue')) # NOQA +print(black('black', bold=True)) # NOQA +print(magenta('magenta')) # NOQA +print(cyan('cyan')) # NOQA +print(white('white')) # NOQA +print(normal('normal')) # NOQA +print(clean('{} clean {}'.format(red('red'), blue('blue')))) # NOQA + +crayons.replace_colors({'magenta': 'blue'}) +print(crayons.magenta('this is blue!')) +crayons.reset_replace_colors() +print(crayons.magenta('this is magenta again!'))
