-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
108 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,3 @@ | ||
# | ||
# you can install this to a local test virtualenv like so: | ||
# virtualenv venv | ||
# ./venv/bin/pip install --editable . | ||
# ./venv/bin/pip install --editable .[dev] # with dev requirements, too | ||
|
||
import os | ||
import sys | ||
import glob | ||
|
||
from setuptools import setup | ||
|
||
if sys.platform == "win32": | ||
data_files = [] | ||
else: | ||
# NOTE: see the documentation for 'bash-completion' at | ||
# https://github.com/scop/bash-completion/blob/master/README.md#faq | ||
bash_completion_dir = os.environ.get( | ||
"PAPIS_BASH_COMPLETION_DIR", "share/bash-completion/completions") | ||
# NOTE: see the documentation for 'fish' at | ||
# https://fishshell.com/docs/current/completions.html#where-to-put-completions | ||
fish_completion_dir = os.environ.get( | ||
"PAPIS_FISH_COMPLETION_DIR", "share/fish/vendor_completions.d") | ||
# NOTE: 'site-functions' is included by default since zsh 5.0.7, see | ||
# https://zsh.sourceforge.io/releases.html | ||
zsh_completion_dir = os.environ.get( | ||
"PAPIS_ZSH_COMPLETION_DIR", "share/zsh/site-functions") | ||
|
||
data_files = [ | ||
("share/doc/papis", [ | ||
"README.rst", | ||
"CHANGELOG.md", | ||
"AUTHORS", | ||
"LICENSE", | ||
]), | ||
|
||
(bash_completion_dir, ["scripts/shell_completion/click/bash/papis.bash"]), | ||
(fish_completion_dir, ["scripts/shell_completion/click/fish/papis.fish"]), | ||
(zsh_completion_dir, ["scripts/shell_completion/click/zsh/_papis"]), | ||
|
||
("share/man/man1", glob.glob("doc/build/man/*")), | ||
("share/applications", ["contrib/papis.desktop"]), | ||
] | ||
|
||
setup(data_files=data_files) | ||
setup() |
Oops, something went wrong.