forked from microsoft/azure-quantum-tgp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
50 lines (39 loc) · 1.27 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
45
46
47
48
49
50
# Copyright (c) Microsoft Corporation. All rights reserved.
from setuptools import find_packages, setup
def get_version_and_cmdclass(package_path):
"""Load version.py module without importing the whole package.
Template code from miniver
"""
from importlib.util import module_from_spec, spec_from_file_location
import os
spec = spec_from_file_location("version", os.path.join(package_path, "_version.py"))
module = module_from_spec(spec)
spec.loader.exec_module(module)
return module.__version__, module.cmdclass
version, cmdclass = get_version_and_cmdclass("tgp")
with open("requirements.txt") as f:
install_requires = f.read().split()
setup(
name="azure-quantum-tgp",
author="Microsoft Quantum Hardware",
author_email="[email protected]",
description="Topogap protocol code",
license="Proprietary",
packages=find_packages("."),
version=version,
python_requires=">=3.8",
cmdclass=cmdclass,
setup_requires=[],
install_requires=install_requires,
extras_require={
"test": [
"notebook",
"jupytext",
"pre-commit",
"nbmake",
"coverage",
],
},
package_data={"tgp": ["tgp/*.yaml"]},
include_package_data=True,
)