-
Notifications
You must be signed in to change notification settings - Fork 12
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
Migrate katcp to Python 3 #215
Migrate katcp to Python 3 #215
Conversation
* Stage 1: Migrate katcp-python to Python 3 and ensure PY2 tests pass This PR does the following: - Updated `Jenkinsfile` and added `tox.ini` - Updated `setup.py` with changes similar to `katportalclient`. - Renamed `COPYING` to `LICENSE` and `CHANGELOG` to `CHANGELOG.md` - Added/Updated copyright and licence information on `*.py` files - Migrated `README.rst` to `README.md`, why - Markdown is better (Opinionated review) - Skipping `test_until_some_kwargs` test as it fails on tox, will investigate later. - Commented out static analysis, speed up ci - Added flake8 config on setup.cfg - Ran futurize on katcp-tests, added minor fixes for tests to pass - Tests passes on tox py27
…ror and bytes vs str
…ing Nonetypes and int's)
…pport py2&py3 compartibility at the same time supports different versions of tornado. This becomes tricky as tornado api has significant changes accross different versions
… protocol in order to you access original function object.
…reix 'test' as an actual 'test'
…joubertza had concerns mainly regarding multiple requests handling and memory usage
Raises TypeError as Py3 doesn't support comparing instances of an object and etc.
…object has no attribute 'TimeoutError'
User/mmphego/mt 737/stage3 make py3 pass
- Fixed `ValueError: Attempted relative import in non-package` when importing `docsrape` module. - Updated package installation instructions, fixed grammatic and header issues.
- Updated document hyperlinks - Bullet(s/ing) related fixes
- Inline emphasis start-string without end-string. - Unknown target name: "agg". - Block quote ends without a blank line; unexpected unindent. - Explicit markup ends without a blank line; unexpected unindent
- Removed `docs` generation dependencies from `setup.py`, and moved them to `tox.ini`. (see: https://github.com/ska-sa/katcp-python/pull/215/files#r325371314) - Added 'Py3.8' classifier as per @bmerry's recommendations. (see: https://github.com/ska-sa/katcp-python/pull/215/files#r336985014)
2f1836f
to
20b0714
Compare
20b0714
to
51650a7
Compare
@@ -79,6 +79,19 @@ pipeline { | |||
} | |||
} | |||
} | |||
stage('Generate documentation.') { |
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.
AQF run on CAM OK. 1 minor change needed for a float comparison that was using |
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.
Good to go! 🎉
(Only took 90 commits and 245 comments...)
Thanks to everyone that worked on this mega PR. We'll make a new version for PyPI soon.
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.
🉑 ❗️
Woot! |
🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 |
This PR does the following:
katcp-python
by runningfuturize
find . -name '*.py' | xargs futurize -0 -w -a -n
tox
.Jenkinsfile
to support the above.setup.py
to add support for Py2&Py3Address PR comments.
Fix skipped test(s)
test_until_some_kwargs
fails when ran via tox but passes when ran manually!- [ ] @ajoubertza: Memory leak related test.Ensure AQF runs successfully.
ipython
:Update docs
Reformat
withsort imports, cleanupblack
,and address.flake8
comments- [ ]flake8
fixes- [ ]black
fixesJIRA: MT-737
Demo
Simulated 4A4k subarray benchmark
Original version of
katcp
Migrated version of
katcp
Simulated 5A4k(64 X-Fhosts) subarray benchmark
Original version of
katcp
Migrated version of
katcp