Skip to content

Commit

Permalink
Merge pull request #142 from jairhenrique/py312
Browse files Browse the repository at this point in the history
Add python 3.12 support
  • Loading branch information
vbabiy authored Feb 15, 2024
2 parents 7d4da4c + 1ca6981 commit 2288ee9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
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:
- uses: actions/[email protected]
Expand All @@ -23,7 +23,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip setuptools
pip install tox tox-gh-actions
- name: Test with tox
run: tox
10 changes: 3 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
import sys
from pathlib import Path


try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from setuptools import setup

if sys.argv[-1] == "publish":
os.system("python setup.py sdist upload")
Expand All @@ -35,7 +31,7 @@ def extract_requires():
packages=["djangorestframework_camel_case"],
package_dir={"djangorestframework_camel_case": "djangorestframework_camel_case"},
include_package_data=True,
python_requires=">=3.6",
python_requires=">=3.7",
install_requires=extract_requires(),
license="BSD",
zip_safe=False,
Expand All @@ -46,12 +42,12 @@ def extract_requires():
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"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",
],
test_suite="tests",
)
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
[tox]
envlist = py36, py37, py38, py39, py310, py311
envlist = py37, py38, py39, py310, py311, py312

[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312

[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/djangorestframework-camel-case
commands = python setup.py test
deps =
-r{toxinidir}/requirements.txt
setuptools

0 comments on commit 2288ee9

Please sign in to comment.