зеркало из https://github.com/microsoft/CCF.git
50 строки
1.5 KiB
Python
50 строки
1.5 KiB
Python
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
# Licensed under the Apache 2.0 License.
|
|
|
|
from os import path
|
|
from setuptools import setup # type: ignore
|
|
|
|
# pylint: disable=import-error
|
|
import version # type: ignore
|
|
|
|
import versionifier
|
|
|
|
PACKAGE_NAME = "ccf"
|
|
UTILITIES_PATH = "utils"
|
|
|
|
path_here = path.abspath(path.dirname(__file__))
|
|
|
|
with open(path.join(path_here, "README.md"), encoding="utf-8") as f:
|
|
long_description = f.read()
|
|
|
|
with open("requirements.txt") as f:
|
|
requirements = f.read().splitlines()
|
|
|
|
setup(
|
|
name=PACKAGE_NAME,
|
|
version=str(versionifier.to_python_version(version.CCF_VERSION)),
|
|
description="Set of tools and utilities for the Confidential Consortium Framework (CCF)",
|
|
long_description=long_description,
|
|
long_description_content_type="text/markdown",
|
|
url="https://github.com/microsoft/CCF/tree/main/python",
|
|
license="Apache License 2.0",
|
|
author="CCF Team",
|
|
classifiers=[
|
|
"Development Status :: 3 - Alpha",
|
|
"Intended Audience :: Developers",
|
|
"Programming Language :: Python :: 3",
|
|
],
|
|
packages=[PACKAGE_NAME],
|
|
python_requires=">=3.8",
|
|
install_requires=requirements,
|
|
scripts=[
|
|
path.join(PACKAGE_NAME, "proposal_generator.py"),
|
|
path.join(PACKAGE_NAME, "read_ledger.py"),
|
|
path.join(UTILITIES_PATH, "keygenerator.sh"),
|
|
path.join(UTILITIES_PATH, "scurl.sh"),
|
|
path.join(UTILITIES_PATH, "submit_recovery_share.sh"),
|
|
path.join(UTILITIES_PATH, "verify_quote.sh"),
|
|
],
|
|
include_package_data=True,
|
|
)
|