Skip to content

Commit

Permalink
Merge pull request #82 from rigetticomputing/ImproveSetup
Browse files Browse the repository at this point in the history
Unify version source and use find_packages
  • Loading branch information
jotterbach committed Oct 11, 2017
2 parents 82935ac + dde9331 commit 24f80a1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 21 deletions.
6 changes: 4 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
import os
import sphinx_rtd_theme

from grove import __version__

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
Expand Down Expand Up @@ -69,9 +71,9 @@
# built documents.
#
# The short X.Y version.
version = '1.2.0'
version = __version__
# The full version, including alpha/beta/rc tags.
release = '1.2.0'
release = __version__

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
4 changes: 1 addition & 3 deletions grove/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
##############################################################################

# init for grove
from grove.pyvqe.vqe import VQE
__version__ = '1.2.0'
21 changes: 5 additions & 16 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,17 @@
# limitations under the License.
##############################################################################

from setuptools import setup
from setuptools import setup, find_packages
from grove import __version__

setup(
name="quantum-grove",
version="1.2.0",
version=__version__,
author="Rigetti Computing",
author_email="softapps@rigetti.com",
description="A collection of quantum algorithms built using pyQuil and Forest",
url="https://github.com/rigetticomputing/grove.git",
packages=[
"grove",
"grove.pyqaoa",
"grove.pyvqe",
"grove.qft",
"grove.bernstein_vazirani",
"grove.simon",
"grove.amplification",
"grove.alpha",
"grove.alpha.phaseestimation",
"grove.alpha.deutsch_jozsa",
"grove.alpha.arbitrary_state",
"grove.alpha.fermion_transforms"
],
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
install_requires=[
'numpy',
'scipy',
Expand All @@ -48,6 +36,7 @@
],
setup_requires=['pytest-runner'],
tests_require=[
'tox',
'pytest >= 3.0.0',
'mock'
],
Expand Down

0 comments on commit 24f80a1

Please sign in to comment.