Skip to content

Commit

Permalink
Update pyproject.toml for poetry 2
Browse files Browse the repository at this point in the history
  • Loading branch information
norkans7 committed Jan 10, 2025
1 parent bc6f7e5 commit 753830c
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
strategy:
matrix:
python-version: ["3.10.x", "3.11.x", "3.12.x"]
django-version: ["5.0.x", "5.1.x"]
django-version: ["5.0.0", "5.1.0"]
runs-on: ubuntu-latest

services:
Expand Down Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Initialize environment
run: |
poetry install
poetry add django==${{ matrix.django-version }}
poetry add django@~${{ matrix.django-version }}
- name: Run pre-test checks
run: poetry run ./code_check.py --debug
Expand Down
52 changes: 45 additions & 7 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 20 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
[tool.poetry]
[project]
name = "smartmin"
version = "5.1.1"
description = "Scaffolding system for Django object management."
authors = ["Nyaruka Ltd <code@nyaruka.com>"]
license = { text = "BSD" }
authors = [
{"name" = "TextIt", "email" = "code@textit.com"}
]
readme = "README.md"
license = "BSD"
classifiers=[
requires-python = ">=3.10,<3.13"
dependencies = [
"Django (>= 5.0,< 5.2)",
"celery (>=5.1)",
"redis (>=3.5.3)",
"sqlparse (>=0.4.1,<0.6.0)",
"xlrd (>=1.2.0)",
"xlwt (>=1.3.0)",
]

classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
Expand All @@ -18,19 +30,11 @@ packages = [
{ include = "smartmin" },
]

[tool.poetry.urls]
[project.urls]
repository = "http://github.com/nyaruka/smartmin"

[tool.poetry.dependencies]
python = "^3.10"
Django = ">= 5.0, < 5.2"
celery = ">= 5.1"
redis = ">= 3.5.3"
sqlparse = ">=0.4.1,<0.6.0"
xlrd = "^1.2.0"
xlwt = "^1.3.0"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
black = "^24.3.0"
coverage = {extras = ["toml"], version = "^7.2.7"}
isort = "^5.12.0"
Expand Down Expand Up @@ -62,5 +66,5 @@ known_django = ["django"]
source = ["smartmin"]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 753830c

Please sign in to comment.