Use regex for parsing
parent
8666e48639
commit
0279d89367
@ -1,20 +1,9 @@
|
||||
[project]
|
||||
name = "ya-changelog"
|
||||
description = "Yet another changelog CLI tool."
|
||||
authors = ["Andrew Cassidy"]
|
||||
license = "AGPL"
|
||||
readme = "README.md"
|
||||
python = "^3.8"
|
||||
homepage = "https://github.com/drewcassidy/yet-another-changelog"
|
||||
repository = "https://github.com/drewcassidy/yet-another-changelog"
|
||||
|
||||
keywords = ["changelog", "commandline"]
|
||||
|
||||
dependencies = ["Click", "GitPython"]
|
||||
|
||||
[build-system]
|
||||
requires = [
|
||||
"setuptools >= 35.0.2",
|
||||
"setuptools_scm >= 2.0.0"
|
||||
"setuptools_scm[toml] >= 3.4",
|
||||
"wheel"
|
||||
]
|
||||
build-backend = "setuptools.build_meta"
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[tool.setuptools_scm]
|
@ -0,0 +1,29 @@
|
||||
[metadata]
|
||||
# until setuptools supports PEP621, this will have to do
|
||||
name = yaclog
|
||||
description = Yet another changelog CLI tool.
|
||||
author = Andrew Cassidy
|
||||
license = AGPLv3
|
||||
license_file = LICENSE.md
|
||||
long_description = file: README.md
|
||||
long_description_content_type = text/markdown
|
||||
url = https://github.com/drewcassidy/yet-another-changelog
|
||||
|
||||
keywords = changelog, commandline, markdown
|
||||
classifiers =
|
||||
Development Status :: 3 - Alpha
|
||||
Intended Audience :: Developers
|
||||
License :: OSI Approved :: GNU Affero General Public License v3
|
||||
Operating System :: OS Independent
|
||||
Programming Language :: Python :: 3 :: Only
|
||||
Programming Language :: Python :: 3
|
||||
Programming Language :: Python :: 3.8
|
||||
Programming Language :: Python :: 3.9
|
||||
Topic :: Text Processing :: Markup :: Markdown
|
||||
Topic :: Software Development :: Version Control :: Git
|
||||
Topic :: Utilities
|
||||
|
||||
[options]
|
||||
install_requires = Click; GitPython
|
||||
python_requires >= 3.8
|
||||
packages = find:
|
@ -0,0 +1,11 @@
|
||||
import os
|
||||
from yaclog.changelog import Changelog
|
||||
|
||||
|
||||
def read(path: os.PathLike):
|
||||
"""
|
||||
Create a new Changelog object from the given path
|
||||
:param path: a path to a markdown changelog file
|
||||
:return: a parsed Changelog object
|
||||
"""
|
||||
return Changelog(path)
|
Loading…
Reference in New Issue