-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
executable file
·76 lines (66 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""For installing pmidcite package and accompanying scripts."""
from os.path import abspath
from os.path import dirname
from os.path import join
# from distutils.core import setup
from glob import glob
from setuptools import setup
__copyright__ = 'Copyright (C) 2019-present, DV Klopfenstein, PhD. All rights reserved'
__author__ = 'DV Klopfenstein, PhD'
NAME = 'pmidcite'
PACKAGES = [
'pmidcite',
'pmidcite.cli',
'pmidcite.eutils',
'pmidcite.eutils.cmds',
'pmidcite.eutils.pubmed',
'pmidcite.eutils.pubmed.counts',
'pmidcite.icite',
'pmidcite.icite.dnldr',
'pmidcite.scripts',
'pmidcite.plot',
]
PACKAGE_DIRS = {p:join('src', *p.split('.')) for p in PACKAGES}
def get_long_description():
"""Return the contents of the README.md as a string"""
dir_cur = abspath(dirname(__file__))
# python3
#with open(join(dir_cur, 'README.md'), encoding='utf-8') as ifstrm:
# python3 or python2
with open(join(dir_cur, 'README.md'), 'rb') as ifstrm:
return ifstrm.read().decode("UTF-8")
CONSOLE_SCRIPTS = [
'icite=pmidcite.scripts.icite:main',
'sumpaps=pmidcite.scripts.summarize_papers:main',
]
setup(
name=NAME,
version='0.0.48',
author='DV Klopfenstein, PhD',
author_email='dvklopfenstein@protonmail.com',
packages=PACKAGES,
package_dir=PACKAGE_DIRS,
scripts=glob('src/bin/*.py'),
entry_points={
'console_scripts': CONSOLE_SCRIPTS,
},
# https://pypi.org/classifiers/
classifiers=[
'Programming Language :: Python',
'Environment :: Console',
'Intended Audience :: Science/Research',
'Development Status :: 4 - Beta',
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Information Analysis',
],
url='http://github.com/dvklopfenstein/pmidcite',
description="Turbocharge a PubMed literature search using citation data from the NIH",
# https://packaging.python.org/guides/making-a-pypi-friendly-readme/
long_description=get_long_description(),
long_description_content_type='text/markdown',
install_requires=['requests'],
)
# Copyright (C) 2019-present, DV Klopfenstein, PhD. All rights reserved