-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
32 lines (24 loc) · 881 Bytes
/
setup.py
File metadata and controls
32 lines (24 loc) · 881 Bytes
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
import codecs
import os
import re
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
return codecs.open(os.path.join(here, *parts), "r").read()
def find_version(*file_paths):
version_file = read(*file_paths)
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="resultsdb_frontend",
version=find_version("resultsdb_frontend", "__init__.py"),
description="Frontend for the ResultsDB",
author="Josef Skladanka",
author_email="jskladan@redhat.com",
license="GPLv2+",
packages=["resultsdb_frontend", "resultsdb_frontend.controllers"],
package_dir={"resultsdb_frontend": "resultsdb_frontend"},
include_package_data=True,
)