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 2025-02-14 19:23:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-tcolorpy (Old)
and /work/SRC/openSUSE:Factory/.python-tcolorpy.new.8181 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-tcolorpy"
Fri Feb 14 19:23:26 2025 rev:6 rq:1245902 version:0.1.7
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-tcolorpy/python-tcolorpy.changes
2024-05-03 19:45:42.495378395 +0200
+++
/work/SRC/openSUSE:Factory/.python-tcolorpy.new.8181/python-tcolorpy.changes
2025-02-14 19:23:36.137413463 +0100
@@ -1,0 +2,12 @@
+Fri Feb 14 12:45:36 UTC 2025 - John Paul Adrian Glaubitz
<[email protected]>
+
+- Update to 0.1.7
+ * Drop support for Python 3.7/3.8
+ * Add support for Python 3.13
+ * Fix README rendering on PyPI
+ * Refactor type annotations
+ * Update copyright years
+ * Bump sigstore/gh-action-sigstore-python from 2.1.1 to 3.0.0
+ in the actions-dependencies group by @dependabot in #6
+
+-------------------------------------------------------------------
Old:
----
tcolorpy-0.1.6.tar.gz
New:
----
tcolorpy-0.1.7.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-tcolorpy.spec ++++++
--- /var/tmp/diff_new_pack.JmqzUr/_old 2025-02-14 19:23:36.805441156 +0100
+++ /var/tmp/diff_new_pack.JmqzUr/_new 2025-02-14 19:23:36.805441156 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-tcolorpy
#
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-tcolorpy
-Version: 0.1.6
+Version: 0.1.7
Release: 0
Summary: Python library to apply true color for terminal text
License: MIT
++++++ tcolorpy-0.1.6.tar.gz -> tcolorpy-0.1.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tcolorpy-0.1.6/.github/workflows/ci.yml
new/tcolorpy-0.1.7/.github/workflows/ci.yml
--- old/tcolorpy-0.1.6/.github/workflows/ci.yml 2024-04-27 18:13:16.000000000
+0200
+++ new/tcolorpy-0.1.7/.github/workflows/ci.yml 2024-12-29 16:21:38.000000000
+0100
@@ -49,59 +49,6 @@
name: dist
path: ./dist/*
- publish-package:
- needs: build-package
- runs-on: ubuntu-latest
- concurrency:
- group: ${{ github.event_name }}-${{ github.workflow }}-${{
github.ref_name }}-publish-pkg
- cancel-in-progress: true
- timeout-minutes: 20
- environment:
- name: testpypi
- url: https://pypi.org/p/tcolorpy
- permissions:
- id-token: write # IMPORTANT: this permission is mandatory for trusted
publishing
-
- steps:
- - uses: actions/download-artifact@v4
- with:
- name: dist
- path: ./dist
-
- - name: Publish package to TestPyPI
- uses: pypa/gh-action-pypi-publish@release/v1
- with:
- repository-url: https://test.pypi.org/legacy/
- skip-existing: true
-
- sign-package:
- needs: build-package
- runs-on: ubuntu-latest
- concurrency:
- group: ${{ github.event_name }}-${{ github.workflow }}-${{
github.ref_name }}-sign-pkg
- cancel-in-progress: true
- timeout-minutes: 20
- permissions:
- id-token: write
-
- steps:
- - uses: actions/download-artifact@v4
- with:
- name: dist
- path: ./dist
-
- - name: Sign the dists with Sigstore
- uses: sigstore/[email protected]
- with:
- inputs: >-
- ./dist/*.tar.gz
- ./dist/*.whl
-
- - uses: actions/upload-artifact@v4
- with:
- name: sigstore
- path: ./dist/*
-
lint:
runs-on: ubuntu-latest
concurrency:
@@ -136,11 +83,8 @@
strategy:
fail-fast: false
matrix:
- python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12",
"pypy-3.10"]
+ python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "pypy-3.10"]
os: [ubuntu-latest, macos-latest, windows-latest]
- exclude:
- - os: macos-latest
- python-version: "3.7"
timeout-minutes: 20
steps:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/tcolorpy-0.1.6/.github/workflows/on_push_default_branch.yml
new/tcolorpy-0.1.7/.github/workflows/on_push_default_branch.yml
--- old/tcolorpy-0.1.6/.github/workflows/on_push_default_branch.yml
1970-01-01 01:00:00.000000000 +0100
+++ new/tcolorpy-0.1.7/.github/workflows/on_push_default_branch.yml
2024-12-29 16:21:38.000000000 +0100
@@ -0,0 +1,97 @@
+name: Publish to TestPyPI and Sign with Sigstore
+
+on:
+ push:
+ branches:
+ - master
+ paths-ignore:
+ - ".gitignore"
+ - "README.rst"
+
+permissions:
+ contents: read
+
+jobs:
+ build-wheel-package:
+ runs-on: ubuntu-latest
+ concurrency:
+ group: ${{ github.event_name }}-${{ github.workflow }}-${{
github.ref_name }}-build
+ cancel-in-progress: true
+ timeout-minutes: 20
+
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ fetch-tags: true
+
+ - uses: actions/setup-python@v5
+ with:
+ python-version: "3.13"
+ cache: pip
+ cache-dependency-path: |
+ setup.py
+ **/*requirements.txt
+ tox.ini
+
+ - run: make setup-ci
+
+ - run: make build
+
+ - uses: actions/upload-artifact@v4
+ with:
+ name: dist
+ path: ./dist/*
+
+ publish-package:
+ needs: build-wheel-package
+ runs-on: ubuntu-latest
+ concurrency:
+ group: ${{ github.event_name }}-${{ github.workflow }}-${{
github.ref_name }}-publish-pkg
+ cancel-in-progress: true
+ timeout-minutes: 10
+ environment:
+ name: testpypi
+ url: https://test.pypi.org/p/tcolorpy
+ permissions:
+ id-token: write # IMPORTANT: this permission is mandatory for trusted
publishing
+
+ steps:
+ - uses: actions/download-artifact@v4
+ with:
+ name: dist
+ path: ./dist
+
+ - name: Publish package to TestPyPI
+ uses: pypa/gh-action-pypi-publish@release/v1
+ with:
+ repository-url: https://test.pypi.org/legacy/
+ skip-existing: true
+
+ sign-package:
+ needs: publish-package
+ runs-on: ubuntu-latest
+ concurrency:
+ group: ${{ github.event_name }}-${{ github.workflow }}-${{
github.ref_name }}-sign-pkg
+ cancel-in-progress: true
+ timeout-minutes: 10
+ permissions:
+ id-token: write
+
+ steps:
+ - uses: actions/download-artifact@v4
+ with:
+ name: dist
+ path: ./dist
+
+ - name: Sign the dists with Sigstore
+ uses: sigstore/[email protected]
+ with:
+ inputs: >-
+ ./dist/*.tar.gz
+ ./dist/*.whl
+
+ - uses: actions/upload-artifact@v4
+ with:
+ name: sigstore
+ path: ./dist/*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tcolorpy-0.1.6/.github/workflows/release.yml
new/tcolorpy-0.1.7/.github/workflows/release.yml
--- old/tcolorpy-0.1.6/.github/workflows/release.yml 2024-04-27
18:13:16.000000000 +0200
+++ new/tcolorpy-0.1.7/.github/workflows/release.yml 2024-12-29
16:21:38.000000000 +0100
@@ -56,7 +56,7 @@
uses: pypa/gh-action-pypi-publish@release/v1
generate-relese:
- needs: build-package
+ needs: publish-package
runs-on: ubuntu-latest
permissions:
id-token: write
@@ -69,7 +69,7 @@
path: ./dist
- name: Sign the dists with Sigstore
- uses: sigstore/[email protected]
+ uses: sigstore/[email protected]
with:
inputs: >-
./dist/*.tar.gz
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tcolorpy-0.1.6/CHANGELOG.md
new/tcolorpy-0.1.7/CHANGELOG.md
--- old/tcolorpy-0.1.6/CHANGELOG.md 2024-04-27 18:13:16.000000000 +0200
+++ new/tcolorpy-0.1.7/CHANGELOG.md 2024-12-29 16:21:38.000000000 +0100
@@ -1,3 +1,32 @@
+<a name="v0.1.6"></a>
+# [v0.1.6](https://github.com/thombashi/tcolorpy/releases/tag/v0.1.6) - 27 Apr
2024
+
+* Fix the package release
+
+**Full Changelog**:
https://github.com/thombashi/tcolorpy/compare/v0.1.5...v0.1.6
+
+[Changes][v0.1.6]
+
+
+<a name="v0.1.5"></a>
+# [v0.1.5](https://github.com/thombashi/tcolorpy/releases/tag/v0.1.5) - 27 Apr
2024
+
+## What's Changed
+* Bump actions/setup-python from 4 to 5 in the actions-dependencies group by
[@dependabot](https://github.com/dependabot) in
https://github.com/thombashi/tcolorpy/pull/4
+* Update CI by [@thombashi](https://github.com/thombashi) in
https://github.com/thombashi/tcolorpy/pull/5
+* Add `__all__` to `__init__.py`
+* Add support for Python 3.12
+* Add CHANGELOG.md
+* Modify to use `setuptools_scm` for package build
+
+## New Contributors
+* [@dependabot](https://github.com/dependabot) made their first contribution
in https://github.com/thombashi/tcolorpy/pull/4
+
+**Full Changelog**:
https://github.com/thombashi/tcolorpy/compare/v0.1.4...v0.1.5
+
+[Changes][v0.1.5]
+
+
<a name="v0.1.4"></a>
# [v0.1.4](https://github.com/thombashi/tcolorpy/releases/tag/v0.1.4) - 16 Sep
2023
@@ -48,6 +77,8 @@
[Changes][v0.1.0]
+[v0.1.6]: https://github.com/thombashi/tcolorpy/compare/v0.1.5...v0.1.6
+[v0.1.5]: https://github.com/thombashi/tcolorpy/compare/v0.1.4...v0.1.5
[v0.1.4]: https://github.com/thombashi/tcolorpy/compare/v0.1.3...v0.1.4
[v0.1.3]: https://github.com/thombashi/tcolorpy/compare/v0.1.2...v0.1.3
[v0.1.2]: https://github.com/thombashi/tcolorpy/compare/v0.1.0...v0.1.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tcolorpy-0.1.6/LICENSE new/tcolorpy-0.1.7/LICENSE
--- old/tcolorpy-0.1.6/LICENSE 2024-04-27 18:13:16.000000000 +0200
+++ new/tcolorpy-0.1.7/LICENSE 2024-12-29 16:21:38.000000000 +0100
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) 2020 Tsuyoshi Hombashi
+Copyright (c) 2020-2024 Tsuyoshi Hombashi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tcolorpy-0.1.6/Makefile new/tcolorpy-0.1.7/Makefile
--- old/tcolorpy-0.1.6/Makefile 2024-04-27 18:13:16.000000000 +0200
+++ new/tcolorpy-0.1.7/Makefile 2024-12-29 16:21:38.000000000 +0100
@@ -1,4 +1,3 @@
-AUTHOR := thombashi
PACKAGE := tcolorpy
BIN_DIR := $(shell pwd)/bin
@@ -8,6 +7,11 @@
PYTHON := python3
BIN_CHANGELOG_FROM_RELEASE := $(BIN_DIR)/changelog-from-release
+AUTHOR := Tsuyoshi Hombashi
+FIRST_RELEASE_YEAR := 2020
+LAST_UPDATE_YEAR := $(shell git log -1 --format=%cd --date=format:%Y)
+
+
$(BIN_CHANGELOG_FROM_RELEASE):
GOBIN=$(BIN_DIR) go install
github.com/rhysd/changelog-from-release/v3@latest
@@ -20,7 +24,7 @@
build-remote: clean
@mkdir -p $(BUILD_WORK_DIR)
@cd $(BUILD_WORK_DIR) && \
- git clone https://github.com/$(AUTHOR)/$(PACKAGE).git --depth 1
&& \
+ git clone https://github.com/thombashi/$(PACKAGE).git --depth 1
&& \
cd $(PACKAGE) && \
tox -e build
ls -lh $(PKG_BUILD_DIR)/dist/*
@@ -44,8 +48,7 @@
.PHONY: release
release:
- $(PYTHON) -m pip install -q --disable-pip-version-check --upgrade
releasecmd setuptools
- $(PYTHON) setup.py release --sign --skip-uploading --verbose
+ $(PYTHON) -m tox -e release
$(MAKE) clean
.PHONY: setup-ci
@@ -53,11 +56,16 @@
$(PYTHON) -m pip install -q --disable-pip-version-check --upgrade pip
$(PYTHON) -m pip install -q --disable-pip-version-check --upgrade tox
-.PHONY: setup
-setup: setup-ci
+.PHONY: setup-dev
+setup-dev: setup-ci
$(PYTHON) -m pip install -q --disable-pip-version-check --upgrade -e
.[test]
$(PYTHON) -m pip check
.PHONY: test
test:
$(PYTHON) -m tox -e py
+
+.PHONY: update-copyright
+update-copyright:
+ sed -i "s/^__copyright__ = .*/__copyright__ = f\"Copyright
$(FIRST_RELEASE_YEAR)-$(LAST_UPDATE_YEAR), {__author__}\"/"
$(PACKAGE)/__version__.py
+ sed -i "s/^Copyright (c) .* $(AUTHOR)/Copyright (c)
$(FIRST_RELEASE_YEAR)-$(LAST_UPDATE_YEAR) $(AUTHOR)/" LICENSE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tcolorpy-0.1.6/PKG-INFO new/tcolorpy-0.1.7/PKG-INFO
--- old/tcolorpy-0.1.6/PKG-INFO 2024-04-27 18:13:48.201067700 +0200
+++ new/tcolorpy-0.1.7/PKG-INFO 2024-12-29 16:22:05.293258700 +0100
@@ -1,12 +1,12 @@
Metadata-Version: 2.1
Name: tcolorpy
-Version: 0.1.6
+Version: 0.1.7
Summary: tcolopy is a Python library to apply true color for terminal text.
Home-page: https://github.com/thombashi/tcolorpy
Author: Tsuyoshi Hombashi
Author-email: [email protected]
License: MIT License
-Project-URL: Changlog,
https://github.com/thombashi/tcolorpy/blob/master/CHANGELOG.md
+Project-URL: Changelog,
https://github.com/thombashi/tcolorpy/blob/master/CHANGELOG.md
Project-URL: Source, https://github.com/thombashi/tcolorpy
Project-URL: Tracker, https://github.com/thombashi/tcolorpy/issues
Keywords: ANSI escape,terminal color,truecolor
@@ -15,12 +15,11 @@
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.7
-Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
+Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -29,12 +28,12 @@
Classifier: Topic :: Terminals
Classifier: Topic :: Text Processing
Classifier: Typing :: Typed
-Requires-Python: >=3.7
+Requires-Python: >=3.9
Description-Content-Type: text/x-rst
License-File: LICENSE
Provides-Extra: test
Requires-Dist: pytest>=6.0.1; extra == "test"
-Requires-Dist: pytest-md-report>=0.5; extra == "test"
+Requires-Dist: pytest-md-report>=0.6.2; extra == "test"
.. contents:: **tcolorpy**
:backlinks: top
@@ -107,7 +106,6 @@
:Output:
.. figure::
https://cdn.jsdelivr.net/gh/thombashi/tcolorpy@master/ss/oneline.png
- :scale: 60%
:alt: https://github.com/thombashi/tcolorpy/blob/master/ss/oneline.png
You can set the following ``tcolor`` arguments:
@@ -123,7 +121,6 @@
Apply true color and styles to text:
.. figure:: https://cdn.jsdelivr.net/gh/thombashi/tcolorpy@master/ss/styles.png
- :scale: 60%
:alt: https://github.com/thombashi/tcolorpy/blob/master/ss/styles.png
`example source code
<https://github.com/thombashi/tcolorpy/blob/master/examples/ansi_styles.py>`__
@@ -131,7 +128,6 @@
You can also specify colors by name:
.. figure::
https://cdn.jsdelivr.net/gh/thombashi/tcolorpy@master/ss/ansi_colors.png
- :scale: 60%
:alt: https://github.com/thombashi/tcolorpy/blob/master/ss/ansi_colors.png
`example source code
<https://github.com/thombashi/tcolorpy/blob/master/examples/ansi_colors.py>`__
@@ -167,5 +163,5 @@
Dependencies
============================================
-Python 3.7+
+Python 3.9+
no external dependencies.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tcolorpy-0.1.6/README.rst
new/tcolorpy-0.1.7/README.rst
--- old/tcolorpy-0.1.6/README.rst 2024-04-27 18:13:16.000000000 +0200
+++ new/tcolorpy-0.1.7/README.rst 2024-12-29 16:21:38.000000000 +0100
@@ -129,5 +129,5 @@
Dependencies
============================================
-Python 3.7+
+Python 3.9+
no external dependencies.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tcolorpy-0.1.6/pyproject.toml
new/tcolorpy-0.1.7/pyproject.toml
--- old/tcolorpy-0.1.6/pyproject.toml 2024-04-27 18:13:16.000000000 +0200
+++ new/tcolorpy-0.1.7/pyproject.toml 2024-12-29 16:21:38.000000000 +0100
@@ -2,8 +2,7 @@
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=64",
- "setuptools_scm>=7,<8; python_version<'3.8'",
- "setuptools_scm>=8; python_version>='3.8'",
+ "setuptools_scm>=8",
]
[tool.setuptools_scm]
@@ -27,7 +26,7 @@
| docs/conf.py
'''
line-length = 100
-target-version = ['py37', 'py38', 'py39', 'py310', 'py311', 'py312']
+target-version = ['py39', 'py310', 'py311', 'py312']
[tool.coverage.run]
branch = true
@@ -40,7 +39,6 @@
'pass',
'ABCmeta',
'abstractmethod',
- 'abstractclassmethod',
'warnings.warn',
]
precision = 1
@@ -62,7 +60,7 @@
[tool.mypy]
ignore_missing_imports = true
-python_version = 3.7
+python_version = 3.9
pretty = true
@@ -88,7 +86,7 @@
"build",
"dist"
]
-pythonVersion = "3.7"
+pythonVersion = "3.9"
[tool.pytest.ini_options]
testpaths = [
@@ -101,7 +99,7 @@
[tool.ruff]
line-length = 100
-target-version = "py37"
+target-version = "py39"
exclude = [
".eggs/",
".tox/",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tcolorpy-0.1.6/requirements/test_requirements.txt
new/tcolorpy-0.1.7/requirements/test_requirements.txt
--- old/tcolorpy-0.1.6/requirements/test_requirements.txt 2024-04-27
18:13:16.000000000 +0200
+++ new/tcolorpy-0.1.7/requirements/test_requirements.txt 2024-12-29
16:21:38.000000000 +0100
@@ -1,2 +1,2 @@
pytest>=6.0.1
-pytest-md-report>=0.5
+pytest-md-report>=0.6.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tcolorpy-0.1.6/setup.py new/tcolorpy-0.1.7/setup.py
--- old/tcolorpy-0.1.6/setup.py 2024-04-27 18:13:16.000000000 +0200
+++ new/tcolorpy-0.1.7/setup.py 2024-12-29 16:21:38.000000000 +0100
@@ -1,5 +1,5 @@
import os.path
-from typing import Dict, Type
+import re
import setuptools
@@ -7,11 +7,12 @@
MODULE_NAME = "tcolorpy"
REPOSITORY_URL = f"https://github.com/thombashi/{MODULE_NAME:s}"
REQUIREMENT_DIR = "requirements"
+ENCODING = "utf8"
-pkg_info: Dict[str, str] = {}
+pkg_info: dict[str, str] = {}
-def get_release_command_class() -> Dict[str, Type[setuptools.Command]]:
+def get_release_command_class() -> dict[str, type[setuptools.Command]]:
try:
from releasecmd import ReleaseCommand
except ImportError:
@@ -20,12 +21,17 @@
return {"release": ReleaseCommand}
+def make_long_description() -> str:
+ # ref: https://github.com/pypa/readme_renderer/issues/304
+ re_exclude = re.compile(r"\s*:scale:\s*\d+")
+
+ with open("README.rst", encoding=ENCODING) as f:
+ return "".join([line for line in f if not re_exclude.search(line)])
+
+
with open(os.path.join(MODULE_NAME, "__version__.py")) as f:
exec(f.read(), pkg_info)
-with open("README.rst", encoding="utf8") as f:
- LONG_DESCRIPTION = f.read()
-
with open(os.path.join(REQUIREMENT_DIR, "test_requirements.txt")) as f:
TESTS_REQUIRES = [line.strip() for line in f if line.strip()]
@@ -38,16 +44,16 @@
include_package_data=True,
keywords=["ANSI escape", "terminal color", "truecolor"],
license=pkg_info["__license__"],
- long_description=LONG_DESCRIPTION,
+ long_description=make_long_description(),
long_description_content_type="text/x-rst",
packages=setuptools.find_packages(exclude=["test*"]),
package_data={MODULE_NAME: ["py.typed"]},
project_urls={
- "Changlog": f"{REPOSITORY_URL:s}/blob/master/CHANGELOG.md",
+ "Changelog": f"{REPOSITORY_URL:s}/blob/master/CHANGELOG.md",
"Source": REPOSITORY_URL,
"Tracker": f"{REPOSITORY_URL:s}/issues",
},
- python_requires=">=3.7",
+ python_requires=">=3.9",
extras_require={"test": TESTS_REQUIRES},
classifiers=[
"Development Status :: 4 - Beta",
@@ -55,12 +61,11 @@
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
- "Programming Language :: Python :: 3.7",
- "Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
+ "Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tcolorpy-0.1.6/tcolorpy/__version__.py
new/tcolorpy-0.1.7/tcolorpy/__version__.py
--- old/tcolorpy-0.1.6/tcolorpy/__version__.py 2024-04-27 18:13:16.000000000
+0200
+++ new/tcolorpy-0.1.7/tcolorpy/__version__.py 2024-12-29 16:21:38.000000000
+0100
@@ -1,6 +1,6 @@
__author__ = "Tsuyoshi Hombashi"
-__copyright__ = f"Copyright 2020, {__author__}"
+__copyright__ = f"Copyright 2020-2024, {__author__}"
__license__ = "MIT License"
-__version__ = "0.1.6"
+__version__ = "0.1.7"
__maintainer__ = __author__
__email__ = "[email protected]"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tcolorpy-0.1.6/tcolorpy/_truecolor.py
new/tcolorpy-0.1.7/tcolorpy/_truecolor.py
--- old/tcolorpy-0.1.6/tcolorpy/_truecolor.py 2024-04-27 18:13:16.000000000
+0200
+++ new/tcolorpy-0.1.7/tcolorpy/_truecolor.py 2024-12-29 16:21:38.000000000
+0100
@@ -1,13 +1,14 @@
import re
from collections import namedtuple
+from collections.abc import Sequence
from colorsys import rgb_to_hsv
from enum import Enum
-from typing import Any, List, Optional, Sequence, Tuple, Type, Union, cast #
noqa
+from typing import Any, Optional, Union
from ._const import CSI, RESET, AnsiBGColor, AnsiFGColor, AnsiStyle
-RGBTuple = Tuple[int, int, int]
+RGBTuple = tuple[int, int, int]
HSV = namedtuple("HSV", "hue saturation value")
@@ -143,7 +144,7 @@
return Color((n - self.red, n - self.green, n - self.blue))
-def _normalize_enum(value: Any, enum_class: Type[Enum]) -> Any:
+def _normalize_enum(value: Any, enum_class: type[Enum]) -> Any:
if isinstance(value, enum_class):
return value
@@ -238,7 +239,7 @@
ansi_fg_color = _make_ansi_fg_truecolor(color)
ansi_bg_color = _make_ansi_bg_truecolor(bg_color)
- ansi_styles: List[str] = []
+ ansi_styles: list[str] = []
if styles:
ansi_styles = [_to_ansi_style(style) for style in styles]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tcolorpy-0.1.6/tcolorpy.egg-info/PKG-INFO
new/tcolorpy-0.1.7/tcolorpy.egg-info/PKG-INFO
--- old/tcolorpy-0.1.6/tcolorpy.egg-info/PKG-INFO 2024-04-27
18:13:48.000000000 +0200
+++ new/tcolorpy-0.1.7/tcolorpy.egg-info/PKG-INFO 2024-12-29
16:22:05.000000000 +0100
@@ -1,12 +1,12 @@
Metadata-Version: 2.1
Name: tcolorpy
-Version: 0.1.6
+Version: 0.1.7
Summary: tcolopy is a Python library to apply true color for terminal text.
Home-page: https://github.com/thombashi/tcolorpy
Author: Tsuyoshi Hombashi
Author-email: [email protected]
License: MIT License
-Project-URL: Changlog,
https://github.com/thombashi/tcolorpy/blob/master/CHANGELOG.md
+Project-URL: Changelog,
https://github.com/thombashi/tcolorpy/blob/master/CHANGELOG.md
Project-URL: Source, https://github.com/thombashi/tcolorpy
Project-URL: Tracker, https://github.com/thombashi/tcolorpy/issues
Keywords: ANSI escape,terminal color,truecolor
@@ -15,12 +15,11 @@
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.7
-Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
+Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -29,12 +28,12 @@
Classifier: Topic :: Terminals
Classifier: Topic :: Text Processing
Classifier: Typing :: Typed
-Requires-Python: >=3.7
+Requires-Python: >=3.9
Description-Content-Type: text/x-rst
License-File: LICENSE
Provides-Extra: test
Requires-Dist: pytest>=6.0.1; extra == "test"
-Requires-Dist: pytest-md-report>=0.5; extra == "test"
+Requires-Dist: pytest-md-report>=0.6.2; extra == "test"
.. contents:: **tcolorpy**
:backlinks: top
@@ -107,7 +106,6 @@
:Output:
.. figure::
https://cdn.jsdelivr.net/gh/thombashi/tcolorpy@master/ss/oneline.png
- :scale: 60%
:alt: https://github.com/thombashi/tcolorpy/blob/master/ss/oneline.png
You can set the following ``tcolor`` arguments:
@@ -123,7 +121,6 @@
Apply true color and styles to text:
.. figure:: https://cdn.jsdelivr.net/gh/thombashi/tcolorpy@master/ss/styles.png
- :scale: 60%
:alt: https://github.com/thombashi/tcolorpy/blob/master/ss/styles.png
`example source code
<https://github.com/thombashi/tcolorpy/blob/master/examples/ansi_styles.py>`__
@@ -131,7 +128,6 @@
You can also specify colors by name:
.. figure::
https://cdn.jsdelivr.net/gh/thombashi/tcolorpy@master/ss/ansi_colors.png
- :scale: 60%
:alt: https://github.com/thombashi/tcolorpy/blob/master/ss/ansi_colors.png
`example source code
<https://github.com/thombashi/tcolorpy/blob/master/examples/ansi_colors.py>`__
@@ -167,5 +163,5 @@
Dependencies
============================================
-Python 3.7+
+Python 3.9+
no external dependencies.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tcolorpy-0.1.6/tcolorpy.egg-info/SOURCES.txt
new/tcolorpy-0.1.7/tcolorpy.egg-info/SOURCES.txt
--- old/tcolorpy-0.1.6/tcolorpy.egg-info/SOURCES.txt 2024-04-27
18:13:48.000000000 +0200
+++ new/tcolorpy-0.1.7/tcolorpy.egg-info/SOURCES.txt 2024-12-29
16:22:05.000000000 +0100
@@ -9,6 +9,7 @@
tox.ini
.github/dependabot.yml
.github/workflows/ci.yml
+.github/workflows/on_push_default_branch.yml
.github/workflows/release.yml
examples/ansi_colors.py
examples/ansi_styles.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tcolorpy-0.1.6/tcolorpy.egg-info/requires.txt
new/tcolorpy-0.1.7/tcolorpy.egg-info/requires.txt
--- old/tcolorpy-0.1.6/tcolorpy.egg-info/requires.txt 2024-04-27
18:13:48.000000000 +0200
+++ new/tcolorpy-0.1.7/tcolorpy.egg-info/requires.txt 2024-12-29
16:22:05.000000000 +0100
@@ -1,4 +1,4 @@
[test]
pytest>=6.0.1
-pytest-md-report>=0.5
+pytest-md-report>=0.6.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tcolorpy-0.1.6/tox.ini new/tcolorpy-0.1.7/tox.ini
--- old/tcolorpy-0.1.6/tox.ini 2024-04-27 18:13:16.000000000 +0200
+++ new/tcolorpy-0.1.7/tox.ini 2024-12-29 16:21:38.000000000 +0100
@@ -1,6 +1,6 @@
[tox]
envlist =
- py{37,38,39,310,311,312}
+ py{39,310,311,312,313}
pypy3
build
cov
@@ -19,7 +19,7 @@
twine
commands =
python -m build
- ; twine check dist/*.whl dist/*.tar.gz
+ twine check dist/*.whl dist/*.tar.gz
[testenv:clean]
skip_install = true
@@ -45,7 +45,7 @@
black>=24.1
isort>=5
commands =
- autoflake --in-place --recursive --remove-all-unused-imports
--ignore-init-module-imports .
+ autoflake --in-place --recursive --remove-all-unused-imports .
isort .
black setup.py test pathvalidate
@@ -54,9 +54,9 @@
deps =
autoflake>=2
isort>=5
- ruff>=0.3.5
+ ruff>=0.8
commands =
- autoflake --in-place --recursive --remove-all-unused-imports
--ignore-init-module-imports .
+ autoflake --in-place --recursive --remove-all-unused-imports .
isort .
ruff format
@@ -68,7 +68,7 @@
mypy>=1
pyright>=1.1
releasecmd
- ruff>=0.3.5
+ ruff>=0.8
setuptools_scm
commands =
mypy tcolorpy setup.py
@@ -76,3 +76,9 @@
pyright
ruff format --check
ruff check
+
+[testenv:release]
+deps =
+ releasecmd
+commands =
+ python setup.py release --sign --skip-uploading --verbose