-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
44 lines (36 loc) · 1.33 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import os
import setuptools
from setuptools import setup, find_packages
packagename = "yamlpyowl"
# consider the path of `setup.py` as root directory:
PROJECTROOT = os.path.dirname(sys.argv[0]) or "."
release_path = os.path.join(PROJECTROOT, "src", packagename, "release.py")
with open(release_path, encoding="utf8") as release_file:
__version__ = release_file.read().split('__version__ = "', 1)[1].split('"', 1)[0]
with open("requirements.txt") as requirements_file:
requirements = requirements_file.read()
setup(
name=packagename,
version=__version__,
author="Carsten Knoll",
author_email="[email protected]",
packages=find_packages("src"),
package_dir={"": "src"},
url="https://github.com/cknoll/yamlpyowl",
license="GPLv3",
description="Experimental YAML-to-OWL converter",
long_description="""
Experimental YAML-to-OWL converter. Does only cover a fraction of OWL2.
""",
install_requires=requirements,
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3",
],
entry_points={"console_scripts": [f"{packagename}={packagename}.script:main"]},
)