Skip to content

Commit 82253d5

Browse files
authored
Merge pull request #17 from sarnold/doc-updates
pre-release cleanup
2 parents 6d05af1 + 9d7433a commit 82253d5

File tree

6 files changed

+97
-27
lines changed

6 files changed

+97
-27
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ repos:
4141
args: [--settings-path=pyproject.toml]
4242

4343
- repo: https://github.com/pre-commit/mirrors-mypy
44-
rev: v1.15.0
44+
rev: v1.16.0
4545
hooks:
4646
- id: mypy
4747
args:
@@ -89,7 +89,7 @@ repos:
8989
- --remove-unused-variables
9090

9191
- repo: https://github.com/PyCQA/flake8
92-
rev: 7.1.2
92+
rev: 7.2.0
9393
hooks:
9494
- id: flake8
9595
files: procman/

CHANGELOG.rst

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,53 @@ Changelog
22
=========
33

44

5-
0.4.0 (2025-03-15)
5+
0.5.0 (2025-05-30)
6+
------------------
7+
8+
Changes
9+
~~~~~~~
10+
- Update readme and help strings, cleanup project files. [Stephen L
11+
Arnold]
12+
- Refactor part 2, wire up config file as positional arg. [Stephen L
13+
Arnold]
14+
15+
* add file arg to load_config, update test and entry point
16+
- Refactor part 1, decouple util funcs, add user config arg. [Stephen L
17+
Arnold]
18+
19+
* tests and entrypoint are updated, but config arg is not wired up yet
20+
- Update docs config and deps. [Stephen L Arnold]
21+
22+
Fixes
23+
~~~~~
24+
- Cleanup old runners in coverage workflow, update project files.
25+
[Stephen L Arnold]
26+
- Add type annotations and cleanup imports, add mypy config. [Stephen L
27+
Arnold]
28+
29+
Other
30+
~~~~~
31+
- Merge pull request #16 from sarnold/cleanup-bits. [Steve Arnold]
32+
33+
more config
34+
35+
36+
0.4.1 (2025-03-18)
37+
------------------
38+
39+
Changes
40+
~~~~~~~
41+
- Update to latest bandit action for testing, fix readme. [Stephen L
42+
Arnold]
43+
44+
Other
45+
~~~~~
46+
- Merge pull request #12 from sarnold/doc-nits. [Steve Arnold]
47+
48+
Action update
49+
50+
51+
0.4.0 (2025-03-16)
652
------------------
753

854
Changes
@@ -24,10 +70,19 @@ Changes
2470

2571
Fixes
2672
~~~~~
73+
- Make sure release workflow has the right job permissions. [Stephen L
74+
Arnold]
75+
- Update gitchangelog and add config, fix readme URI. [Stephen L Arnold]
2776
- Move description text and add version. [Stephen L Arnold]
2877

2978
Other
3079
~~~~~
80+
- Merge pull request #11 from sarnold/release-docs. [Steve Arnold]
81+
82+
release workflow fixes
83+
- Merge pull request #10 from sarnold/changelog-fix. [Steve Arnold]
84+
85+
changelog fixes
3186
- Merge pull request #9 from sarnold/action-hashes. [Steve Arnold]
3287

3388
workflow linting

README.rst

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,25 +60,41 @@ details).
6060
The current version supports minimal command options and there are no
6161
required arguments::
6262

63-
(dev) user@host $ procman
64-
usage: procman [-h] [-v] [-d] [-c RUNFOR] [-D] [-t] [--version] [-S]
63+
(dev) user@host $ procman -h
64+
usage: procman [-h] [--version] [-D] [-S] [-t] [-v] [-d] [-c RUNFOR] [FILE]
6565

6666
Process manager for user scripts
6767

68+
positional arguments:
69+
FILE path to user-defined yaml configuration (default:
70+
None)
71+
6872
options:
6973
-h, --help show this help message and exit
70-
-v, --verbose Display more processing info (default: False)
74+
--version show program's version number and exit
75+
-D, --demo run demo config (default: False)
76+
-S, --show display user config (default: False)
77+
-t, --test run sanity checks (default: False)
78+
-v, --verbose display more processing info (default: False)
7179
-d, --dump-config dump active yaml configuration to stdout (default:
7280
False)
73-
-c RUNFOR, --countdown RUNFOR
74-
Runtime STOP timer in seconds - 0 means run until
75-
whenever (default: 0)
76-
-D, --demo Run demo config (default: False)
77-
-t, --test Run sanity checks (default: False)
78-
--version show program's version number and exit
79-
-S, --show Display user data paths (default: False)
81+
-c, --countdown RUNFOR
82+
runtime STOP timer in seconds - 0 means run forever
83+
(default: 0)
84+
85+
Configuration options
86+
---------------------
87+
88+
There are several ways to apply your own configuration:
89+
90+
* use default filename pattern in project root, either ``.procman`` or
91+
``procman`` with a YAML extension of ``.yml`` or ``.yaml``
92+
93+
* use any filename with YAML extension passed as positional argument, eg
94+
something like ``procman custom_config.yaml``
8095

