diff --git a/.gitignore b/.gitignore index a2e22d0..382a328 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,6 @@ tmp/* __pycache__ log log/* -.* \ No newline at end of file +.* +build/ +dist/ \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..7479468 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,38 @@ +[build-system] +requires = ["setuptools>=61.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "netqmpi" +version = "0.1.0" +description = "A high-level abstraction layer similar to MPI for distributed quantum programming over NetQASM." +readme = "README.md" +requires-python = ">=3.8" +license = {text = "MIT"} +authors = [ + {name = "F. Javier Cardama", email = "javier.cardama@usc.es"} +] +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", +] +dependencies = [ + "netqasm~=1.0.0", + "numpy~=1.24.3", +] + +[project.optional-dependencies] +test = ["pytest>=7.0"] + +[project.scripts] +netqmpi = "netqmpi.runtime.cli:main" + +[project.urls] +Homepage = "https://github.com/NetQIR/net-qmpi" +Repository = "https://github.com/NetQIR/net-qmpi" + +[tool.setuptools.packages.find] +where = ["."] +include = ["netqmpi*"] +exclude = ["test*"] diff --git a/setup.py b/setup.py deleted file mode 100644 index 88b7c7d..0000000 --- a/setup.py +++ /dev/null @@ -1,29 +0,0 @@ -from setuptools import setup, find_packages - -setup( - name='netqmpi', - version='0.1.0', - entry_points={ - 'console_scripts': [ - 'netqmpi=netqmpi.runtime.cli:main', - ], - }, - packages=find_packages(), - install_requires=[ - 'netqasm~=1.0.0', - 'numpy~=1.24.3', - ], - extras_require={ - 'test': ['pytest>=7.0'], - }, - author='F. Javier Cardama', - author_email='javier.cardama@usc.es', - description='A high-level abstraction layer similar to MPI for distributed quantum programming over NetQASM.', - url='https://github.com/NetQIR/net-qmpi', # Replace with your project's URL - classifiers=[ - 'Programming Language :: Python :: 3', - 'License :: OSI Approved :: MIT License', - 'Operating System :: OS Independent', - ], - python_requires='>=3.6', -) \ No newline at end of file