Skip to content

Commit

Permalink
fixed the packaging so that the contribution guide is included in the…
Browse files Browse the repository at this point in the history
… published package
  • Loading branch information
lucsorel committed Dec 31, 2021
1 parent b71225b commit 9f25ca7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ poetry run python -m pytest -v --cov=py2puml --cov-branch --cov-report term-miss

# Changelog

* `0.5.4`: fixed the packaging so that the contribution guide is included in the published package
* `0.5.3`: handle constructors decorated by wrapping decorators (decorators making uses of `functools.wrap`)
* `0.5.2`: specify in pyproject.toml that py2puml requires python 3.8+ (`ast.get_source_segment` was introduced in 3.8)
* `0.5.1`: prevent from parsing inherited constructors
Expand Down
2 changes: 1 addition & 1 deletion py2puml/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
def run():
argparser = ArgumentParser(description='Generate PlantUML class diagrams to document your Python application.')

argparser.add_argument('-v', '--version', action='version', version='py2puml 0.5.3')
argparser.add_argument('-v', '--version', action='version', version='py2puml 0.5.4')
argparser.add_argument('path', metavar='path', type=str, help='the path of the domain')
argparser.add_argument('module', metavar='module', type=str, help='the module of the domain', default=None)

Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
[tool.poetry]
name = "py2puml"
version = "0.5.3"
version = "0.5.4"
description = "Generate PlantUML class diagrams to document your Python application."
keywords = ["class diagram", "PlantUML", "documentation", "inspection", "AST"]
readme = "README.md"
repository = "https://github.com/lucsorel/py2puml"
authors = ["Luc Sorel-Giffo"]
maintainers = ["Luc Sorel-Giffo"]
license = "MIT"
include = [
"CONTRIBUTING.md"
]

[tool.poetry.scripts]
py2puml = 'py2puml.cli:run'
Expand Down
2 changes: 1 addition & 1 deletion tests/py2puml/test__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Ensures the library version is modified in the pyproject.toml file when upgrading it (pull request)
def test_version():
assert __version__ == '0.5.3'
assert __version__ == '0.5.4'

# Description also output in the CLI
def test_description():
Expand Down

0 comments on commit 9f25ca7

Please sign in to comment.