81-
No cfg file found; use the --demo arg or create a cfg file
96+
* set the ``PROCMAN_CFG`` environment variable to something like
97+
``my/path/to/config.yaml``
8298

8399

84100
Usage
@@ -251,7 +267,7 @@ To build/lint the html docs, use the following tox commands:
251267
To install the latest release, eg with your own ``tox.ini`` file in
252268
another project, use something like this::
253269

254-
$ pip install -U https://github.com/sarnold/procman/releases/download/0.1.0/procman-0.1.0-py3-none-any.whl
270+
$ pip install -U https://github.com/sarnold/procman/releases/download/0.1.0/procman-0.4.1-py3-none-any.whl
255271

256272

257273
.. _Tox: https://github.com/tox-dev/tox
@@ -381,7 +397,7 @@ specifications.
381397
:target: https://github.com/sarnold/procman/releases
382398
:alt: GitHub tag
383399

384-
.. |python| image:: https://img.shields.io/badge/python-3.6+-blue.svg
400+
.. |python| image:: https://img.shields.io/badge/python-3.9+-blue.svg
385401
:target: https://www.python.org/downloads/
386402
:alt: Python
387403

procman/procman.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,19 @@ def main(argv=None): # pragma: no cover
8282
description='Process manager for user scripts',
8383
)
8484
parser.add_argument('--version', action="version", version=f"%(prog)s {VERSION}")
85-
parser.add_argument('-D', '--demo', help='Run demo config', action='store_true')
86-
parser.add_argument('-S', '--show', help='Display user config', action='store_true')
87-
parser.add_argument('-t', '--test', help='Run sanity checks', action='store_true')
85+
parser.add_argument('-D', '--demo', help='run demo config', action='store_true')
86+
parser.add_argument('-S', '--show', help='display user config', action='store_true')
87+
parser.add_argument('-t', '--test', help='run sanity checks', action='store_true')
8888
parser.add_argument(
8989
"-v",
9090
"--verbose",
9191
action="store_true",
92-
help="Display more processing info",
92+
help="display more processing info",
9393
)
9494
parser.add_argument(
9595
'-d',
9696
'--dump-config',
97-
help="Dump active yaml configuration to stdout",
97+
help="dump active yaml configuration to stdout",
9898
action='store_true',
9999
dest="dump",
100100
)
@@ -104,14 +104,14 @@ def main(argv=None): # pragma: no cover
104104
type=int,
105105
default='0',
106106
dest="runfor",
107-
help="Runtime STOP timer in seconds - 0 means run forever",
107+
help="runtime STOP timer in seconds - 0 means run forever",
108108
)
109109
parser.add_argument(
110110
'file',
111111
nargs='?',
112112
metavar="FILE",
113113
type=str,
114-
help="Path to user-defined yaml configuration",
114+
help="path to user-defined yaml configuration",
115115
)
116116

117117
args = parser.parse_args()

setup.cfg

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ author_email = nerdboy@gentoo.org
88
long_description = file: README.rst
99
long_description_content_type = text/x-rst
1010
license_expression = LGPL-2.1-or-later
11-
license_files = LICENSE
11+
license_files = COPYING
1212
classifiers =
1313
Development Status :: 4 - Beta
1414
Intended Audience :: Developers
@@ -18,14 +18,13 @@ classifiers =
1818
Topic :: Software Development :: Testing
1919

2020
[options]
21-
python_requires = >= 3.8
21+
python_requires = >= 3.9
2222

2323
setup_requires =
2424
setuptools_scm[toml]
2525

2626
install_requires =
2727
honcho
28-
importlib-metadata; python_version < '3.8'
2928
importlib_resources; python_version < '3.10'
3029
munch[yaml]
3130

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ deps =
219219

220220
commands =
221221
pip install procman --force --pre --prefer-binary -f dist/
222-
procman --version
222+
procman -h
223223
procman --dump-config
224224

225225
[testenv:lint]

0 commit comments

Comments
 (0)