-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
48 lines (45 loc) · 1.16 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
import re
from setuptools import setup, find_packages
with open('Makefile.conf') as fp:
text = fp.read()
PACKAGE, = re.findall(r'PACKAGE\s*=\s*(.*)', text)
DESCRIPTION = re.findall(r'DESCRIPTION\s*=\s*(.*)', text)
URL = re.findall(r'URL\s*=\s*(.*)', text)
LICENSE = re.findall(r'LICENSE\s*=\s*(.*)', text)
with open(f'{PACKAGE}/__init__.py') as fp:
text = fp.read()
VERSION, = re.findall(r"__version__\s*=\s*'(.*)'", text)
setup(
name=PACKAGE,
version=VERSION,
description=DESCRIPTION,
url=URL,
platforms='any',
python_requires='>=3.9',
packages=find_packages(exclude=('tests', 'tests.*')),
#package_data={PACKAGE: ['py.typed']},
include_package_data=True,
install_requires=[
'lark',
'more_itertools',
'rdflib',
'requests',
'setuptools',
'z3-solver',
],
extras_require={
'docs': [
'myst_parser',
'pydata_sphinx_theme',
],
'tests': [
'flake8',
'isort',
'mypy',
'pytest',
'pytest-cov',
'pytest-mypy',
'tox',
],
},
)