generated from rochacbruno/python-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
67 lines (61 loc) · 2.13 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
56
57
58
59
60
61
62
63
64
65
66
67
"""Python Setup.py file for qtist package."""
import sys
import time
from setuptools import setup, find_packages
if '--release' in sys.argv:
IS_RELEASE = True
sys.argv.remove('--release')
else:
# Build a nightly package by default.
IS_RELEASE = False
# get the version from qtsit/__init__.py
def _get_version():
with open('qtsit/__init__.py') as fp:
for line in fp:
if line.startswith('__version__'):
g = {}
exec(line, g)
base = g['__version__']
if IS_RELEASE:
return base
else:
# nightly version : .devYearMonthDayHourMinute
if base.endswith('.dev') is False:
# Force to add `.dev` if `--release` option isn't passed when building
base += '.dev'
return base + time.strftime("%Y%m%d%H%M%S")
raise ValueError('`__version__` not defined in `qtsit/__init__.py`')
setup(name='qtsit',
version=_get_version(),
url='https://github.com/qtsit/qtsit',
maintainer='QTSIT contributors',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
],
license='MIT',
description='QTSIT: Quantum Technologies for Industry Transformation Toolkit',
keywords=[
'qtsit',
'quantum-chemistry',
'quantum-computing',
'quantum-ml',
'quantum-ai',
],
packages=find_packages(exclude=["*.tests"]),
project_urls={
'Documentation': 'https://qtsit.readthedocs.io/en/latest/',
'Source': 'https://github.com/QTSIT/qtsit',
},
install_requires=[
'joblib',
'numpy',
],
python_requires='>=3.9,<3.12')