Skip to content
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

Support Python3 + cleanups and fixes #12

Open
wants to merge 325 commits into
base: master
Choose a base branch
from

Conversation

florisla
Copy link

@florisla florisla commented Mar 7, 2018

This branch covers:
#5
#9
#4
#8

Changes:

  • support for Python3 (not backwards compatible to Python 2)
  • remove progressbar support
  • remove psyco support
  • improve documentation
  • bugfixes from the above issues
  • some code refactoring

florisla and others added 30 commits April 27, 2018 23:38
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.
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.
(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.
This is not optimal, but better than the stdout/stderr mix which
has non-deterministic order.
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.