forked from entropicalabs/openqaoa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
43 lines (37 loc) · 1.76 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
from setuptools import setup, find_namespace_packages
import os
current_path = os.getcwd()
with open("README.md", "r") as fh:
long_description = fh.read()
# Dev package will share versions with the core in it.
with open("src/openqaoa-core/openqaoa/_version.py") as f:
version = f.readlines()[-1].split()[-1].strip("\"'")
requirements = [f"{each_folder_name}=={version}" for each_folder_name in os.listdir("src") if "openqaoa-" in each_folder_name]
requirements = [
f'openqaoa-core @ file://localhost/{current_path}/src/openqaoa-core',
f'openqaoa-qiskit @ file://localhost/{current_path}/src/openqaoa-qiskit',
f'openqaoa-braket @ file://localhost/{current_path}/src/openqaoa-braket',
f'openqaoa-pyquil @ file://localhost/{current_path}/src/openqaoa-pyquil',
f'openqaoa-azure @ file://localhost/{current_path}/src/openqaoa-azure'
]
setup(
name="openqaoa",
python_requires=">=3.8, <3.11",
version=version,
author="Entropica Labs",
packages=find_namespace_packages(where=".", exclude=["dist", "build"]),
entry_points={"openqaoa.plugins": []},
url="https://github.com/entropicalabs/openqaoa",
install_requires=requirements,
license="MIT",
description="OpenQAOA is a python open-source multi-backend Software Development Kit to create, customise and execute the Quantum Approximate Optimisation Algorithm (QAOA) on Noisy Intermediate-Scale Quantum (NISQ) devices, and simulators",
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Operating System :: OS Independent",
],
keywords="quantum optimisation SDK",
)