Skip to content

Commit

Permalink
feat: Replace argparse by typer (osl-incubator#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
xmnlab authored Jan 12, 2024
1 parent 68c7697 commit 614ffd3
Show file tree
Hide file tree
Showing 10 changed files with 438 additions and 284 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ jobs:
- name: Run semantic release (for tests)
if: ${{ github.event_name != 'workflow_dispatch' }}
run: makim release.dry --verbose
run: makim --verbose release.dry

- name: Run semantic release
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
poetry config pypi-token.pypi ${PYPI_TOKEN}
makim release.ci --verbose
makim --verbose release.ci
- name: Generate documentation with changes from semantic-release
if: ${{ github.event_name == 'workflow_dispatch' }}
run: makim docs.build --verbose
run: makim --verbose docs.build

- name: GitHub Pages action
if: ${{ github.event_name == 'workflow_dispatch' }}
Expand Down
198 changes: 101 additions & 97 deletions .makim.yaml

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,17 @@ exclude = [
]

[tool.poetry.scripts]
"makim" = "makim.__main__:app"
"makim" = "makim.__main__:run_app"

[tool.poetry.dependencies]
python = "^3.8.1"
python = ">=3.8.1,<4"
sh = ">=2.0.0"
pyyaml = ">=5.0"
jinja2 = ">=2.0"
xonsh = ">=0.14.0"
python-dotenv = ">=0.21.1"
colorama = ">=0.4.6"
typer = ">=0.9.0"

[tool.poetry.group.dev.dependencies]
containers-sugar = "1.9.0"
Expand Down Expand Up @@ -98,6 +99,7 @@ quote-style = "single"
[tool.bandit]
exclude_dirs = ["tests"]
targets = "src/makim/"
skips = ["B102"]

[tool.vulture]
exclude = ["tests"]
Expand Down
2 changes: 1 addition & 1 deletion src/makim/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
__version__ = '1.9.1' # semantic-release


from makim.makim import Makim # noqa: F401
from makim.core import Makim # noqa: F401
4 changes: 2 additions & 2 deletions src/makim/__main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Makim app to be called from `python -m`."""
from makim.cli import app
from makim.cli import run_app

if __name__ == '__main__':
app()
run_app()
Loading

0 comments on commit 614ffd3

Please sign in to comment.