-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
80 lines (66 loc) · 2.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
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
#!/usr/bin/python3
# __init__.py
# Date: 07/02/2022
# Author: Eugeniu Costetchi
# Email: [email protected]
# Package PIP install location: https://github.com/OP-TED/ted-rdf-conversion-pipeline/archive/main.zip
""" """
import codecs
import os
import pathlib
import re
from pkg_resources import parse_requirements
from setuptools import setup, find_packages
kwargs = {}
with pathlib.Path('requirements.txt').open() as requirements:
kwargs["install_requires"] = [str(requirement) for requirement in parse_requirements(requirements)]
kwargs["tests_require"] = []
kwargs["extras_require"] = {
}
def find_version(filename):
_version_re = re.compile(r'__version__ = "(.*)"')
for line in open(filename):
version_match = _version_re.match(line)
if version_match:
return version_match.group(1)
def open_local(paths, mode="r", encoding="utf8"):
path = os.path.join(os.path.abspath(os.path.dirname(__file__)), *paths)
return codecs.open(path, mode, encoding)
with open_local(["README.md"], encoding="utf-8") as readme:
long_description = readme.read()
version = find_version("ted_sws/__init__.py")
packages = find_packages(exclude=("examples*", "tests*", "dags*", "notebooks*", "infra*", "docs*"))
setup(
name="ted_sws",
version=version,
description="TED SWS is an awesome system",
author="Meaningfy",
author_email="[email protected]",
maintainer="Meaningfy Team",
maintainer_email="[email protected]",
url="https://github.com/OP-TED/ted-rdf-conversion-pipeline",
license="Apache License 2.0",
platforms=["any"],
python_requires=">=3.7",
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Natural Language :: English",
],
long_description=long_description,
long_description_content_type="text/markdown",
packages=packages,
entry_points={
"console_scripts": [],
},
include_package_data=True,
**kwargs,
)