| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- Subject: Add support for python 3.13
- Origin: upstream, commit 0.4.27-40-g5a89644 <https://github.com/ahupp/python-magic/commit/0.4.27-40-g5a89644>
- Author: Adam Hupp <adam@hupp.org>
- Date: Wed Feb 19 12:30:05 2025 -0800
- --- a/.github/workflows/ci.yml
- +++ b/.github/workflows/ci.yml
- @@ -5,11 +5,11 @@
- strategy:
- fail-fast: false
- matrix:
- - os: ['ubuntu-latest']
- - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
- + os: ["ubuntu-latest"]
- + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
- include:
- - os: macos-latest
- - python-version: '3.13'
- + python-version: "3.13"
- # - os: windows-latest # TODO: Fix the Windows test that runs in an infinite loop
- # python-version: '3.13'
- runs-on: ${{ matrix.os }}
- @@ -28,4 +28,4 @@
- run: pip install python-magic-bin
- - run: LC_ALL=en_US.UTF-8 pytest
- shell: bash
- - timeout-minutes: 15 # Limit Windows infinite loop.
- + timeout-minutes: 15 # Limit Windows infinite loop.
- --- a/setup.py
- +++ b/setup.py
- @@ -8,41 +8,43 @@
-
- def read(file_name):
- """Read a text file and return the content as a string."""
- - with io.open(os.path.join(os.path.dirname(__file__), file_name),
- - encoding='utf-8') as f:
- + with io.open(
- + os.path.join(os.path.dirname(__file__), file_name), encoding="utf-8"
- + ) as f:
- return f.read()
-
- +
- setuptools.setup(
- - name='python-magic',
- - description='File type identification using libmagic',
- - author='Adam Hupp',
- - author_email='adam@hupp.org',
- + name="python-magic",
- + description="File type identification using libmagic",
- + author="Adam Hupp",
- + author_email="adam@hupp.org",
- url="http://github.com/ahupp/python-magic",
- - version='0.4.28',
- - long_description=read('README.md'),
- - long_description_content_type='text/markdown',
- - packages=['magic'],
- + version="0.4.28",
- + long_description=read("README.md"),
- + long_description_content_type="text/markdown",
- + packages=["magic"],
- package_data={
- - 'magic': ['py.typed', '*.pyi', '**/*.pyi'],
- + "magic": ["py.typed", "*.pyi", "**/*.pyi"],
- },
- keywords="mime magic file",
- license="MIT",
- - python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*',
- + python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",
- classifiers=[
- - 'Intended Audience :: Developers',
- - 'License :: OSI Approved :: MIT License',
- - 'Programming Language :: Python',
- - 'Programming Language :: Python :: 2.7',
- - 'Programming Language :: Python :: 3',
- - 'Programming Language :: Python :: 3.5',
- - 'Programming Language :: Python :: 3.6',
- - '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 :: Implementation :: CPython',
- + "Intended Audience :: Developers",
- + "License :: OSI Approved :: MIT License",
- + "Programming Language :: Python",
- + "Programming Language :: Python :: 2.7",
- + "Programming Language :: Python :: 3",
- + "Programming Language :: Python :: 3.5",
- + "Programming Language :: Python :: 3.6",
- + "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 :: Implementation :: CPython",
- ],
- )
- -
- --- a/tox.ini
- +++ b/tox.ini
- @@ -9,6 +9,7 @@
- py310,
- py311,
- py312,
- + py313,
- mypy
-
- [testenv]
|