Comments (18)
Ah, looks like my mistake was in the testfolder. My Pipfile was corrupted. It works for me now. Thanks for bearing with me and thanks for the plugin!
from fish-pipenv.
can this be closed now?
from fish-pipenv.
I just provided the installation instructions in the PR but it's not working for me as expected. Can you give it a try?
from fish-pipenv.
sorry I misread. it is working for me with fundle. let me try omf
from fish-pipenv.
Thanks!
from fish-pipenv.
tested out omf in a container.
it looks like maybe omf doesn't recognise the conf.d
layout of this plugin. eg. it works if you symlink ~/.local/share/omf/pkg/fish-pipenv/conf.d/pipenv.fish
to ~/.local/share/omf/pkg/fish-pipenv/init.fish
.
so I wonder if there is a layout we could use that both omf plus fisher/fundle/etc understand
from fish-pipenv.
it looks like just having an init.fish
in the root of this repo will work for
- oh my fish
- fundle
- fisher
- are there more?
from fish-pipenv.
I think https://github.com/oh-my-fish/oh-my-fish is pretty popular. It would be super sweet if it was supported. I'm not aware of any other popular fish plugin managers.
from fish-pipenv.
ok for the meantime I've moved to init.fish
. can you try uninstall what you currently have and try that omf install
command again? (or maybe an upgrade might work) and exec fish
from fish-pipenv.
Hmm, maybe I'm holding it wrong but it doesn't seem to work for me.
> omf install https://github.com/sentriz/fish-pipenv
> ls dir
Pipfile Pipfile.lock
> cd dir
... nothing happens
from fish-pipenv.
did you exec fish
after the omf install?
from fish-pipenv.
Yes
from fish-pipenv.
strange. it's working for me. can you ls ~/.local/share/omf/pkg/fish-pipenv/
?
also for me it didn't work straight away. had to do a $ cd ..; cd -
once or twice
from fish-pipenv.
> ls ~/.local/share/omf/pkg/fish-pipenv/
README.md init.fish
from fish-pipenv.
I must be doing something wrong because it also doesn't work for me if I use fisher. I'll reinstall some things and see what happens.
from fish-pipenv.
here it seems to be working a fresh alpine docker
manjaro, ~, sudo docker run -it alpine /bin/sh
/ # apk add python3 fish curl git
OK: 95 MiB in 36 packages
/ # pip3 install --user pipenv
Collecting pipenv
Successfully installed certifi-2019.9.11 pipenv-2018.11.26 virtualenv-16.7.5 virtualenv-clone-0.5.3
/ # exec fish
Welcome to fish, the friendly interactive shell
root@9f06f765deba /# curl -L https://get.oh-my.fish | fish
Updating https://github.com/oh-my-fish/packages-main master... Done!
Installing package default
✔ default successfully installed.
Installation successful!
Welcome to fish, the friendly interactive shell
⋊> / set -U fish_user_paths ~/.local/bin $fish_user_paths
⋊> / cd
⋊> ~ mkdir testrepo
⋊> ~ cd testrepo/
⋊> ~/testrepo pipenv install
Pipfile: /root/testrepo/Pipfile
Using /usr/bin/python3.7 (3.7.3) to create virtualenv…
⠦ Creating virtual environment...Already using interpreter /usr/bin/python3.7
Installing setuptools, pip, wheel...
done.
✔ Successfully created virtual environment!
Virtualenv location: /root/.local/share/virtualenvs/testrepo-kSern7h6
Creating a Pipfile for this project…
Pipfile.lock not found, creating…
⋊> ~/testrepo cd
⋊> ~ omf install https://github.com/sentriz/fish-pipenv
✔ fish-pipenv successfully installed.
⋊> ~ ll ~/.local/share/omf/pkg/fish-pipenv/
total 8K
-rw-r--r-- 1 root root 2.8K Sep 18 21:36 README.md
-rw-r--r-- 1 root root 1.3K Sep 18 21:36 init.fish
⋊> ~ exec fish
⋊> ~ cd testrepo/
Launching subshell in virtual environment…
Welcome to fish, the friendly interactive shell
⋊> ~/testrepo source /root/.local/share/virtualenvs/testrepo-kSern7h6/bin/activate.fish
(testrepo) ⋊> ~/testrepo echo $VIRTUAL_ENV
/root/.local/share/virtualenvs/testrepo-kSern7h6
(testrepo) ⋊> ~/testrepo cd
⋊> ~ echo $VIRTUAL_ENV
⋊> ~
edit: I've just run the same test for fisher and that is working too
from fish-pipenv.
Ah, not corrupted. I just didn't have a corresponding virtual environment yet. 🤦♂
from fish-pipenv.
Note: Fisher instructions should be fisher install sentriz/fish-pipenv
. 😄 @domoritz
from fish-pipenv.
Related Issues (16)
- pipenv command now prompts me to install latest to use plugin HOT 8
- pipenv doesn't allow .envrc files to be sourced HOT 1
- Fish 2.7.1 includes completions HOT 1
- why is it quicker to just use this function in config.fish than installing with fisher HOT 2
- pipenv shell with --Fancy option HOT 8
- Does not switch pipenv when switching directly to another pipenv folder. HOT 2
- Pipenv called for any directory when i cd into it. HOT 2
- Does not enter pipenv shell when creating new terminal directly in a pipenv folder HOT 5
- I love this repo HOT 12
- An error in the documentation? HOT 3
- poetry env info -p is slow HOT 2
- C
- "exit" exits parent shell, too HOT 1
- auto-deactivate, like pyenv-virtualenv HOT 2
- Plugin makes shell startup much slower HOT 4
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 fish-pipenv.