forked from nathangrigg/arxiv2bib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
57 lines (51 loc) · 1.7 KB
/
Copy pathsetup.py
File metadata and controls
57 lines (51 loc) · 1.7 KB
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
"""\
Provides a command line tool to get metadata for an academic paper
posted at arXiv.org in BibTeX format.
Transform this::
$ arxiv2bib 1001.1001
Into this::
@article{1001.1001v1,
Author = {Philip G. Judge},
Title = {The chromosphere: gateway to the corona,
or the purgatory of solar physics?},
Eprint = {1001.1001v1},
ArchivePrefix = {arXiv},
PrimaryClass = {astro-ph.SR},
Abstract = {I outline curious observations which I personally
find puzzling and deserving of attention.},
Year = {2010},
Month = {Jan}
}
"""
import sys
try:
from setuptools import setup
except ImportError:
sys.exit("""Error: Setuptools is required for installation.
-> http://pypi.python.org/pypi/setuptools""")
setup(
name = "arxiv2bib",
version = "1.0.8",
description = "Get arXiv.org metadata in BibTeX format",
author = "Nathan Grigg",
author_email = "nathan@nathangrigg.net",
url = "http://nathangrigg.github.io/arxiv2bib",
py_modules = ["arxiv2bib"],
keywords = ["arxiv", "bibtex", "latex", "citation"],
entry_points = {
'console_scripts': ['arxiv2bib = arxiv2bib:main']
},
license = "BSD",
classifiers = [
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Topic :: Text Processing :: Markup :: LaTeX",
"Environment :: Console"
],
long_description = __doc__,
)