Skip to content

Python 3 Support#15

Open
nmurtagh wants to merge 3 commits into
masterfrom
python3
Open

Python 3 Support#15
nmurtagh wants to merge 3 commits into
masterfrom
python3

Conversation

@nmurtagh

@nmurtagh nmurtagh commented Apr 26, 2016

Copy link
Copy Markdown
Contributor

Addresses #13

@nmurtagh nmurtagh force-pushed the python3 branch 5 times, most recently from f83389b to 115331c Compare April 26, 2016 14:36
Comment thread tests.py
self.assertEqual(base64_encoded[-1], '=')

# actual test
self.assertNotEqual(jose.b64encode_url(istr), '=')

Copy link
Copy Markdown
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

Newky commented Apr 26, 2016

Copy link
Copy Markdown
Contributor

Looks good to me

Comment thread jose.py Outdated
('enc', enc), ('alg', alg)])
header = dict(
list((add_header or {}).items()) + [('enc', enc), ('alg', alg)]
)

Copy link
Copy Markdown
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
Copy Markdown
Collaborator

Please add a note to CHANGES file.

@nmurtagh

Copy link
Copy Markdown
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
Comment thread setup.py
@@ -58,9 +66,10 @@ def finalize_package_data(self):
'Operating System :: OS Independent',
'Programming Language :: Python :: 2 :: Only',

Copy link
Copy Markdown

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
Copy Markdown
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

hmpf commented Apr 27, 2016

Copy link
Copy Markdown

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

@jordanambra

Copy link
Copy Markdown

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

@bmamouri

bmamouri commented May 25, 2018

Copy link
Copy Markdown

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

This should have already been merged into master.

@PegasusWang

Copy link
Copy Markdown

Plz, push to pypi?

@Jamim

Jamim commented May 11, 2019

Copy link
Copy Markdown

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

@IamTugy

IamTugy commented Jan 14, 2023

Copy link
Copy Markdown

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