-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (40 loc) · 1.37 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
import setuptools
from ntpath import dirname
with open('README.md', 'r') as f:
longDescription = f.read()
# single sourcing version number to __init__.py
def getVersion(pkgDir):
currentPath = dirname(__file__)
initPath = f"{currentPath}/{pkgDir}/__init__.py"
with open(initPath) as f:
for line in f.readlines():
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
setuptools.setup(
name="qbot",
version=getVersion("qbot"),
author="Joshua McPherson",
author_email="joshuamcpherson5@gmail.com",
description="An Interactive Quantum Computing Simulator",
long_description = longDescription,
long_description_content_type = 'text/markdown',
url="https://github.com/PrinceOfPuppers/qbot",
packages=setuptools.find_packages(),
include_package_data=True,
install_requires=['numpy'],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
],
python_requires='>=3.6',
scripts=["bin/qbot"],
entry_points={
'console_scripts': ['qbot = qbot:main'],
},
)