Package Details: virtualfish 2.2.0-1

Git Clone URL: https://aur.archlinux.org/virtualfish.git (read-only, click to copy)
Package Base: virtualfish
Description: Fish shell tool for managing Python virtual environments
Upstream URL: https://github.com/justinmayer/virtualfish
Keywords: environment fish python virtual
Licenses: MIT
Submitter: XenGi
Maintainer: XenGi
Last Packager: XenGi
Votes: 4
Popularity: 0.36
First Submitted: 2017-09-24 15:17
Last Updated: 2020-04-11 20:17

Latest Comments

1 2 Next › Last »

elanglois commented on 2020-04-07 21:21

Removing the xdg dependency seems sensible to me. If you want to be fully compliant with the XDG spec, the replacement line would be

INSTALL_DIR = os.path.join(os.getenv('XDG_CONFIG_HOME', os.path.expanduser('~/.config')), 'fish', 'conf.d')

XenGi commented on 2020-04-07 13:37

I completely removed the damn package now. It's useless anyway. it basically installs and imports a package just to get a path that is fixed anyway. Feels like the javascript debacle all over again. Should work now.

ruahcra commented on 2020-04-07 01:46

Virtualfish' Python script doesn't seem to be able to pickup the vendored xdg.py

>vf ls
Traceback (most recent call last):
  File "/usr/bin/vf", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3259, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3242, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3271, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 584, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 901, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 787, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'xdg<5.0,>=4.0' distribution was not found and is required by virtualfish
>ll /usr/lib/python3.8/site-packages/virtualfish/loader/xdg.py
-rw-r--r-- 1 root root 3.7K Apr  7 10:43 /usr/lib/python3.8/site-packages/virtualfish/loader/xdg.py

XenGi commented on 2020-04-07 01:16

I added my 2 cents to the pull request upstream. Good idea btw.

It's amazing how much trouble this one line of code is causing down the road. If the package still complains about checksums try deleting the cached package. I had to do that because yay doesn't seem to recognize new files with unchanged filename.

avb commented on 2020-04-06 14:55

@XenGi: Thanks for your work on this. Copying in xdg.py is probably easier to maintain, rather than potentially having to update the patch with every release. I also submitted a pull request upstream, in case they want to use pyxdg themselves.

javier.ruere commented on 2020-04-05 20:08

The checksum of xdg.py fails, for me.

XenGi commented on 2020-04-05 15:49

I found another hacky way of dealing with https://bugs.archlinux.org/task/64173 until it's fixed. As the docs from the xdg package suggests I just copied the single xdg.py file from the upstream package to the virtualfish dir. So it will import the correct file no matter what archlinux is installing. I know it's ugly but it's just temporary. I'm sorry.

XenGi commented on 2020-04-04 23:24

I removed the split package and will only build the python3 version from now on. Having a python2 version makes no sense. I also changed the name of the package from python-virtualfish to just virtualfish to comply with the arch package guidelines. As this package is not a python module but a tool written in python it doesn't need the python- prefix. As for the dependency problem. Arch packages pyxdg under the name python-xdg. virtualfish has a dependency on xdg which is a different library with a similar function. In my opinion the arch packages python-xdg and python2-xdg have the wrong name. They should be renamed to python-pyxdg and python2-pyxdg. That way someone could package the correct xdg under python-xdg and python2-xdg. I'll open up a thread for that change on the mailing list soon. for now I'll try to integrate the patch from avb. Many thx for that!

avb commented on 2020-04-04 19:35

Here's a patch that makes virtualfish work with Arch's python-xdg (and updates to 2.1.0).

https://gist.github.com/avbop/70175a669fa5708d5fb9b93be21dcd05

avb commented on 2020-04-04 18:45

When attempting to run vf install after a clean install of this package, I get the following error:

pkg_resources.DistributionNotFound: The 'xdg<5.0,>=4.0' distribution was not found and is required by virtualfish

It looks like Arch install the pyxdg python package (in python-xdg) simply as xdg, but that is distinct from the xdg package on pypi that virtualfish expects to find. Activating the module with eval... in fish.config still works, but prints an annoying error message. The problem remains with v2.1.0 of virtualfish.