forked from potassco/clorm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
39 lines (31 loc) · 1.2 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
#!/usr/bin/env python
import os
import re
import sys
from setuptools import setup
# Utility functions so that we can populate the package description and the
# version number automatically.
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def find_version(fname):
version_file = read(fname)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
setup(
name="Clorm",
version=find_version("clorm/__init__.py"),
author="David Rajaratnam",
author_email="[email protected]",
description="Clingo ORM (CLORM) provides a ORM interface for interacting with the Clingo Answer Set Programming (ASP) solver",
license="MIT",
url="https://github.com/potassco/clorm",
packages=["clorm", "clorm.orm", "clorm.util", "clorm.lib"],
package_data={"clorm": ["py.typed"]},
zip_safe=False, # https://mypy.readthedocs.io/en/latest/installed_packages.html
install_requires=["clingo"]
if sys.version_info >= (3, 8)
else ["clingo", "typing_extensions"],
long_description=read("README.rst"),
)