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

Python 3 Support #15

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

Python 3 Support #15

wants to merge 3 commits into from

Conversation

nmurtagh
Copy link
Contributor

@nmurtagh nmurtagh commented Apr 26, 2016

Addresses #13

@nmurtagh nmurtagh force-pushed the python3 branch 5 times, most recently from f83389b to 115331c Compare April 26, 2016 14:36

# actual test
self.assertNotEqual(jose.b64encode_url(istr), '=')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assertion looks broken

@Newky
Copy link
Contributor

Newky commented Apr 26, 2016

Looks good to me

('enc', enc), ('alg', alg)])
header = dict(
list((add_header or {}).items()) + [('enc', enc), ('alg', alg)]
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You didn't add this but it looks a bit ugly.
It would look much better this way: header = dict(add_header or {}, enc=enc, alg=alg)

@yuriikonovaliuk
Copy link
Collaborator

Please add a note to CHANGES file.

@nmurtagh
Copy link
Contributor Author

@Newky @yuriikonovaliuk Thanks for the reviews guys - I added a commit with some cleanups, please take a look. I removed encode_safe as it didn't seem to do anything useful...

This was referenced Apr 26, 2016
@@ -58,9 +66,10 @@ def finalize_package_data(self):
'Operating System :: OS Independent',
'Programming Language :: Python :: 2 :: Only',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line you no longer need...

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you can just change it to Programming Language :: Python :: 2.7 and add some more with Python 3.* versions

@hmpf
Copy link

hmpf commented Apr 27, 2016

Splendid! Django is dropping support for 2.7 next year and jose was one of the hold outs.

@jordanambra
Copy link

Will this get its merge conflicts resolved and an update pushed to pypi?

@bmamouri
Copy link

bmamouri commented May 25, 2018

Why the maintainer of this project hate Python 3 so much?

This should have already been merged into master.

@PegasusWang
Copy link

Plz, push to pypi?

@Jamim
Copy link

Jamim commented May 11, 2019

Hi @nmurtagh,
Could you please resolve the conflicts?
Thank you!

@IamTugy
Copy link

IamTugy commented Jan 14, 2023

is that repository deprecated? it doesnt work with python 3.
get this error right at the init:
File "/Users/*****/*****/*****.py", line 8, in <module> from jose import jwt # type: ignore ^^^^^^^^^^^^^^^^^^^^ File "/Users/*****/Library/Caches/pypoetry/virtualenvs/*****-py3.11/lib/python3.11/site-packages/jose.py", line 546 print decrypt(deserialize_compact(jwt), {'k':key}, ^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

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.

9 participants