forked from klaxalk/papis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
219 lines (208 loc) · 7.51 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
# -*- coding: utf-8 -*-
#
# 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 sys
import glob
from setuptools import setup, find_packages
import papis
with open('README.rst') as fd:
long_description = fd.read()
if sys.platform == 'win32':
data_files = []
else:
data_files = [
("share/doc/papis", [
"README.rst",
"CHANGELOG.md",
"AUTHORS",
"LICENSE.txt",
]),
("etc/bash_completion.d/", [
"scripts/shell_completion/click/papis.sh",
]),
("share/zsh/site-functions/", [
"scripts/shell_completion/click/zsh/_papis",
]),
("share/man/man1", glob.glob("doc/build/man/*")),
("share/applications", [
"contrib/papis.desktop",
]),
]
included_packages = ['papis'] + ['papis.' + p for p in find_packages('papis')]
setup(
name='papis',
version=papis.__version__,
maintainer='Alejandro Gallo',
maintainer_email='[email protected]',
author=papis.__author__,
author_email=papis.__email__,
license=papis.__license__,
url='https://github.com/papis/papis',
install_requires=[
"requests>=2.11.1",
"filetype>=1.0.1",
"pyparsing>=2.2.0",
"configparser>=3.0.0",
"arxiv2bib>=1.0.7",
"PyYAML>=3.12",
"chardet>=3.0.2",
"beautifulsoup4>=4.4.1",
"colorama>=0.2",
"bibtexparser>=0.6.2",
"click>=7.0.0",
"habanero>=0.6.0",
"isbnlib>=3.9.1,<3.10",
"prompt_toolkit>=2.0.5",
"tqdm>=4.1",
"pygments>=2.2.0",
"stevedore>=1.30",
"python-doi>=0.1.1",
"typing-extensions>=3.7",
"lxml>=4.3.5 ; python_version>'3.5'",
"python-slugify>=1.2.6 ; python_version>'3.4'",
],
python_requires='>=3.5',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: System Administrators',
'Natural Language :: English',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: MacOS',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: Microsoft',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Utilities',
],
extras_require=dict(
# List additional groups of dependencies here (e.g. development
# dependencies). You can install these using the following syntax,
# for example:
# $ pip install -e .[develop]
optional=[
"Whoosh>=2.7.4",
],
develop=[
'sphinx-click',
'sphinx_rtd_theme',
'pytest-cov',
'mypy>=0.7',
]
),
description=(
'Powerful and highly extensible command-line based document '
'and bibliography manager'
),
long_description=long_description,
keywords=[
'document', 'crossref', 'libgen', 'scihub', 'physics', 'mathematics',
'books', 'papers', 'science', 'research',
'bibtex', 'latex', 'command-line', 'tui', 'biblatex', 'pubmed', 'ieee',
'reference manager', 'mendeley', 'zotero', 'elsevier',
'cli', 'biliography', 'datasheets', 'bibtex'
],
package_data=dict(
papis=[
],
),
data_files=data_files,
packages=included_packages,
entry_points={
'console_scripts': [
'papis=papis.commands.default:run',
],
'papis.exporter': [
'bibtex=papis.bibtex:exporter',
'json=papis.json:exporter',
'yaml=papis.yaml:exporter',
],
'papis.importer': [
'bibtex=papis.bibtex:Importer',
'yaml=papis.yaml:Importer',
'doi=papis.crossref:Importer',
'crossref=papis.crossref:FromCrossrefImporter',
'pdf2doi=papis.crossref:DoiFromPdfImporter',
# 'url=papis.downloaders:Importer',
'arxiv=papis.arxiv:Importer',
'pdf2arxivid=papis.arxiv:ArxividFromPdfImporter',
'pmid=papis.pubmed:Importer',
'lib=papis.commands.add:FromLibImporter',
'folder=papis.commands.add:FromFolderImporter',
],
'papis.picker': [
'papis=papis.tui.picker:Picker',
],
'papis.format': [
'python=papis.format:PythonFormater',
'jinja2=papis.format:Jinja2Formater',
],
'papis.command': [
"add=papis.commands.add:cli",
"addto=papis.commands.addto:cli",
"browse=papis.commands.browse:cli",
"config=papis.commands.config:cli",
"edit=papis.commands.edit:cli",
"explore=papis.commands.explore:cli",
"export=papis.commands.export:cli",
"git=papis.commands.git:cli",
"list=papis.commands.list:cli",
"mv=papis.commands.mv:cli",
"bibtex=papis.commands.bibtex:cli",
"open=papis.commands.open:cli",
"rename=papis.commands.rename:cli",
"rm=papis.commands.rm:cli",
"run=papis.commands.run:cli",
"update=papis.commands.update:cli",
],
'papis.downloader': [
"acs=papis.downloaders.acs:Downloader",
"annualreviews=papis.downloaders.annualreviews:Downloader",
"citeseerx=papis.downloaders.citeseerx:Downloader",
"aps=papis.downloaders.aps:Downloader",
"frontiersin=papis.downloaders.frontiersin:Downloader",
"get=papis.downloaders.get:Downloader",
"hal=papis.downloaders.hal:Downloader",
"doi=papis.crossref:Downloader",
"ieee=papis.downloaders.ieee:Downloader",
"sciencedirect=papis.downloaders.sciencedirect:Downloader",
"tandfonline=papis.downloaders.tandfonline:Downloader",
"springer=papis.downloaders.springer:Downloader",
"iopscience=papis.downloaders.iopscience:Downloader",
"scitationaip=papis.downloaders.scitationaip:Downloader",
"thesesfr=papis.downloaders.thesesfr:Downloader",
"worldscientific=papis.downloaders.worldscientific:Downloader",
"fallback=papis.downloaders.fallback:Downloader",
"arxiv=papis.arxiv:Downloader",
],
'papis.explorer': [
"lib=papis.commands.explore:lib",
"add=papis.commands.explore:add",
"citations=papis.commands.explore:citations",
"cmd=papis.commands.explore:cmd",
"pick=papis.commands.explore:pick",
"arxiv=papis.arxiv:explorer",
"crossref=papis.crossref:explorer",
"dissemin=papis.dissemin:explorer",
"base=papis.base:explorer",
"export=papis.commands.export:explorer",
"isbn=papis.isbn:explorer",
"isbnplus=papis.isbnplus:explorer",
"yaml=papis.yaml:explorer",
"json=papis.json:explorer",
"bibtex=papis.bibtex:explorer",
]
},
platforms=['linux', 'osx', 'win32'],
)