Support Python3 + cleanups and fixes#12
Open
florisla wants to merge 325 commits intojsnyder:masterfrom
Open
Conversation
The script took up to 0.3s for one 256 Byte block on legacy single board computers, due to invoking a write per byte, rather than writing the data block in bulk. Verified on STM32L443C6, STM32L433C6
More efficient memory writes and importable as module
So only python code is part of the folder containing __init__.py.
This facilitates automating version increments.
This is the most backwards-compatible thing we can do, and it's fairly light anyway.
Taken from the excellent https://github.com/kennethreitz/setup.py
Allowing 'python -m stm32loader'. Use the same main() method from the main script in __call__.py.
Advantage: this is available system-wide. On Windows, this also becomes an .exe file.
Make module executable
(it may work, but I don't test for it)
Now that we have a setup.cfg, also ensure that the wheel is always built as 'universal' package.
Error was spotted in #67 .
This is not optimal, but better than the stdout/stderr mix which has non-deterministic order.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This branch covers:
#5
#9
#4
#8
Changes: