swtpm/samples/setup.py
Stefan Berger b71da43026 samples: Rewrite swtpm-localca in python
Rewrite swtpm-localca in python and get rid of the bash file and the flock
dependency.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2020-09-18 12:09:11 -04:00

27 lines
749 B
Python
Executable File

#!/usr/bin/env python3
""" setup.py
Install swtpm-localca
"""
import setuptools
from py_swtpm_localca.swtpm_localca_conf import SWTPM_VER_MAJOR, SWTPM_VER_MINOR, SWTPM_VER_MICRO
setuptools.setup(
name="swtpm-localca",
version="%d.%d.%d" % (SWTPM_VER_MAJOR, SWTPM_VER_MINOR, SWTPM_VER_MICRO),
author="Stefan Berger et al.",
author_email="stefanb@linux.ibm.com",
url="https::/github.com/stefanberger/swptm",
#packages=setuptools.find_packages(),
description="A local CA for creating TPM 1.2 and TPM 2 EK and platform certificates",
python_requires=">=3.2",
packages=["py_swtpm_localca"],
package_dir={
"py_swtpm_localca": "py_swtpm_localca"
},
license="BSD3",
install_requires=[
],
)