mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 14:30:09 +01:00
minor formatting/cleanup
This commit is contained in:
parent
bc87ab1b88
commit
2cb7f53f6d
6 changed files with 8 additions and 8 deletions
|
|
@ -1,9 +1,9 @@
|
||||||
# Changelog for https://gitlab.com/mbarkhau/pycalver
|
# Changelog for https://gitlab.com/mbarkhau/pycalver
|
||||||
|
|
||||||
|
|
||||||
## v201901.0019-beta
|
## v201902.0020
|
||||||
|
|
||||||
- Added: Experimental support for many more custom version patterns
|
- Added: Support for many more custom version patterns
|
||||||
|
|
||||||
|
|
||||||
## v201812.0018
|
## v201812.0018
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ AUTHOR_NAME="Manuel Barkhau"
|
||||||
AUTHOR_EMAIL="mbarkhau@gmail.com"
|
AUTHOR_EMAIL="mbarkhau@gmail.com"
|
||||||
|
|
||||||
KEYWORDS="version versioning bumpversion calver"
|
KEYWORDS="version versioning bumpversion calver"
|
||||||
DESCRIPTION="CalVer versioning for python libraries."
|
DESCRIPTION="CalVer for python libraries."
|
||||||
|
|
||||||
LICENSE_ID="MIT"
|
LICENSE_ID="MIT"
|
||||||
|
|
||||||
|
|
|
||||||
4
setup.py
4
setup.py
|
|
@ -1,7 +1,7 @@
|
||||||
# This file is part of the pycalver project
|
# This file is part of the pycalver project
|
||||||
# https://gitlab.com/mbarkhau/pycalver
|
# https://gitlab.com/mbarkhau/pycalver
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 Manuel Barkhau (mbarkhau@gmail.com) - MIT License
|
# Copyright (c) 2019 Manuel Barkhau (mbarkhau@gmail.com) - MIT License
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
@ -46,7 +46,7 @@ setuptools.setup(
|
||||||
url="https://gitlab.com/mbarkhau/pycalver",
|
url="https://gitlab.com/mbarkhau/pycalver",
|
||||||
version="201812.18",
|
version="201812.18",
|
||||||
keywords="version versioning bumpversion calver",
|
keywords="version versioning bumpversion calver",
|
||||||
description="CalVer versioning for python libraries.",
|
description="CalVer for python libraries.",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
packages=['pycalver'],
|
packages=['pycalver'],
|
||||||
|
|
|
||||||
|
|
@ -265,7 +265,7 @@ def parse(ctx: ProjectContext) -> MaybeConfig:
|
||||||
log.warning(f"File not found: {ctx.config_filepath}")
|
log.warning(f"File not found: {ctx.config_filepath}")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
fh : typ.IO[str]
|
fh: typ.IO[str]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with ctx.config_filepath.open(mode="rt", encoding="utf-8") as fh:
|
with ctx.config_filepath.open(mode="rt", encoding="utf-8") as fh:
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# This file is part of the pycalver project
|
# This file is part of the pycalver project
|
||||||
# https://github.com/mbarkhau/pycalver
|
# https://github.com/mbarkhau/pycalver
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 Manuel Barkhau (@mbarkhau) - MIT License
|
# Copyright (c) 2018 Manuel Barkhau (mbarkhau@gmail.com) - MIT License
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
"""Compose Regular Expressions from Patterns.
|
"""Compose Regular Expressions from Patterns.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,5 +60,5 @@ def test_main(capsys):
|
||||||
ord_vals.append(int(_ord_val.strip()))
|
ord_vals.append(int(_ord_val.strip()))
|
||||||
|
|
||||||
assert len(ids) > 0
|
assert len(ids) > 0
|
||||||
assert sorted(ids ) == ids
|
assert sorted(ids) == ids
|
||||||
assert sorted(ord_vals) == ord_vals
|
assert sorted(ord_vals) == ord_vals
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue