Skip to content

Commit

Permalink
Version 3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
adferrand committed Mar 19, 2020
1 parent 485d4da commit 4247b5a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "poetry.masonry.api"

[tool.poetry]
name = "dnsrobocert"
version = "3.0.0"
version = "3.0.1"
description = "A tool to manage your DNS-challenged TLS certificates"
license = "MIT"
keywords = [
Expand Down
6 changes: 4 additions & 2 deletions src/dnsrobocert/core/legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ def migrate(config_path):
LOGGER.warning(
"Legacy configuration detected. Support for legacy configurations will be dropped soon."
)
LOGGER.warning("Please visit https://dnsrobocert.readthedocs.io/en/latest/miscellaneous.html#migration-from-docker-letsencrypt-dns "
"for more details. ")
LOGGER.warning(
"Please visit https://dnsrobocert.readthedocs.io/en/latest/miscellaneous.html#migration-from-docker-letsencrypt-dns "
"for more details. "
)
LOGGER.warning(
"New configuration file is available at `{0}`".format(example_config_path)
)
Expand Down
4 changes: 3 additions & 1 deletion utils/create_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ def main():
subprocess.check_call("poetry run isort -rc src test utils", shell=True)
subprocess.check_call("poetry run black src test utils", shell=True)

subprocess.check_call('git commit -a -m "Version {0}"'.format(new_version), shell=True)
subprocess.check_call(
'git commit -a -m "Version {0}"'.format(new_version), shell=True
)
subprocess.check_call("git tag v{0}".format(new_version), shell=True)
subprocess.check_call("git push --tags", shell=True)

Expand Down
15 changes: 8 additions & 7 deletions utils/extract_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,20 @@

ROOT = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))

NEW_SECTION_PATTERN = re.compile(r'^\s*##\s*[\d.]+\s*-\s*[\d/]+\s*$')
NEW_SECTION_PATTERN = re.compile(r"^\s*##\s*[\d.]+\s*-\s*[\d/]+\s*$")


def main():
version = sys.argv[1]

if version == 'latest':
if version == "latest":
section_pattern = NEW_SECTION_PATTERN
else:
section_pattern = re.compile(r'^\s*##\s*{0}\s*-\s*[\d/]+\s*$'
.format(version.replace('.', '\\.')))
section_pattern = re.compile(
r"^\s*##\s*{0}\s*-\s*[\d/]+\s*$".format(version.replace(".", "\\."))
)

with open(os.path.join(ROOT, 'CHANGELOG.md')) as file_h:
with open(os.path.join(ROOT, "CHANGELOG.md")) as file_h:
lines = file_h.read().splitlines()

changelog = []
Expand All @@ -38,8 +39,8 @@ def main():

changelog = [entry for entry in changelog if entry]

print('\n'.join(changelog))
print("\n".join(changelog))


if __name__ == '__main__':
if __name__ == "__main__":
main()

0 comments on commit 4247b5a

Please sign in to comment.