-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (54 loc) · 1.51 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
# -*- coding: utf-8 -*-
from os import path
from os import sep
import setuptools
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, "README.md"), encoding="utf-8") as f:
readme = f.read()
with open("requirements.txt") as f:
required = f.read().splitlines()
setup_requirements = [
"setuptools_scm",
"pytest-runner",
]
test_requirements = [
"pytest>=3",
]
about = {}
with open(
path.join(here, "pds_crawler", "_version.py"),
encoding="utf-8",
) as f:
exec(f.read(), about)
setuptools.setup(
use_scm_version=True,
name=about["__name_soft__"],
description=about["__description__"],
long_description=readme,
author=about["__author__"],
author_email=about["__author_email__"],
url=about["__url__"],
license=about["__license__"],
long_description_content_type="text/markdown",
packages=setuptools.find_packages(),
setup_requires=setup_requirements,
test_suite="tests",
tests_require=test_requirements,
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Operating System :: OS Independent",
],
python_requires=">=3.6",
install_requires=required,
entry_points={
"console_scripts": [
about["__name_soft__"]
+ "="
+ about["__name_soft__"]
+ ".__main__:run",
],
}, # Optional
)