|
16 | 16 | import os
|
17 | 17 | import re
|
18 | 18 |
|
19 |
| -with open('requirements.txt') as f: |
| 19 | +with open("requirements.txt") as f: |
20 | 20 | REQUIREMENTS = f.read().splitlines()
|
21 | 21 |
|
22 |
| -if not hasattr(setuptools, 'find_namespace_packages') or not inspect.ismethod(setuptools.find_namespace_packages): |
23 |
| - print("Your setuptools version:'{}' does not support PEP 420 (find_namespace_packages). " |
24 |
| - "Upgrade it to version >='40.1.0' and repeat install.".format(setuptools.__version__)) |
| 22 | +if not hasattr(setuptools, "find_namespace_packages") or not inspect.ismethod( |
| 23 | + setuptools.find_namespace_packages |
| 24 | +): |
| 25 | + print( |
| 26 | + "Your setuptools version:'{}' does not support PEP 420 (find_namespace_packages). " |
| 27 | + "Upgrade it to version >='40.1.0' and repeat install.".format(setuptools.__version__) |
| 28 | + ) |
25 | 29 | sys.exit(1)
|
26 | 30 |
|
27 | 31 | VERSION_PATH = os.path.join(os.path.dirname(__file__), "qiskit_machine_learning", "VERSION.txt")
|
|
39 | 43 | )
|
40 | 44 |
|
41 | 45 | setuptools.setup(
|
42 |
| - name='qiskit-machine-learning', |
| 46 | + name="qiskit-machine-learning", |
43 | 47 | version=VERSION,
|
44 |
| - description='Qiskit Machine Learning: A library of quantum computing machine learning experiments', |
| 48 | + description="Qiskit Machine Learning: A library of quantum computing machine learning experiments", |
45 | 49 | long_description=README,
|
46 | 50 | long_description_content_type="text/markdown",
|
47 |
| - url='https://github.com/qiskit-community/qiskit-machine-learning', |
48 |
| - author='Qiskit Machine Learning Development Team', |
49 |
| - |
50 |
| - license='Apache-2.0', |
| 51 | + url="https://github.com/qiskit-community/qiskit-machine-learning", |
| 52 | + author="Qiskit Machine Learning Development Team", |
| 53 | + |
| 54 | + license="Apache-2.0", |
51 | 55 | classifiers=[
|
52 | 56 | "Environment :: Console",
|
53 | 57 | "License :: OSI Approved :: Apache Software License",
|
|
61 | 65 | "Programming Language :: Python :: 3.10",
|
62 | 66 | "Programming Language :: Python :: 3.11",
|
63 | 67 | "Programming Language :: Python :: 3.12",
|
64 |
| - "Topic :: Scientific/Engineering" |
| 68 | + "Topic :: Scientific/Engineering", |
65 | 69 | ],
|
66 |
| - keywords='qiskit sdk quantum machine learning ml', |
67 |
| - packages=setuptools.find_packages(include=['qiskit_machine_learning','qiskit_machine_learning.*']), |
| 70 | + keywords="qiskit sdk quantum machine learning ml", |
| 71 | + packages=setuptools.find_packages( |
| 72 | + include=["qiskit_machine_learning", "qiskit_machine_learning.*"] |
| 73 | + ), |
68 | 74 | install_requires=REQUIREMENTS,
|
69 | 75 | include_package_data=True,
|
70 | 76 | python_requires=">=3.9",
|
71 | 77 | extras_require={
|
72 |
| - 'torch': ["torch"], |
73 |
| - 'sparse': ["sparse"], |
| 78 | + "torch": ["torch"], |
| 79 | + "sparse": ["sparse"], |
74 | 80 | },
|
75 | 81 | project_urls={
|
76 | 82 | "Bug Tracker": "https://github.com/qiskit-community/qiskit-machine-learning/issues",
|
77 | 83 | "Documentation": "https://qiskit-community.github.io/qiskit-machine-learning/",
|
78 | 84 | "Source Code": "https://github.com/qiskit-community/qiskit-machine-learning",
|
79 | 85 | },
|
80 |
| - zip_safe=False |
| 86 | + zip_safe=False, |
81 | 87 | )
|
0 commit comments