Skip to content

Commit

Permalink
Extract the setup.py software version from the source code, and updat…
Browse files Browse the repository at this point in the history
…e PKG-INFO.
  • Loading branch information
tshead2 committed Sep 3, 2014
1 parent c3b302c commit df29217
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# rights in this software.

from setuptools import setup, find_packages
import re

setup(
name = "toyplot",
classifiers = [
Expand All @@ -15,17 +17,20 @@
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Visualization",
],
description = "A modern plotting toolkit supporting electronic publishing and reproducibility.",
install_requires = ["numpy>=1.7", "colormath"],
long_description = """Toyplot is the kid-sized plotting toolkit for Python with grownup-sized goals:
* Develop beautiful interactive, animated plots that embrace the unique capabilities of electronic publishing and support repoducibility.
* Create the best possible data graphics "out-of-the-box", maximizing data ink and minimizing chartjunk.
* Provide a clean, minimalist interface that scientists and engineers will love.""",
* Provide a clean, minimalist interface that scientists and engineers will love.
See the Toyplot documentation at http://toyplot.readthedocs.org, and the Toyplot sources at http://github.com/sandialabs/toyplot""",
maintainer = "Timothy M. Shead",
maintainer_email = "tshead@sandia.gov",
url = "http://github.com/sandialabs/toyplot",
version = "0.1.0",
url = "http://toyplot.readthedocs.org",
version = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", open("toyplot/__init__.py", "r").read(), re.M).group(1),
packages = find_packages(),
)

0 comments on commit df29217

Please sign in to comment.