-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
35 lines (29 loc) · 1.01 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
from typing import Dict, Any, cast
from setuptools import setup, find_packages
import pathlib
import os
def get_version(version_file: "os.PathLike[str]") -> str:
locls: Dict[str, Any] = {}
exec(open(version_file).read(), {}, locls)
return cast(str, locls["__version__"])
here = pathlib.Path(__file__).parent.resolve()
readme_file = here / "README.md"
version_file = here / "src" / "kuddl" / "version.py"
setup(
name="kuddl",
version=get_version(version_file),
description="YAML+Python data description language",
long_description=readme_file.read_text(encoding="utf-8"),
long_description_content_type="text/markdown",
url="https://github.com/ktbarrett/kuddl",
author="Kaleb Barrett",
author_email="dev.ktbarrett@gmail.com",
license="MIT",
package_dir={"": "src"},
packages=find_packages(where="src"),
python_requires=">=3.6, <4",
install_requires=["pyyaml"],
extras_require={"test": ["pytest", "coverage", "pytest-cov"]},
entry_points={},
zip_safe=False,
)