Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ authors = [
description = "Project-oriented workflow in Python"
readme = "README.md"
dependencies = [
"typing-extensions"
"Deprecated",
"typing-extensions",
]
requires-python = ">=3.7"
classifiers = [
Expand All @@ -37,4 +38,4 @@ test = [

[project.urls]
"Homepage" = "https://github.com/chendaniely/pyprojroot"
"Bug Tracker" = "https://github.com/chendaniely/pyprojroot/issues"
"Bug Tracker" = "https://github.com/chendaniely/pyprojroot/issues"
10 changes: 9 additions & 1 deletion src/pyprojroot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
from deprecated import deprecated as _deprecated

from .criterion import as_root_criterion, has_dir, has_file
from .here import here
from .root import find_root, find_root_with_reason


@_deprecated(version="0.4.0", reason="Use `from pyprojroot.here import here` instead.")
def here(*args, **kwargs):
from .here import here as h

h(*args, **kwargs)


__all__ = [
"as_root_criterion",
"find_root_with_reason",
Expand Down