Skip to content

Commit

Permalink
Updated setup.py and pyproject.toml, use setuptools for setup
Browse files Browse the repository at this point in the history
  • Loading branch information
shahidee44 committed May 9, 2023
1 parent 732b695 commit 6141f0f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 32 deletions.
32 changes: 2 additions & 30 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,31 +1,3 @@
[tool.poetry]
name = "openqaoa"
version = "0.1.19"
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"
authors = ["Entropica Labs"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/entropicalabs/openqaoa"
homepage = "https://openqaoa.entropicalabs.com/"
documentation = "https://el-openqaoa.readthedocs.io/en/main/"
classifiers = [
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Operating System :: OS Independent"
]
packages = [
{include = "src"}
]

[tool.poetry.dependencies]
python = ">=3.8,<3.11"
openqaoa-core = {path = "./src/openqaoa-core", develop = true}
openqaoa-qiskit = {path = "./src/openqaoa-qiskit", develop = true}
openqaoa-azure = {path = "./src/openqaoa-azure", develop = true}
openqaoa-pyquil = {path = "./src/openqaoa-pyquil", develop = true}
openqaoa-braket = {path = "./src/openqaoa-braket", develop = true}

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
12 changes: 10 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,22 @@
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=[],
entry_points={"openqaoa.plugins": []}
packages=find_namespace_packages(where=".", exclude=["dist", "build"]),
entry_points={"openqaoa.plugins": []},
url="https://github.com/entropicalabs/openqaoa",
install_requires=requirements,
license="MIT",
Expand Down

0 comments on commit 6141f0f

Please sign in to comment.