Skip to content

Commit df29217

Browse files
committed
Extract the setup.py software version from the source code, and update PKG-INFO.
1 parent c3b302c commit df29217

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

setup.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# rights in this software.
44

55
from setuptools import setup, find_packages
6+
import re
7+
68
setup(
79
name = "toyplot",
810
classifiers = [
@@ -15,17 +17,20 @@
1517
"License :: OSI Approved :: BSD License",
1618
"Natural Language :: English",
1719
"Programming Language :: Python :: 2",
20+
"Programming Language :: Python :: 3",
1821
"Topic :: Scientific/Engineering :: Visualization",
1922
],
2023
description = "A modern plotting toolkit supporting electronic publishing and reproducibility.",
2124
install_requires = ["numpy>=1.7", "colormath"],
2225
long_description = """Toyplot is the kid-sized plotting toolkit for Python with grownup-sized goals:
2326
* Develop beautiful interactive, animated plots that embrace the unique capabilities of electronic publishing and support repoducibility.
2427
* Create the best possible data graphics "out-of-the-box", maximizing data ink and minimizing chartjunk.
25-
* Provide a clean, minimalist interface that scientists and engineers will love.""",
28+
* Provide a clean, minimalist interface that scientists and engineers will love.
29+
30+
See the Toyplot documentation at http://toyplot.readthedocs.org, and the Toyplot sources at http://github.com/sandialabs/toyplot""",
2631
maintainer = "Timothy M. Shead",
2732
maintainer_email = "[email protected]",
28-
url = "http://github.com/sandialabs/toyplot",
29-
version = "0.1.0",
33+
url = "http://toyplot.readthedocs.org",
34+
version = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", open("toyplot/__init__.py", "r").read(), re.M).group(1),
3035
packages = find_packages(),
3136
)

0 commit comments

Comments
 (0)