-
Notifications
You must be signed in to change notification settings - Fork 30
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
Strict dependency on black prevents usage of the latest black #34
Comments
Is the project dead?... |
@alexey-vyskubov I don't think there are any commits from Madoshakalaka since Jun 29, 2020, and the license copyright is for 2019. Do you know if anyone has attempted to reached out to the author yet? |
I reached out to the author today. I don't know what their upcoming availability will look like, but I would like to rekindle this project if possible |
I reached out too. I did not want to fork or start a "pipenv-setup2" or anything if avoidable, especially since this already had a few open PRs. I'm happy to help out too if needed. |
I can help knock this out now 👌 This PR needs to pin a I'll try to push a commit later today for doing this; however, if you can get to this before me then feel free to do so! |
@bryant-finney I think #36 could possibly be merged with hassle edit: Sorry, I might be confusing myself it looks like you've already reviewed it :) |
okay about to take another swing at this one 🙂 |
@bryant-finney 100% I think there was a communication somewhere in this repo outlining why this was a prod dependency, seems like it would be for good reason. Would you be able to fill me on the situation with this? |
@jshwi absolutely! Related Discussions
Proposed SolutionI'm trying out this concept in the draft #88 : drop both This proposal should allow the following behaviors:
Potential Issues
How does this proposal sound? Any suggestions? 🙂 |
@bryant-finney Thanks heaps for the rundown, much appreciated With what you've provided, this is my 2 cents Keeping
|
@jshwi awesome, yeah it sounds like we're on the same page here 😊
I think the only point that remains is whether to include extras like the following: setup(
extras_require={
"autopep8": ["autopep8"],
"black": ["black; python_version >= '3.6'"],
"dev": [
"autopep8~=1.4",
"black==19.10b0; python_version >= '3.6'",
"pytest~=5.2; python_version >= '3.6'",
...
],
},
...
) Any thoughts on this? My motivation: it should allow us to provide a mitigation path for any projects that are somehow affected by this change. i.e. we could suggest $ pip install "pipenv-setup[black]"
# or...
$ pipenv install "pipenv-setup[black]" I know we would need to verify that |
I think I need to inspect the code more before I can form a solid opinion. It appears as though Are you able to confirm what python files Cheers! |
@jshwi yup, the relevant section is in the |
@bryant-finney Ah, awesome, I'll check that out |
@bryant-finney All makes sense now. Interesting, I think the extras option for A lot of people use I can assume the big problem with removing Eventually a try, except without any |
I haven't verified yet, but I hope to actually use the # e.g. black is installed to the system python
(.venv) $ which black
/usr/local/bin/black
(.venv) $ head -n1 $(which black)
#!/usr/bin/env python
# in this scenario, calling black fails with an
# import error b.c. it is not included with the
# virtual environment
Yeah I could go either way. It's been years since I've actually used
Sweet that sounds exactly like what I'm thinking (see the linked function above). This would also allow us to add support for other formatters down the road (e.g. |
I think its possible to call |
@bryant-finney This will knock down a major barrier for using this package. Nice work! |
* move `black` and `autopep8` from `install_requires` to `extras_require` * add `usage` workflow to test installation of `pipenv-setup`, `pipenv-setup[black]`, and `pipenv-setup[autopep8]` * update behavior: if `black` is present, use it to format `setup.py`; if `black` isn't installed, try `autopep8`; if neither is installed, don't format `setup.py`
pipenv-setup
depends onblack==19.10b0
, while the latest black version is20.8b1
. This prevents the usage ofpipenv-setup
in any project which requires the latest black version (downgradingblack
is not an option, because19.10b0
complains about formatting of the files20.8b1
is happy with).The text was updated successfully, but these errors were encountered: