Closed jSadoski closed 4 years ago
Thanks for letting me know, I don't use pipenv myself and had always wanted to switch to poetry but never got to. Feel free to add that and open a pr. I'm thinking maybe make all the requirements_dev ==
instead of >=
so that everyone is "locked" on the same version, with the help if dependabot
Also I'm not sure if https://github.com/hedythedev/starcli/blob/ce9a81cb376c3c456e5e0454df904ac7c0ec1523/requirements_dev.txt#L1 Will work for pipenv
I was able to use
https://github.com/hedythedev/starcli/blob/ce9a81cb376c3c456e5e0454df904ac7c0ec1523/requirements_dev.txt#L1
when using the flag -r requirements_dev.txt
without any issues. It looks like it was able to follow that.
$ pipenv install -r requirements_dev.txt --pre
Creating a virtualenv for this project…
Pipfile: /Users/joe/Projects/starcli/Pipfile
Using /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 (3.7.0) to create virtualenv…
⠇ Creating virtual environment...Already using interpreter /Library/Frameworks/Python.framework/Versions/3.7/bin/python3
Using base prefix '/Library/Frameworks/Python.framework/Versions/3.7'
New python executable in /Users/joe/.local/share/virtualenvs/starcli-xuCJWWkt/bin/python3
Also creating executable in /Users/joe/.local/share/virtualenvs/starcli-xuCJWWkt/bin/python
Installing setuptools, pip, wheel...done.
✔ Successfully created virtual environment!
Virtualenv location: /Users/joe/.local/share/virtualenvs/starcli-xuCJWWkt
Creating a Pipfile for this project…
Requirements file provided! Importing into Pipfile…
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
✔ Success!
Updated Pipfile.lock (9a05bf)!
Installing dependencies from Pipfile.lock (9a05bf)…
🐍 ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 46/46 — 00:00:13
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
$ pipenv run python -m starcli --help
Usage: __main__.py [OPTIONS]
Find trending repos on GitHub
Options:
-l, --lang TEXT Language filter eg: python
-S, --spoken-language TEXT Spoken Language filter eg: en for English,
zh for Chinese, etc
-d, --date-created TEXT Specify repo creation date in ISO8601 format
YYYY-MM-DD
-t, --topics TEXT Search by topic. Can be specified multiple
times. Multiple topics will be conjugated
using &
-u, --last-updated TEXT Filter repos based on time of last update in
ISO8601 format YYYY-MM-DD
-L, --layout [list|table|grid] The output format (list, table, or grid),
default is list
-s, --stars TEXT Range of stars required, default is '>=100'
-r, --limit-results INTEGER Limit the number of results shown. Default:
7
-o, --order [desc|asc] Specify the order of repos by stars that is
shown, 'desc' or 'asc', default: desc
--long-stats Print the actual stats[1300 instead of 1.3k]
-D, --date-range [today|this-week|this-month]
View stars received within time range,
choose from: today, this-week, this-month
--debug Turn on debugging mode
--help Show this message and exit.
I just tried out dependabot 😋
P.S. Locking to black>=19.10b0
still requires --pre
. It seems Pipenv just doesn't allow pre-releases without this flag.
Frequently Encountered Pipenv Problems: Your dependencies could not be resolved
Pipenv does not install pre-releases (i.e. a version with an alpha/beta/etc. suffix, such as 1.0b1) by default. You will need to pass the --pre flag in your command, or set
[pipenv] allow_prereleases = true
$ pipenv install -h
Usage: pipenv install [OPTIONS] [PACKAGES]...
Installs provided packages and adds them to Pipfile, or (if no packages
are given), installs all packages from Pipfile.
Options:
...
--pre Allow pre-releases.
...
Yeah, since all of black releases are pre-releases since black is still in beta even after 2 years creation
Description
I know the current docs do not use
pipenv
, but I think it would be worthwhile to mention this issue in the docs to avoid confusion for others.Command:
Python version
Python 3.7.0
your operating system (and terminal type if needed)
starcli version
Current with ce0ba54.
any suggestions to the cause of the problem? (if possible) Adding the
--pre
flag allows the installation of black (from: microsoft/vscode-python#5171).