-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·105 lines (85 loc) · 2.88 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Highly recommend installing using `pip install -U .` not `python setup.py install`
Uses pkgutil-style namespace package (Working on figuring out PEP 420)
Note: careful not to conflate install_requires with requirements.txt
https://packaging.python.org/discussions/install-requires-vs-requirements/
Reluctantly use setuptools for now to get install_requires & long_description_content_type
'''
import sys
from setuptools import setup
#from distutils.core import setup
PROJECT_NAME = 'librarylink'
PROJECT_DESCRIPTION = 'Tools for working with Library.Link',
PROJECT_LICENSE = 'License :: OSI Approved :: Apache Software License'
PROJECT_AUTHOR = 'Uche Ogbuji'
PROJECT_AUTHOR_EMAIL = '[email protected]'
PROJECT_MAINTAINER = 'Zepheira'
PROJECT_MAINTAINER_EMAIL = '[email protected]'
PROJECT_URL = 'http://zepheira.com/'
PACKAGE_DIR = {'librarylink': 'pylib'}
PACKAGES = ['librarylink', 'librarylink.crawler']
SCRIPTS = [
'exec/liblink_resource_summary',
'exec/liblink_crawl',
'exec/liblink_title_report',
'exec/liblinklist',
]
CORE_REQUIREMENTS = [
'amara3.xml',
'versa',
'html5lib',
'rdflib',
'aiohttp',
'aiohttp-cache',
'pybibframe',
'markdown',
'isbn_hyphenate',
]
# From http://pypi.python.org/pypi?%3Aaction=list_classifiers
CLASSIFIERS = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Development Status :: 3 - Alpha",
#"Environment :: Other Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Internet :: WWW/HTTP",
]
KEYWORDS=['xml', 'web', 'data']
version_file = 'pylib/version.py'
exec(compile(open(version_file, "rb").read(), version_file, 'exec'), globals(), locals())
__version__ = '.'.join(version_info)
LONGDESC = '''Library.Link
Tools for processing data from the Library.Link project
Uche Ogbuji < [email protected] >
# Install
Requires Python 3.5+
pip install LibraryLink
# liblink_resource_summary
Command Tool to parse RDFa 1.1 Lite (from the Library.Link pages or other HTML). Example:
liblink_resource_summary "http://link.houstonlibrary.org/portal/Half-of-a-yellow-sun-Chimamanda-Ngozi/n7KqqbZFJuM/"
'''
LONGDESC_CTYPE = 'text/markdown'
setup(
name=PROJECT_NAME,
version=__version__,
description=PROJECT_DESCRIPTION,
license=PROJECT_LICENSE,
author=PROJECT_AUTHOR,
author_email=PROJECT_AUTHOR_EMAIL,
maintainer=PROJECT_MAINTAINER,
maintainer_email=PROJECT_MAINTAINER_EMAIL,
url=PROJECT_URL,
package_dir=PACKAGE_DIR,
packages=PACKAGES,
scripts=SCRIPTS,
install_requires=CORE_REQUIREMENTS,
classifiers=CLASSIFIERS,
long_description=LONGDESC,
long_description_content_type=LONGDESC_CTYPE,
keywords=KEYWORDS,
)