Closed bates64 closed 1 year ago
Looks good to me. Could we add some documentation to README.md as well?
thoughts:
src/
, or is it needed to get m2c.main
and similar import paths? (keeping src/ would help my auto-complete habits slightly)is there a way to make this work with src/, or is it needed to get m2c.main and similar import paths?
I'm pretty certain its required - if we make it src
then you have to do import src
.
does mypy type-checking still work for decomp.me with this change, for calls into m2c?
AFAIK, yes, but I will double-check
is 0.1.0 the right version to indicate that aren't explicitly versioning m2c?
Unsure, but a version is required
license: "GPL-3.0" is probably more right than "GPL-3.0-or-later"
Will update to GPL-3.0-only
if that's more correct
using m2c as a library is incredibly niche, we shouldn't put that towards the top of the README
Where else do you suggest?
Unsure, but a version is required
I guess it doesn't actually matter, we can keep the 0.1.
Where else do you suggest?
Hm, good question, there doesn't seem to be a clear spot. Honestly I'd kinda be inclined to leave it out altogether.
Another point: we may want to add pre-commit
, mypy
, coverage
, black==22.3.0
to dev-dependencies, and graphviz
to dependencies.
You can relegate the poetry documentation to the very bottom of the README (or near it). I agree that it doesn't deserve the real-estate up top.
OK, I've made the requested changes
Also- to check that the pyproject.toml dependencies are actually valid, a2429798129b8b478f6b5b4b676250e15eb8f97b updates CI to use the Poetry virtualenv for tests/mypy/black. I need approval to check the workflow runs correctly, though!
Also- to check that the pyproject.toml dependencies are actually valid, https://github.com/matt-kempster/m2c/commit/a2429798129b8b478f6b5b4b676250e15eb8f97b updates CI to use the Poetry virtualenv for tests/mypy/black. I need approval to check the workflow runs correctly, though!
Nice! I clicked the "run workflow" button, but I think the yaml still gets taken from the master branch, not from the PR, for security reasons, so it may need the PR to be merged and iterated on in follow-up PRs in case it fails (which is fine). Or one could use some kind of "run GHA locally" tool to check it, I guess.
hm, it does look like the updated yaml ran though, and failed
does mypy type-checking still work for decomp.me with this change, for calls into m2c?
AFAIK, yes, but I will double-check
Apparently it did not, you needed a py.typed file for it to work (noticed this when looking at a silent splat/spimdisasm type-checking failure). Added in b52d92c2340f6f4ba1aafb464188bb698752fbb0.
src
tom2c
, conforming to Poetry's expectationpyproject.toml
so that other projects (such as decomp.me) can add m2c as a git dependency