Skip to content

Commit

Permalink
Updated setup and manifest for PyPI distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
jvdwetering committed Apr 7, 2020
1 parent c3c36e8 commit 52de1b1
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 6 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
notebooks/.ipynb_checkpoints
doc/_build
build
dist
pyzx.egg-info
*.pyc
.vscode
*.class
*.ipynb_checkpoints
*.ipynb_checkpoints
pyzx/js/d3.v5.js
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include pyzx/js/zx_editor_model.js
include pyzx/js/zx_editor_widget.js
include pyzx/js/zx_viewer.js
2 changes: 2 additions & 0 deletions pyzx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

__version__ = "0.5.0"

from .graph.graph import Graph
from .linalg import Mat2
from .drawing import *
Expand Down
24 changes: 19 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,35 @@
#!/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="[email protected]",
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",
"pyzx.graph",
"pyzx.routing",
"pyzx.scripts"
],
install_requires=[
"numpy >= 1.14",
"matplotlib >= 2.2",
],
install_requires=["numpy>=1.12"],
include_package_data=True,
)

0 comments on commit 52de1b1

Please sign in to comment.