diff --git a/.gitignore b/.gitignore index 43ebc790..7231acb2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,10 @@ notebooks/.ipynb_checkpoints doc/_build +build +dist +pyzx.egg-info *.pyc .vscode *.class -*.ipynb_checkpoints \ No newline at end of file +*.ipynb_checkpoints +pyzx/js/d3.v5.js \ No newline at end of file diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 00000000..06446089 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,3 @@ +include pyzx/js/zx_editor_model.js +include pyzx/js/zx_editor_widget.js +include pyzx/js/zx_viewer.js \ No newline at end of file diff --git a/pyzx/__init__.py b/pyzx/__init__.py index 45778be9..010eec3c 100644 --- a/pyzx/__init__.py +++ b/pyzx/__init__.py @@ -15,6 +15,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +__version__ = "0.5.0" + from .graph.graph import Graph from .linalg import Mat2 from .drawing import * diff --git a/setup.py b/setup.py index 1d4d310d..b6173d38 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,28 @@ #!/usr/bin/python +import pathlib from setuptools import setup +HERE = pathlib.Path(__file__).parent +README = (HERE / "readme.md").read_text() + setup( name="pyzx", author="Quantomatic", + author_email="john@vdwetering.name", + version="0.5.0", url="https://github.com/Quantomatic/pyzx.git", - description="Python library for quantum circuit rewriting and optimisation using the ZX-calculus", + description="Library for quantum circuit rewriting and optimisation using the ZX-calculus", + long_description=README, + long_description_content_type="text/markdown", + license="GNUv3", + classifiers=[ + "License :: OSI Approved :: GNU Affero General Public License v3", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.6", + "Topic :: Software Development :: Libraries :: Python Modules", + "Development Status :: 4 - Beta", + ], packages=[ "pyzx", "pyzx.circuit", @@ -14,8 +30,6 @@ "pyzx.routing", "pyzx.scripts" ], - install_requires=[ - "numpy >= 1.14", - "matplotlib >= 2.2", - ], + install_requires=["numpy>=1.12"], + include_package_data=True, )