Skip to content

Commit

Permalink
feat: py3.12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Lindahl committed Aug 21, 2024
1 parent 1bd08e2 commit b5c23fd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,22 @@ jobs:
strategy:
max-parallel: 3
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- name: checkout
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install setuptools on python 3.12
if: ${{ matrix.python-version == '3.12' }}
run: |
pip install setuptools
- name: Install warcio
run: python setup.py install

Expand Down
15 changes: 5 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,11 @@
# vim: set sw=4 et:

from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import glob

__version__ = '1.7.4'


class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
# should work with setuptools <18, 18 18.5
self.test_suite = ' '

setup(
name='warcio',
version=__version__,
Expand Down Expand Up @@ -55,10 +48,12 @@ def finalize_options(self):
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'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',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
]
Expand Down

0 comments on commit b5c23fd

Please sign in to comment.