Comments (6)
ah ok so it looks like the two opening lines of requirements.txt
are unexpected.
-i https://pypi.org/simple
-e .
Is there a way to have pipenv generate the requirements file without those lines? Otherwise I'd be happy to accept a PR if you wanted to submit a fix 😄 . Seems like licensed could ignore any lines that aren't of the format <package>=<version>
?
from licensed.
Thanks @jonabc, manually removed those lines and it works!
I don't think there is a way for pipenv
to not generate those lines. (Note the -e .
is because of a local package dependency that was added to the Pipfile
with pipenv install --editable .
)
I'll try to submit a patch once I've finished going through all our remaining dependencies I'm auditing.
from licensed.
Closed by #167 🎉
from licensed.
Read the licensed pip docs and specified the virtualenv directory in .licensed.yaml
.
sources:
pip: true
python:
virtual_env_dir: "/Users/dennis/.local/share/virtualenvs/core-06DYXQgl"
Trying again errors with the following trace
$ licensed list
Displaying dependencies for datascience core package
pip dependencies:
Traceback (most recent call last):
22: from /Users/dennis/.rbenv/versions/2.6.0/bin/licensed:23:in `<main>'
21: from /Users/dennis/.rbenv/versions/2.6.0/bin/licensed:23:in `load'
20: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/exe/licensed:5:in `<top (required)>'
19: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
18: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
17: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
16: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
15: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/cli.rb:30:in `list'
14: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/cli.rb:59:in `run'
13: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/command/list.rb:12:in `run'
12: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/command/list.rb:12:in `each'
11: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/command/list.rb:14:in `block in run'
10: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/command/list.rb:14:in `chdir'
9: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/command/list.rb:15:in `block (2 levels) in run'
8: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/command/list.rb:15:in `each'
7: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/command/list.rb:20:in `block (3 levels) in run'
6: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/command/list.rb:33:in `dependencies'
5: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/source/pip.rb:22:in `dependencies'
4: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/source/pip.rb:22:in `map'
3: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/source/pip.rb:23:in `block in dependencies'
2: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/source/pip.rb:45:in `package_info'
1: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/source/pip.rb:54:in `pip_command'
/Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/shell.rb:17:in `execute': command exited with status 2 (Licensed::Shell::Error)
/Users/dennis/.local/share/virtualenvs/core-06DYXQgl/bin/pip --disable-pip-version-check show "-i https://pypi.org/simple
"
Usage:
pip show [options] <package> ...
no such option: -i
Edit: The virtualenv directory specified is the one reported by pipenv --venv
from licensed.
@dideler what version of pip are you using?
from licensed.
$ /Users/dennis/.local/share/virtualenvs/core-06DYXQgl/bin/pip --version
pip 18.1 from /Users/dennis/.local/share/virtualenvs/core-06DYXQgl/lib/python3.6/site-packages/pip (python 3.6)
from licensed.
Related Issues (20)
- DEPRECATION NOTICE: Licensed will no longer ship a packaged EXE for future versions >= 4.0.0 HOT 2
- Licensed breaks under Bundler 2.4.1 due to dependency search change
- The `cache` command is not cleaning up stale license files HOT 2
- licensed v4.0.0 test failure in Homebrew HOT 4
- Cocoapods-core is incompatible with Rails 7 HOT 4
- Remove dep
- Go modules license detection seems off (possibly /v2) HOT 2
- Add support for pnpm as a source HOT 22
- Re-evaluate default Gradle configurations
- Allow users to manually curate paths to license content for a detected dependency
- Create cocoapods plugin for enumerating dependencies for licensed HOT 3
- Checksum-based review HOT 7
- How to list licenses from cache HOT 2
- Make licensed status detect dependencies that have been removed HOT 8
- Remove bower support
- Bug with gem bundle in subdirectory / Could not find optimist (3.1.0) in any sources
- Bug with pnpm in subdirectory (tries both npm and pnpm resolution?)
- Gradle source not working when using Kotlin DSL (build.gradle.kts)
- Can't detect licenses of default gems
- Phone outdated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from licensed.