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

Dependency to M2Crypto #79

Closed
roadsideseb opened this issue Aug 13, 2015 · 7 comments
Closed

Dependency to M2Crypto #79

roadsideseb opened this issue Aug 13, 2015 · 7 comments

Comments

@roadsideseb
Copy link

First of all, thanks for creating a very helpful package to integrate SAML logins. It's helped me a lot so far.

I'm working on a Flask app that is deployed to Heroku. As you might be aware, getting M2Crypto setup on Heroku can be very painful because it relies on swig. Looking through the code here, it seems that M2Crypto is a dependency of the package but isn't used directly in the code.

What's the reason for M2Crypto being a dependency for python-saml? What would the impact be if it was removed from the mandatory dependencies?

@pitbulk
Copy link
Contributor

pitbulk commented Aug 13, 2015

Hi @elbaschid,

have read http://starboard.flowtheory.net/2015/07/adventures-with-heroku-python-saml-libxmlsec1-and-swig/ ?

Have you tested https://github.com/onelogin/python3-saml. It's a python3 compatible and doesn't use M2Crypto.

Related to M2Crypto, to be honest I think that it is not required anymore. At the start of the project I used it to handle x509certs but I'm not longer using it. Let me do some research and If not necesary, I will remove it from the dependencies.

@roadsideseb
Copy link
Author

That's awesome @pitbulk, thanks for taking care of this so quickly 👍 This avoids having to worry about M2Crypto on Heroku 🌟 I'll take a look at the article above though.
And I'll keep an eye out for the python3-saml project. Is the long-term plan on your end to deprecate this repo in favour of python3-saml?

@pitbulk
Copy link
Contributor

pitbulk commented Aug 14, 2015

No, we will maintain both ;)

@pitbulk
Copy link
Contributor

pitbulk commented Aug 14, 2015

Now available at pypi: https://pypi.python.org/pypi/python3-saml

@singingwolfboy
Copy link

I'm glad that you've gotten rid of the unused M2Crypto dependency from this project, but until a new version of this project is released on PyPI, it doesn't make much difference. Can you please make a new python-saml release on PyPI, so that M2Crypto doesn't get pulled in automatically?

@pitbulk
Copy link
Contributor

pitbulk commented Oct 9, 2015

Ok, I will release a new version next week :)

@singingwolfboy
Copy link

@pitbulk The latest version of python-saml on PyPI is still 2.1.4, which still declares a dependency on M2Crypto. Can you please release a new version of this project to PyPI?

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

No branches or pull requests

3 participants