-
Notifications
You must be signed in to change notification settings - Fork 121
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
python 3 support #24
Comments
No work yet but many thoughts. Python 3 support would be very cool and probably not too much work. It will also easily allow concurrent operations that aren't easily done in Python 2. I've written an asyncio function to consume the HTTP stream from salt-api and something like that would be a great addition to Pepper. It would allow us to display live minion returns on the Pepper CLI as they come in to Salt in addition to all the programmatic utility of watching the event stream via libpepper. |
@whiteinge I'm gonna be poking around the the asyncio stuff sounds fantastic. You should see some hack/attempt in the next day or so from me. |
I'm still having some issues with setup.py, as the version isn't pep-0440 compliant (I probably have to do something with git tag/describe). I'll probably submit another PR or two as i work through this. |
I'm happy to move the git hash out of the version number and into the
project metadata as the pep suggests if that would make things easier
on you. I'm fuzzy on how to actually reference that metadata after the
install has been done though.
|
The exception here https://github.com/saltstack/pepper/blob/master/pepper/__init__.py seems to gather version details post-install. It's just looking for the version.json file. The simplest thing I can think of is manually adding the version to the json fie, including the project metadata you want added. Moving the git hash would definitely help. |
The idea is:
We could keep that same workflow with the following changes:
Do you think that would work? |
I think its a solid idea. |
Added! |
Is there any work/thoughts on getting this library to work under python 3?
The text was updated successfully, but these errors were encountered: