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

Modernize packaging #200

Open
simmel opened this issue Nov 15, 2019 · 4 comments
Open

Modernize packaging #200

simmel opened this issue Nov 15, 2019 · 4 comments

Comments

@simmel
Copy link
Contributor

simmel commented Nov 15, 2019

I'm willing to do the work to modernize the packaging of pepper. Here's what we suggest:

  • Add a dependency on requests in setup.py so that pepper works out of the box after installation.
  • Add an "extra" for kerberos which also installs requests-gssapi when installing salt-pepper via pip install 'salt-pepper[kerberos]'.
  • Maybe even add an extra for test which depends on and installs pytest, tox, salt et.al?

The goal would be to make salt-pepper faster to bootstrap and ready to use out of the box after install.

@mattp-
Copy link
Contributor

mattp- commented Nov 15, 2019 via email

@simmel
Copy link
Contributor Author

simmel commented Nov 26, 2019

@mattp- Ah, it seems like requests is used in pepper/libpepper.py in the req_stream and req_get (and for the kerberos usage in req_requests) methods but everywhere else urllib is used. This complicates things. Any idea how to proceed? I'm willing to do the work.

@mattp-
Copy link
Contributor

mattp- commented Nov 26, 2019

@simmel you could do your original approach, but make requests an extra similar to kerberos no?

side note, I took over maintainership of this package a little while ago. I guess I get the idea of keeping a lean dependency list, but not sure how important that is these days. Do you see an issue in adding requests as a dependency and junking urllib? its apache licensed so shouldn't be an issue for enterprise-y folk.

@simmel
Copy link
Contributor Author

simmel commented Nov 27, 2019 via email

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

2 participants