Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vforks/python-pptx
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: scanny/python-pptx
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 14 commits
  • 270 files changed
  • 1 contributor

Commits on Aug 3, 2024

  1. build: move pptx package under src/

    This improves packaging reliability because it prevents tests from
    running against the current directory instead of the installed version
    of the package.
    scanny committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    86df534 View commit details
    Browse the repository at this point in the history
  2. dev: modernize dev environment

    - Add `pyproject.toml` and gather configuration there. Move `.ruff.toml`
      contents into `pyproject.toml`.
    - Add `requirements-test.txt`.
    scanny committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    ce10c20 View commit details
    Browse the repository at this point in the history
  3. type: add lxml type-stubs

    scanny committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    7efa08d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    01b86e6 View commit details
    Browse the repository at this point in the history
  5. type: general modernization

    Add type-annotations broadly, but prioritizing interface objects and
    methods. Adjust text-width to 100, remove Python 2 support, etc.
    scanny committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    c38d5f5 View commit details
    Browse the repository at this point in the history
  6. fix: scanny#943 Docstring implies Px subtype of Length

    scanny#943
    
    Remove mention of a `Px` subtype of `Length` since no such subtype
    exists. Turns out a pixel has various sizes on different systems so no
    standard unit of measure is possible.
    scanny committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    d5c95be View commit details
    Browse the repository at this point in the history
  7. fix: scanny#972 next-slide-id fails when max used

    scanny#972
    
    Naive "max + 1" slide-id allocation algorithm assumed that slide-ids
    were assigned from bottom up. Apparently some client assigns slide ids
    from the top (2,147,483,647) down and the naive algorithm would assign
    an invalid slide-id in that case.
    
    Detect when the assigned id is out-of-range and fall-back to a robust
    algorithm for assigning a valid id based on a "first unused starting at
    bottom" policy.
    scanny committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    799b214 View commit details
    Browse the repository at this point in the history
  8. fix: scanny#990 Turn off ZipFile strict_timestamps

    Accommodate system dates before 1980-01-01.
    
    This should have no effect for users with "normal" system clocks but
    allows the package to save files in the unusual case the system clock is
    set to a date prior to 1980.
    scanny committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    284fc01 View commit details
    Browse the repository at this point in the history
  9. fix: scanny#929 raises on JPEG with image/jpg MIME-type

    At least one client, perhaps Adobe PDF Converter, produces a PPTX with
    JPEG images mapped to the non-existent `image/jpg` MIME-type rather than
    the correct `image/jpeg`.
    
    Accept `image/jpg` as an alias for `image/jpeg`, which is consistent
    with the behavior of PowerPoint which loads these files without
    complaint.
    scanny committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    af6a8f7 View commit details
    Browse the repository at this point in the history
  10. build: modernize build process

    - Move to `pyproject.toml`
    - Update support to 3.8+
    scanny committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    40301cc View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    04a3e9d View commit details
    Browse the repository at this point in the history
  12. docs: update docs build

    scanny committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    31955c0 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2024

  1. fix(type): add py.typed

    Indicate availability of type annotations to type-checkers.
    scanny committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    0f980cd View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2024

  1. fix(enum): replace read-only enum values

    Some enum values like `MSO_SHAPE_TYPE.MIXED` are never produced by
    `python-pptx` and so were removed during the enum modernization in
    commit `01b86e64`. However, in at least one downstream system these
    values are referenced even though they can never actually occur.
    
    Replace these "read-only" values to avoid downstream breakage.
    scanny committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    278b47b View commit details
    Browse the repository at this point in the history
Loading