Skip to content

Commit

Permalink
fix #164
Browse files Browse the repository at this point in the history
  • Loading branch information
bckohan committed Feb 3, 2025
1 parent d0b0c82 commit 4b5c82d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 28 deletions.
2 changes: 2 additions & 0 deletions doc/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Change Log
v3.0.0 (202X-XX-XX)
===================

* Implemented `Migrate pyproject.toml to poetry 2 and portable project specifiers. <https://github.com/django-commons/django-typer/issues/164>_`
* Fixed `Model objects with null lookup fields should not be included in model field completion output <https://github.com/django-commons/django-typer/issues/160>`_
* Implemented `Add security scans to CI. <https://github.com/django-commons/django-typer/issues/158>`_
* Implemented `Add a performance regression. <https://github.com/django-commons/django-typer/issues/157>`_
Expand All @@ -26,6 +27,7 @@ v3.0.0 (202X-XX-XX)
* Fixed `Installed shellcompletion scripts do not pass values of --settings or --pythonpath <https://github.com/django-commons/django-typer/issues/68>`_
* Fixed `shellcompletion complete should print to the command's stdout. <https://github.com/django-commons/django-typer/issues/19>`_
* Implemented `Add completer/parser for FileField and FilePathField <https://github.com/django-commons/django-typer/issues/17>`_
* Implemented `Add completer/parser for DurationField <https://github.com/django-commons/django-typer/issues/16>`_
* Implemented `Add completer/parser for DateTimeField <https://github.com/django-commons/django-typer/issues/15>`_
* Implemented `Add completer/parser for DateField <https://github.com/django-commons/django-typer/issues/14>`_
* Implemented `Add completer/parser for TimeField <https://github.com/django-commons/django-typer/issues/13>`_
Expand Down
50 changes: 22 additions & 28 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
[project]
name = "django-typer"
version = "3.0.0"
requires-python = ">=3.9,<4.0"
description = "Use Typer to define the CLI for your Django management commands."
authors = [
"Brian Kohan <[email protected]>",
{name = "Brian Kohan", email = "[email protected]"},
]
license = "MIT"
readme = "README.md"
Expand All @@ -17,6 +18,17 @@ keywords = ["django", "CLI", "management", "Typer", "commands"]
packages = [
{ include = "django_typer" }
]
dependencies = [
"Django>=3.2,<6.0",
"click>=8.1.8,<9.0",
# typer's release history is full of breaking changes for minor versions
# given the reliance on some of its private internals we peg the typer
# version very strictly to bug fix releases for specific minor lines.
"typer-slim>=0.14.0,<0.16.0",
"shellingham>=1.5.4,<2.0",
# we need this on 3.9 for ParamSpec
"typing-extensions>=3.7.4.3; python_version < '3.10'"
]
exclude = ["django_typer/locale"]
classifiers = [
"Environment :: Console",
Expand Down Expand Up @@ -45,37 +57,22 @@ classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules"
]

[project.optional-dependencies]
# this should track typer's rich dependency, so long as our console
# patches still work - so be sure to test on the low end of the range
rich = ["rich>=10.11.0,<14.0.0"]

[tool.poetry.urls]
[project.urls]
"Homepage" = "https://django-typer.readthedocs.io"
"Documentation" = "https://django-typer.readthedocs.io"
"Repository" = "https://github.com/django-commons/django-typer"
"Issues" = "https://github.com/django-commons/django-typer/issues"
"Changelog" = "https://django-typer.readthedocs.io/en/latest/changelog.html"
"Code_of_Conduct" = "https://github.com/django-commons/membership/blob/main/CODE_OF_CONDUCT.md"

[tool.poetry.scripts]
manage = "tests.manage:main"

[tool.poetry.dependencies]
python = ">=3.9,<4.0"
Django = ">=3.2,<6.0"

click = ">=8.1.8,<9.0"

# typer's release history is full of breaking changes for minor versions
# given the reliance on some of its private internals we peg the typer
# version very strictly to bug fix releases for specific minor lines.
typer-slim = ">=0.14.0,<0.16.0"

# this should track typer's rich dependency, so long as our console
# patches still work - so be sure to test on the low end of the range
rich = { version = ">=10.11.0,<14.0.0", optional = true }

shellingham = ">=1.5.4,<2.0"

# we need this on 3.9 for ParamSpec
typing-extensions = { version = ">=3.7.4.3", markers = "python_version < '3.10'" }
# for testing
# [project.scripts]
# manage = "tests.manage:main"

[tool.poetry.group.dev.dependencies]
ipdb = "^0.13.13"
Expand All @@ -98,9 +95,6 @@ pywinpty = { version = "^2.0.14", markers = "sys_platform == 'win32'" }
pytest-timeout = "^2.3.1"
pre-commit = "^4.0.1"

[tool.poetry.extras]
rich = ["rich"]

[tool.poetry.group.docs]
optional = true

Expand Down

0 comments on commit 4b5c82d

Please sign in to comment.