-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsetup.py
61 lines (51 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
54
55
56
57
58
59
60
61
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
import re
from pathlib import Path
def readme(root_path):
"""Returns the text content of the README.rst of the package
Parameters
----------
root_path : pathlib.Path
path to the root of the package
"""
with root_path.joinpath('README.md').open(encoding='UTF-8') as f:
return f.read()
root_path = Path(__file__).parent
README = readme(root_path)
config = {
'name': 'pyclifford',
'packages': find_packages(exclude=['doc']),
'description': 'Clifford Gate Circuit Simulation',
'long_description': README,
'long_description_content_type' : 'text/x-rst',
'author': 'author names', #'version': VERSION,
'install_requires': ['numpy'],
'license': 'Modified BSD',
'scripts': [],
'classifiers': [
'Topic :: Scientific/Engineering',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3'
],
}
# config2 = {
# 'name': 'torchclifford',
# 'packages': find_packages(exclude=['doc']),
# 'description': 'Clifford Gate Circuit Simulation',
# 'long_description': README,
# 'long_description_content_type' : 'text/x-rst',
# 'author': 'author names', #'version': VERSION,
# 'install_requires': ['torch'],
# 'license': 'Modified BSD',
# 'scripts': [],
# 'classifiers': [
# 'Topic :: Scientific/Engineering',
# 'License :: OSI Approved :: BSD License',
# 'Programming Language :: Python :: 3'
# ],
# }
setup(**config)
# setup(**config2)