Skip to content

Commit a1ac7c8

Browse files
committed
Merge branch 'hotfix/0.3.1'
2 parents 8f23733 + 065f43c commit a1ac7c8

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic
1717

1818
_All releases are published to [PyPI]._
1919

20+
### [0.3.1] (2021-09-27)
21+
22+
#### Fixed
23+
24+
- Fix bug where an external `distribution_name` was not respected
25+
2026
### [0.3.0] (2021-09-24)
2127

2228
#### Added
@@ -138,6 +144,7 @@ _All releases are published to [PyPI]._
138144

139145

140146
[unreleased]: https://github.com/dl6nm/version-helper/compare/main...dev
147+
[0.3.1]: https://github.com/dl6nm/version-helper/compare/0.3.0...0.3.1
141148
[0.3.0]: https://github.com/dl6nm/version-helper/compare/0.2.2...0.3.0
142149
[0.2.2]: https://github.com/dl6nm/version-helper/compare/0.2.1...0.2.2
143150
[0.2.1]: https://github.com/dl6nm/version-helper/compare/0.2.0...0.2.1

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "version-helper"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
description = "Package for a better version management in python projects"
55
authors = ["DL6NM <mail@dl6nm.de>"]
66
license = "MIT"

version_helper/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def get_from_package_metadata(cls, distribution_name=__package__) -> 'Version':
9999
:param distribution_name: The name of the distribution package to query.
100100
:return: A `Version` class object
101101
"""
102-
pkg = pkg_resources.get_distribution(__package__)
102+
pkg = pkg_resources.get_distribution(distribution_name)
103103
return cls.parse(pkg.version, True)
104104

105105
def set(self, major: int, minor: int, patch: int,

0 commit comments

Comments
 (0)