Add importlib_metadata to requirements.txt
Add comments stating origin of new parser
This commit is contained in:
Timmy Welch 2022-06-23 22:59:09 -07:00
parent 8bdf91ab96
commit 20ec8c38c2
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,5 @@
# Extracted and mutilated from https://github.com/lordwelch/wsfmt
# Which was extracted and mutliated from https://github.com/golang/go/tree/master/src/text/template/parse
from __future__ import annotations
import calendar
@ -11,10 +13,10 @@ class ItemType(Enum):
Error = auto() # Error occurred; value is text of error
EOF = auto()
Text = auto() # Text
LeftParen = auto() # '(' inside action
LeftParen = auto()
Number = auto() # Simple number
IssueNumber = auto() # Preceded by a # Symbol
RightParen = auto() # ')' inside action
RightParen = auto()
Space = auto() # Run of spaces separating arguments
Dot = auto()
LeftBrace = auto()

View File

@ -331,6 +331,8 @@ class FilenameInfo(TypedDict, total=False):
eof = filenamelexer.Item(filenamelexer.ItemType.EOF, -1, "")
# Extracted and mutilated from https://github.com/lordwelch/wsfmt
# Which was extracted and mutliated from https://github.com/golang/go/tree/master/src/text/template/parse
class Parser:
"""docstring for FilenameParser"""

View File

@ -1,4 +1,5 @@
beautifulsoup4 >= 4.1
importlib_metadata
natsort>=8.1.0
pathvalidate
pillow>=4.3.0