forked from CERNDocumentServer/harvesting-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
59 lines (52 loc) · 2.31 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
# -*- coding: utf-8 -*-
##
## This file is part of Harvesting Kit.
## Copyright (C) 2013, 2014 CERN.
##
## Harvesting Kit is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, or (at your option) any later version.
##
## Harvesting Kit is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with Harvesting Kit; if not, write to the Free Software Foundation, Inc.,
## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
import os
from setuptools import setup, find_packages
from invenio.config import CFG_PYLIBDIR
from harvestingkit.config import CFG_DTDS_PATH
bibtasklet_path = os.path.join(CFG_PYLIBDIR, 'invenio', 'bibsched_tasklets')
with open('requirements.txt', 'r') as req:
requirements = req.readlines()
setup(name="HarvestingKit",
version="0.1",
packages=find_packages(),
package_data={'': ['data/*.xml']},
data_files=[(bibtasklet_path, ["bibtasklets/bst_elsevier.py",
"bibtasklets/bst_oxford.py",
"bibtasklets/bst_springer.py"]),
(CFG_DTDS_PATH, ["dtds/ja5_art501.zip",
"dtds/ja5_art510.zip",
"dtds/ja5_art520.zip",
"dtds/si510.zip",
"dtds/si520.zip",
"dtds/A++V2.4.zip",
"dtds/jats-archiving-dtd-1.0.zip",
"dtds/journal-publishing-dtd-2.3.zip"])],
install_requires=requirements,
author="CERN",
author_email="[email protected]",
description=("Kit containing scripts and utils for harvesting ",
"with Invenio Software."),
license="GPLv2",
url="https://github.com/inspirehep/harvesting-kit",
entry_points='''
[console_scripts]
harvestingkit_cli = harvestingkit.harvestingkit_cli:main
'''
)