-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (36 loc) · 1.35 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
import io
from setuptools import find_packages, setup
# This reads the __version__ variable from symbolic/_version.py
__version__ = ""
exec(open("symboliq/_version.py").read())
name = "symboliq"
description = "SymboliQ is a python framework for Symbolic Quantum computation"
# README file as long_description.
long_description = io.open("README.md", encoding="utf-8").read()
# Read in requirements
requirements = open("requirements.txt").readlines()
requirements = [r.strip() for r in requirements]
# Read in dev requirements, installed with 'pip install symbolic[dev]'
dev_requirements = open("dev-requirements.txt").readlines()
dev_requirements = [r.strip() for r in dev_requirements]
symbolic_packages = ["symboliq"] + [
"symboliq." + package for package in find_packages(where="symboliq")
]
# Sanity check
assert __version__, "Version string cannot be empty"
setup(
name=name,
version=__version__,
url="https://github.com/SupertechLabs/SymboliQ",
author="Victory Omole",
author_email="[email protected]",
python_requires=(">=3.8.0"),
install_requires=requirements,
extras_require={"dev": dev_requirements},
license="Apache 2",
description=description,
long_description=long_description,
long_description_content_type="text/markdown",
packages=symbolic_packages,
package_data={"symboliq": ["py.typed"]},
)