-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleaning packaging / CI config #451
Conversation
c6fecce
to
3bdd5e8
Compare
…setuptools _build_py) + cleaning unused config files
3bdd5e8
to
83fa185
Compare
…flows, + tests on all suppoerted Python versions
45244ba
to
32c302b
Compare
32c302b
to
124f1cf
Compare
I personally usually launch Speculos with a command like this: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bit sad that we go from one setup.py file to still having a setup.py + having a pyproject.toml :/
Also, shouldn't we bump update the changelog and publish a version? Would allow to make sure that if it breaks something, we know it soon?
Yeah the custom build As for the version, a new one will be deployed on |
I just realized that the |
Probably good enough! |
…tory while tests run against the 'speculos' package
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #451 +/- ##
==========================================
- Coverage 48.95% 45.37% -3.59%
==========================================
Files 113 120 +7
Lines 10849 11891 +1042
Branches 0 950 +950
==========================================
+ Hits 5311 5395 +84
- Misses 5538 6161 +623
- Partials 0 335 +335 ☔ View full report in Codecov by Sentry. |
Alright the coverage is slightly better (not spectacular though), the Python package coverage seems to be included now. |
Tested the new |
setup.py
topyproject.toml
C
emulator build part, which remains in thesetup.py
file.mypy
,flake8
) also moved intopyproject.toml
.Pipefile
/ Pipfile.lockfrom
pyproject.toml(and
setup.pybefore it). Useful as some CI tests run using
pipenv(and so
Pipefile` and the rest) and dependabot was cringed by some old versions.actions/checkout@
tov4
sys.exit
fromspeculos.py
tospeculos/main.py:main
. The package entrypoint goes directly tospeculos/main.py:main
and I guess it is important that thespeculos
CLI returns useful status codes, instead of0
always.speculos.py
ever used ? Given how the entrypoint is configured,speculos.py
is totally bypassed when using the CLIspeculos
. Is it worth keeping this manual launcher?fast-checks.yml
tocontinuous-intergation-workflow.yml
. This job takes 5min+, it is not fast at all.codecov-action
. Codecov is a fussy action which regularly breaks with unclear error messages. I updated the action version, added a token and explicitly declared theGITHUB_WORKSPACE
a safe directory forgit
, and it seems to work now. Thank you codecov for taking me a couple of hours again.