This repository has been archived by the owner on Mar 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
/
setup.py
51 lines (41 loc) · 1.36 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
from setuptools import find_packages, setup
import sciencebeam_parser
from sciencebeam_parser.utils.dist.utils import (
get_markdown_with_resolved_links,
get_github_content_link_prefix
)
PROJECT_URL = 'https://github.com/elifesciences/sciencebeam-parser'
VERSION = sciencebeam_parser.__version__
with open('requirements.txt', 'r', encoding='utf-8') as f:
REQUIRED_PACKAGES = f.readlines()
with open('doc/python_library.md', 'r', encoding='utf-8') as f:
LONG_DESCRIPTION = get_markdown_with_resolved_links(
'\n'.join([
line.rstrip()
for line in f
if not line.startswith('[![')
]),
source_base_path='doc',
link_prefix=get_github_content_link_prefix(
PROJECT_URL,
version=VERSION
)
)
packages = find_packages(exclude=["tests", "tests.*"])
setup(
name="sciencebeam_parser",
version=VERSION,
author="Daniel Ecer",
url=PROJECT_URL,
install_requires=REQUIRED_PACKAGES,
packages=packages,
include_package_data=True,
description='ScienceBeam Parser, parse scientific documents.',
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
)