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

Removed the unnecessary setuptools package dependency for Python package #7511

Merged
merged 1 commit into from
Oct 13, 2020

Conversation

mishas
Copy link
Contributor

@mishas mishas commented May 15, 2020

The setuptools package was added to allow definition of namespaces using
the now outdated (and discouraged from use) pkg_resources-style.

The code here, for a long while now, uses a try/except (ImportError)
protection around the setuptools code, and falls back to the more
encoraged pkgutil-style.

Removing this library won't affect any current workflow, and in the case
of setuptools not found, it'll actually use a more modern (and
encouraged) flow.

More info: https://packaging.python.org/guides/packaging-namespace-packages/

@@ -241,7 +241,7 @@ def get_option_from_sys_argv(option_str):
os.environ['PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION'] = 'cpp'

# Keep this list of dependencies in sync with tox.ini.
install_requires = ['six>=1.9', 'setuptools']
install_requires = ['six>=1.9']
Copy link
Member

Choose a reason for hiding this comment

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

Per the comment, can you verify whether any change to tox.ini is required?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Funnily enough - tox.ini was NOT in sync with this file, in the one way that it was missing setuptools :).

@mishas
Copy link
Contributor Author

mishas commented Jun 3, 2020

@haberman, and update on this?

@mishas
Copy link
Contributor Author

mishas commented Jul 17, 2020

@haberman , Friendly ping?

@mishas
Copy link
Contributor Author

mishas commented Aug 4, 2020

Friendly ping again?

…age.

The setuptools package was added to allow definition of namespaces using
the now outdated (and discouraged from use) pkg_resources-style.

The code here, for a long while now, uses a try/except (`ImportError`)
protection around the setuptools code, and falls back to the more
encoraged pkgutil-style.

Removing this library won't affect any current workflow, and in the case
of setuptools not found, it'll actually use a more modern (and
encouraged) flow.
@mishas mishas force-pushed the remove_setuptools_req branch from e2a642c to d13288e Compare August 15, 2020 17:49
@haberman
Copy link
Member

Sorry for letting this slip. This looks fine to me, but I'd feel a little better if someone from our team who knows Python packaging stuff better than me took a look.

@dlj-NaN could you take a look?

@mishas
Copy link
Contributor Author

mishas commented Sep 11, 2020

@dlj-NaN, friendly ping?

@mishas
Copy link
Contributor Author

mishas commented Oct 5, 2020

@dlj-NaN , @haberman - monthly ping?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants