forked from tergite/tergite-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
55 lines (46 loc) · 1.74 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
54
55
# This code is part of Tergite
#
# (C) Copyright Miroslav Dobsicek 2020, 2021
# (C) Copyright David Wahlstedt 2023
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
from pathlib import Path
import setuptools
_ROOT_DIRECTORY = Path(__file__).parent
with open(_ROOT_DIRECTORY / "requirements.txt", mode="r") as _f:
_ALL_REQUIREMENTS = _f.readlines()
# extract non-dev dependencies
_DEV_DEPS_START = len(_ALL_REQUIREMENTS)
try:
_DEV_DEPS_START = _ALL_REQUIREMENTS.index("# dev-dependencies")
except ValueError:
pass
REQUIREMENTS = _ALL_REQUIREMENTS[:_DEV_DEPS_START]
_README = (_ROOT_DIRECTORY / "README.md").read_text()
setuptools.setup(
name="tergite-backend",
version="2024.12.1",
author="Miroslav Dobsicek",
maintainer="Chalmers Next Labs AB",
maintainer_email="[email protected]",
author_email="[email protected]",
description="The Backend of the Tergite software stack of the Swedish Quantum Computer",
long_description=_README,
long_description_content_type="text/markdown",
url="https://github.com/tergite/tergite-backend",
packages=setuptools.find_packages(),
python_requires=">=3.9",
include_package_data=True,
license="Apache 2.0",
install_requires=REQUIREMENTS,
classifiers=[
"Programming Language :: Python :: 3.9",
"Operating System :: OS Independent",
],
)