Skip to content

Fix missing dependencies, CLI convention and convert to pyproject.toml - #23

Merged
leifwalsh merged 19 commits into
leifwalsh:mainfrom
pmhahn:fixes
Jun 29, 2026
Merged

Fix missing dependencies, CLI convention and convert to pyproject.toml#23
leifwalsh merged 19 commits into
leifwalsh:mainfrom
pmhahn:fixes

Conversation

@pmhahn

@pmhahn pmhahn commented Mar 20, 2025

Copy link
Copy Markdown

I have it a try today and immediately run into 3 ploblems: #20 #21 #22
The first 2 #20 and #21 I was able to fix.
Bonus: convert setup.* to pyproject.toml

Philipp Hahn added 4 commits March 20, 2025 20:05
Changed license to https://spdx.org/licenses/BSD-3-Clause.html
Dropped classifier "License :: OSI Approved :: BSD License"

`requirements.txt` cannot be merged as it still is used by:
- .readthedocs.yml
- .devcontainer/Dockerfile
- .devcontainer/devcontainer.json
What is `snooty`?

Signed-off-by: Philipp Hahn <p.hahn@avm.de>
Dependency was missing.

Depend on `packaging` for version comparison.

Signed-off-by: Philipp Hahn <p.hahn@avm.de>
Closes: leifwalsh#20
Dependency was missing.

Replace with `importlib.resources` available since Python 3.7.

Signed-off-by: Philipp Hahn <p.hahn@avm.de>
Closes: leifwalsh#20
Require at least one argument for command:

```console
$ flametrace
Traceback (most recent call last):
  File "…/bin/flametrace", line 10, in <module>
    sys.exit(cli())
             ^^^^^
  File "…/lib/python3.11/site-packages/click/core.py", line 1161, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "…/lib/python3.11/site-packages/click/core.py", line 1082, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "…/lib/python3.11/site-packages/click/core.py", line 1443, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "…/lib/python3.11/site-packages/click/core.py", line 788, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "…/src/flametrace/main.py", line 112, in cli
    argv0 = os.path.basename(command[0])
                             ~~~~~~~^^^
IndexError: tuple index out of range
```

See <https://click.palletsprojects.com/en/stable/arguments/>.

Signed-off-by: Philipp Hahn <p.hahn@avm.de>
Closes: leifwalsh#21

@leifwalsh leifwalsh left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh gosh I didn't notice this. Thank you very much! Sorry it took so long to merge.

@leifwalsh leifwalsh closed this Jun 6, 2026
@leifwalsh leifwalsh reopened this Jun 6, 2026
@leifwalsh

Copy link
Copy Markdown
Owner

hmm, gotta fix CI too

Python 3.7-9 have reached their End-of-life years ago. Remove them.
Instead add 3.10-14.
See <https://devguide.python.org/versions>.

Signed-off-by: Philipp Matthias Hahn <pmhahn@pmhahn.de>
@pmhahn

pmhahn commented Jun 7, 2026

Copy link
Copy Markdown
Author

hmm, gotta fix CI too

See https://devguide.python.org/versions/: All versions of Python 3.7-9 mentioned in .github/workflows/python-package.yml have reached their End-of-life and are no longer supported by See https://github.com/actions/python-versions#support-policy

Python 3.8 has reached its End-of-life a year ago. Switch to 3.14.
See <https://docs.readthedocs.com/platform/stable/config-file/v2.html>

Signed-off-by: Philipp Matthias Hahn <pmhahn@pmhahn.de>
There is no package available by such name on pypi.org. Drop it.

Signed-off-by: Philipp Matthias Hahn <pmhahn@pmhahn.de>
@leifwalsh
leifwalsh enabled auto-merge June 7, 2026 17:49
@leifwalsh

Copy link
Copy Markdown
Owner

such a pile of yaks had moved in

@leifwalsh

Copy link
Copy Markdown
Owner

Ok, I can't reproduce that failure in codespaces. I need to put this down for a bit and come back to it, but we're a lot closer.

@leifwalsh
leifwalsh disabled auto-merge June 29, 2026 14:55
@leifwalsh
leifwalsh merged commit 120f866 into leifwalsh:main Jun 29, 2026
5 checks passed
@pmhahn
pmhahn deleted the fixes branch June 29, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants