Skip to content

Commit

Permalink
Merge pull request #9 from jpopelka/fix-help-and-tags
Browse files Browse the repository at this point in the history
Fix rpmdeplint --help & Re-tag 1.5 to 2.0rc1
  • Loading branch information
jpopelka authored Sep 18, 2023
2 parents 692b3eb + 31de640 commit 32589fa
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 14 deletions.
6 changes: 1 addition & 5 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ upstream_project_url: https://github.com/fedora-ci/rpmdeplint
files_to_sync:
- rpmdeplint.spec
- .packit.yaml
- src: plans/
dest: plans/
- src: .fmf/
dest: .fmf/

actions:
create-archive:
Expand All @@ -22,7 +18,7 @@ srpm_build_deps:
- hatch
- python3-hatch-vcs

upstream_tag_template: rpmdeplint-{version}
upstream_tag_template: v{version}

jobs:
- job: copr_build
Expand Down
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,10 @@ repos:
- id: mypy
additional_dependencies: [types-requests, types-six]
exclude: docs/conf.py
- repo: https://github.com/packit/pre-commit-hooks
rev: v1.2.0
hooks:
- id: validate-config

ci:
autoupdate_schedule: monthly
9 changes: 5 additions & 4 deletions docs/CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
Changelog
---------

1.6
~~~
2.0rc2
~~~~~~

* Easier development/maintaining:
* `pre-commit <https://pre-commit.com>`__
* Use `Packit <https://packit.dev>`__ to:
Expand All @@ -23,8 +24,8 @@ Changelog
Run ``'make -C docs man'`` to build it
(`related to RHBZ#2221957 <https://bugzilla.redhat.com/show_bug.cgi?id=2221957>`__).

1.5
~~~
2.0rc1
~~~~~~
* Added yum repository caching which performs regular cleans for files more than
one week old. This expiry period can be modified with the environment
variable ``RPMDEPLINT_EXPIRY_SECONDS``.
Expand Down
19 changes: 16 additions & 3 deletions plans/smoke.fmf
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
summary:
Basic smoke test
Basic tests

discover:
how: shell
tests:

- name: /sanity/import
test: python3 -c "import rpmdeplint"

- name: /sanity/help
test: rpmdeplint --help

- name: /sanity/version
test: rpmdeplint --version | grep -P "^rpmdeplint \d+\.\d+"

execute:
script:
- python3 -c "import rpmdeplint"
how: tmt
2 changes: 1 addition & 1 deletion rpmdeplint.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: rpmdeplint
Version: 1.6
Version: 2.0
Release: %autorelease
Summary: Tool to find errors in RPM packages in the context of their dependency graph
License: GPL-2.0-or-later
Expand Down
2 changes: 1 addition & 1 deletion rpmdeplint/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def add_subparser(
subcommand: str, _help: str, subcommand_func: Callable[..., ExitCode]
):
parser_check = subparsers.add_parser(
subcommand, help=help, description=subcommand_func.__doc__
subcommand, help=_help, description=subcommand_func.__doc__
)
add_common_dependency_analyzer_args(parser_check)
parser_check.set_defaults(func=subcommand_func)
Expand Down

0 comments on commit 32589fa

Please sign in to comment.