-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
80 lines (69 loc) · 2.55 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
# setup.py
# Date: 12/08/2020
# Author: Eugeniu Costetchi
# Email: [email protected]
import re
from setuptools import setup, find_packages
with open("README.md", "r") as fh:
long_description = fh.read()
with open('requirements.txt') as f:
requirements = f.read().splitlines()
with open('requirements-dev.txt') as f:
requirements_dev = f.read().splitlines()
extras = {
'test': requirements_dev,
}
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)
version = find_version('eds4jinja2/__init__.py')
packages = find_packages(exclude=('examples*', 'test*'))
setup(
name="eds4jinja2",
version=version,
install_requires=requirements,
tests_require=requirements_dev,
extras_require=extras,
packages=find_packages(exclude=("test*",)),
include_package_data=True,
# data_files={
# 'eds4jinja2_templates': ['templates/**/*'],
# },
# package_data={'': ['*.txt'], },
author="Eugeniu Costetchi",
author_email="[email protected]",
maintainer="Eugeniu Costetchi",
maintainer_email="[email protected]",
description="Embed the data source specifications in your JINJA templates directly, " \
"and enjoy the dynamic data contexts.",
long_description=long_description,
long_description_content_type="text/markdown",
# long_description_content_type="text/x-rst",
url="https://github.com/meaningfy-ws/eds4jinja2",
platforms='any',
keywords='template, jinja, report, report generation, rdf, sparql, linked-data, data-source, dynamic-context',
# exclude=["tests", "test_*"],
license="Apache License 2.0",
classifiers=[
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Utilities",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Operating System :: OS Independent",
"Natural Language :: English",
],
python_requires='>=3.8',
entry_points={
"console_scripts": ["mkreport=eds4jinja2.entrypoints.cli.main:build_report"],
},
)