Skip to content
Closed
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
9 changes: 1 addition & 8 deletions jaraco/text/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,7 @@
import textwrap
from collections.abc import Callable, Generator, Iterable, Sequence
from importlib.resources import files
from typing import (
TYPE_CHECKING,
Literal,
Protocol,
SupportsIndex,
TypeVar,
overload,
)
from typing import TYPE_CHECKING, Literal, Protocol, SupportsIndex, TypeVar, overload

from jaraco.context import ExceptionTrap
from jaraco.functools import compose, method_cache
Expand Down
4 changes: 2 additions & 2 deletions jaraco/text/show-newlines.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from __future__ import annotations

import sys
from typing import TYPE_CHECKING

import autocommand
import inflect
from more_itertools import always_iterable

Expand Down Expand Up @@ -37,4 +37,4 @@ def report_newlines(filename: FileDescriptorOrPath) -> None:
)


autocommand.autocommand(__name__)(report_newlines)
__name__ == '__main__' and report_newlines(*sys.argv[1:]) # type: ignore[func-returns-value]
4 changes: 1 addition & 3 deletions jaraco/text/strip-prefix.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import sys

import autocommand

from jaraco.text import Stripper


Expand All @@ -18,4 +16,4 @@ def strip_prefix() -> None:
sys.stdout.writelines(Stripper.strip_prefix(sys.stdin).lines)


autocommand.autocommand(__name__)(strip_prefix)
__name__ == '__main__' and strip_prefix() # type: ignore[func-returns-value]
1 change: 1 addition & 0 deletions newsfragments/26.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Removed ``autocommand`` as a dependency -- by :user:`Avasam`
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ license = "MIT"
dependencies = [
"jaraco.functools",
"jaraco.context >= 4.1",
"autocommand",
"more_itertools",
]
dynamic = ["version"]
Expand Down