minor formatting/cleanup

This commit is contained in:
Manuel Barkhau 2019-02-14 22:05:02 +01:00
parent bc87ab1b88
commit 2cb7f53f6d
6 changed files with 8 additions and 8 deletions

View file

@ -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

View file

@ -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"

View file

@ -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'],

View file

@ -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:

View file

@ -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.

View file

@ -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