Skip to content

Commit

Permalink
Move to pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
sevdog committed Jul 31, 2024
1 parent 5e21e10 commit 88d6771
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 103 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.10'

- name: Install black
run: |
Expand Down
105 changes: 105 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
version = "0.7.2"
authors = [
{"name"= "Davide Setti"},
]
description = "Django Group-based roles"
name = "django-group-role"
requires-python = ">=3.10"
dependencies = [
"django>=3.2,<5.1",
]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
]
dynamic = ["readme"]


[project.optional-dependencies]
tests = [
"coverage[toml]",
"pytest",
"pytest-django",
"pytest-cov",
"django-guardian~=2.4.0",
]

[project.urls]
"Homepage" = "https://github.com/certego/django-group-role"
"Bug Tracker" = "https://github.com/certego/django-group-role/issues"


[tool.setuptools]
packages = ["django_group_role"]

[tool.setuptools.dynamic]
readme = {file = ["README.md"]}

[tool.coverage.run]
omit = [
"*/migrations/*",
# do not check for templates
"*/templates/*",
# skip statics
"*/static/*",
"*/apps.py",
]

branch = true

source = [
"django_group_role",
]

[tool.pytest]
DJANGO_SETTINGS_MODULE = "tests.example_project.settings"

[tool.tox]
envlist = [
"py{310}-django32",
"py{310,311,312}-django{40,41,42,50,master}",
]

[tool.tox.gh]
python = [
"3.12 = py312",
"3.11 = py311",
"3.10 = py310",
]

[tool.tox.testenv]
change_dir = "tests"
package = "editable-legacy"
extras = "tests"
whitelist_externals = "py.test"
commands = "py.test"
deps= [
"pytest",
"pytest-cov",
"pytest-django",
"django-guardian~=2.4.0",
"django32: Django>=3.2,<3.3",
"django32: Django>=3.2,<3.3",
"django40: Django>=4.0,<4.1",
"django41: Django>=4.1,<4.2",
"django42: Django>=4.2,<4.3",
"django50: Django>=5.0a,<5.1",
"djangomaster: https://github.com/django/django/archive/main.tar.gz",
]
97 changes: 0 additions & 97 deletions setup.cfg

This file was deleted.

4 changes: 0 additions & 4 deletions setup.py

This file was deleted.

0 comments on commit 88d6771

Please sign in to comment.