generated from quantum-plugins/quantum-server-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
53 lines (44 loc) · 1.61 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
51
52
53
from setuptools import setup, find_packages
def get_requirements():
"""
Your dependencies must be listed in a requirements.txt file inside the
root directory.
The comments will be ignored.
"""
with open("requirements.txt", "r", encoding="UTF-8") as file:
lines = list(map(lambda line: line.replace("\n", "").strip(), file.readlines()))
valid_packages = list(filter(lambda line: not line.startswith("#"), lines))
return valid_packages
def get_long_description():
"""
Remember to updated README.md describing your project.
It's going to be used on your Pypi page.
"""
with open("README.md", "r", encoding="UTF-8") as file:
return file.read()
setup(
name="aer_plugin",
version="0.0.1",
install_requires=get_requirements(),
packages=find_packages(exclude=["tests"]),
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.0",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Quantum Computing",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: System",
"Topic :: System :: Hardware",
],
url="https://github.com/Dpbm/aer-plugin",
license="MIT",
author="Dpbm",
author_email="dpbm136@gmail.com",
description="A quantum plugin for qiskit AER",
long_description=get_long_description(),
long_description_content_type="text/markdown",
include_package_data=True,
)