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

Cleanup setup.py - install_requires #149

Closed
wants to merge 2 commits into from
Closed

Conversation

JshWright
Copy link
Contributor

Per the Python packaging guidelines1, setup.py should only contain the minimal
requirements needed to run the code correctly. This commit removes the dev and
test dependencies from setup.py, which should not be installed in production envs.

As this commit contains no functional changes to the okta-sdk-python library, I consider this an "obvious fix" for the purposes of the contributor guidelines, and therefore a CLA is not necessary (I'm happy to sign one if the maintainer feels differently though)

Per the Python packaging guidelines[1], setup.py should only contain the minimal
requirements needed to run the code correctly. This commit removes the dev and
test dependencies from setup.py, which should not be installed in production envs.

[1]: https://packaging.python.org/discussions/install-requires-vs-requirements/
@bretterer
Copy link
Collaborator

Hey @JshWright! Thank you for this PR. I need to pull this down and make sure we don't have any issues here, so it may be a few days before we can get this merged in.

I believe this is an obvious fix as well, but since it does change functionality and you don't mind, go ahead and sign and send a CLA over to us.

Ill keep you updated on this PR

@@ -40,5 +34,16 @@ def get_requirements():
"License :: OSI Approved :: Apache Software License",
"Topic :: Software Development :: Libraries :: Python Modules",
],
install_requires=get_requirements()
install_requires=[
"asyncio",
Copy link

@ypukhta ypukhta Dec 11, 2020

Choose a reason for hiding this comment

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

Thank you for the PR.
Do we actually require a dependency on asyncio lib?
Since Python 3.4 asyncio is moved to stdlib.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, that's a good call out. I only removed the really obvious testing related libraries, but that's likely not needed either.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, looks like this change should resolve this issue - #157

serhiibuniak-okta added a commit that referenced this pull request Dec 16, 2020
* Remove dependency on asyncio
* Fix installation requirements. PRs: #149, #158

Co-authored-by: Josh Wright <josh.wright@elationhealth.com>
Co-authored-by: Ryan SIU <ryan.siu@cloverhealth.com>
@serhiibuniak-okta
Copy link
Contributor

Hi @JshWright. I've included your commit along with another one related into this #159 and just merged to master. Need to wait until we release v1.2.2. Thanks for your contribution.

@JshWright
Copy link
Contributor Author

Thanks @serhiibuniak-okta, looking forward to 1.2.2!

@JshWright JshWright closed this Dec 16, 2020
@serhiibuniak-okta
Copy link
Contributor

@JshWright we decided to include some additional changes, so we released v1.3.0. It is ready. Thanks again.

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.

None yet

4 participants