From 9a3ab2aabbf9184ad5e28be87f1282950004b370 Mon Sep 17 00:00:00 2001 From: Matthew Horoszowski Date: Fri, 1 May 2026 21:13:10 -0400 Subject: [PATCH] release: python-pptx-extended 1.1.0 Rename distribution to python-pptx-extended for PyPI publication; the upstream python-pptx name is owned by Steve Canny on PyPI and cannot be reused. Import name (pptx) is unchanged so user code is unaffected. - pyproject.toml: name -> python-pptx-extended, add maintainer, fork description, fork repo URLs (Upstream URL preserved). - src/pptx/__init__.py: bump __version__ to 1.1.0. - README.rst: prepend fork notice listing the five added features and the install-conflict caveat with upstream. - HISTORY.rst: add 1.1.0 (2026-05-01) entry. Published to PyPI: https://pypi.org/project/python-pptx-extended/1.1.0/ Co-Authored-By: Claude Opus 4.7 (1M context) --- HISTORY.rst | 10 ++++++++++ README.rst | 23 +++++++++++++++++++++++ pyproject.toml | 12 +++++++----- src/pptx/__init__.py | 2 +- 4 files changed, 41 insertions(+), 6 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index e1c4e8faf..4c173d008 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -3,6 +3,16 @@ Release History --------------- +1.1.0 (2026-05-01) +++++++++++++++++++ + +- Fork of python-pptx 1.0.2 published as ``python-pptx-extended``. +- feature: full shadow effect API on ``ShadowFormat`` +- feature: bullet and numbered list paragraph formatting +- feature: per-edge table cell borders +- feature: ``cap_style`` and ``join_style`` properties on ``LineFormat`` +- feature: line-end shape types + 1.0.2 (2024-08-07) ++++++++++++++++++ diff --git a/README.rst b/README.rst index 24d657b37..84b4427dd 100644 --- a/README.rst +++ b/README.rst @@ -1,3 +1,26 @@ +Fork notice +----------- + +This distribution, ``python-pptx-extended``, is a fork of +`scanny/python-pptx`_ at upstream version 1.0.2. The import name is unchanged +(``import pptx``), so existing user code continues to work. The fork adds the +following features on top of upstream: + +- Full shadow effect API on ``ShadowFormat`` (outer/inner/preset shadows). +- Bullet and numbered list formatting on paragraphs. +- Per-edge border styling for table cells. +- ``cap_style`` and ``join_style`` properties on ``LineFormat``. +- Line-end shape types (arrow / triangle / oval / etc.). + +Because the import package name (``pptx``) is shared with the upstream +distribution, ``python-pptx`` and ``python-pptx-extended`` cannot be installed +into the same environment — install one or the other. + +.. _`scanny/python-pptx`: https://github.com/scanny/python-pptx + +About python-pptx +----------------- + *python-pptx* is a Python library for creating, reading, and updating PowerPoint (.pptx) files. diff --git a/pyproject.toml b/pyproject.toml index 400cb6bfd..985d9c301 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,8 +3,9 @@ requires = ["setuptools>=61.0.0"] build-backend = "setuptools.build_meta" [project] -name = "python-pptx" +name = "python-pptx-extended" authors = [{name = "Steve Canny", email = "stcanny@gmail.com"}] +maintainers = [{name = "Matthew Horoszowski", email = "matthew.horoszowski@gmail.com"}] classifiers = [ "Development Status :: 5 - Production/Stable", "Environment :: Console", @@ -27,7 +28,7 @@ dependencies = [ "lxml>=3.1.0", "typing_extensions>=4.9.0", ] -description = "Create, read, and update PowerPoint 2007+ (.pptx) files." +description = "Fork of python-pptx with additional formatting features (shadows, bullets, table borders, line caps/joins, line end types)." dynamic = ["version"] keywords = ["powerpoint", "ppt", "pptx", "openxml", "office"] license = { text = "MIT" } @@ -35,10 +36,11 @@ readme = "README.rst" requires-python = ">=3.8" [project.urls] -Changelog = "https://github.com/scanny/python-pptx/blob/master/HISTORY.rst" +Changelog = "https://github.com/MHoroszowski/python-pptx/blob/master/HISTORY.rst" Documentation = "https://python-pptx.readthedocs.io/en/latest/" -Homepage = "https://github.com/scanny/python-pptx" -Repository = "https://github.com/scanny/python-pptx" +Homepage = "https://github.com/MHoroszowski/python-pptx" +Repository = "https://github.com/MHoroszowski/python-pptx" +Upstream = "https://github.com/scanny/python-pptx" [tool.black] line-length = 100 diff --git a/src/pptx/__init__.py b/src/pptx/__init__.py index fb5c2d7e4..48881df08 100644 --- a/src/pptx/__init__.py +++ b/src/pptx/__init__.py @@ -25,7 +25,7 @@ if TYPE_CHECKING: from pptx.opc.package import Part -__version__ = "1.0.2" +__version__ = "1.1.0" sys.modules["pptx.exceptions"] = exceptions del sys