Skip to content

Commit 4ed2c82

Browse files
committed
using versioneer
1 parent f5074c0 commit 4ed2c82

File tree

7 files changed

+2388
-68
lines changed

7 files changed

+2388
-68
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ text=auto
2020
*.PDF diff=astextplain
2121
*.rtf diff=astextplain
2222
*.RTF diff=astextplain
23+
wxmplot/_version.py export-subst

MANIFEST.in

+2
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ recursive-include examples *
44
recursive-exclude examples/*.tiff
55
recursive-include doc *
66
recursive-exclude doc/_build *
7+
include versioneer.py
8+
include wxmplot/_version.py

setup.cfg

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[versioneer]
2+
VCS = git
3+
style = pep440
4+
versionfile_source = wxmplot/_version.py
5+
versionfile_build = wxmplot/_version.py
6+
tag_prefix =
7+
parentdir_prefix = wxmplot-

setup.py

+13-10
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,31 @@
22

33
from setuptools import setup
44

5-
try:
6-
from lib import __version__ as version
7-
except:
8-
version = 'unknown'
5+
import versioneer
96

10-
long_desc = '''A library for wxPython based on matplotlib for high-level,
11-
richly featured 2-D plotting and displaying 3-D data as intensity maps and
12-
contour plots. Easy-to-use wx Panels and Frame provide high-quality plots
13-
and allow some user interaction and customization of the plots. '''
7+
long_desc = """
8+
WXMPlot provides advanced wxPython widgets for plotting and image
9+
display based on matplotlib. The plotting and image display wx Panels
10+
and Frames it provides are easy for the programmer to include and work
11+
with from wx programs. More importantly, the widgets created by WXMPlot
12+
give the end user a flexible set of tools for interacting with their
13+
data and customizing the plots and displays. WXMPlot panels are more
14+
interactive than typical displayss from matplotlib's pyplot module.
15+
"""
1416

1517
install_reqs = ['six', 'matplotlib', 'numpy', 'wx']
1618

1719
setup(name = 'wxmplot',
18-
version = version,
20+
version=versioneer.get_version(),
21+
cmdclass=versioneer.get_cmdclass(),
1922
author = 'Matthew Newville',
2023
author_email = '[email protected]',
2124
url = 'http://newville.github.io/wxmplot/',
2225
download_url = 'http://github.com/newville/wxmplot/',
2326
requires = install_reqs,
2427
install_requires = install_reqs,
2528
license = 'OSI Approved :: MIT License',
26-
description = 'A library for plotting in wxPython using matplotlib',
29+
description = 'wxPython plotting tools using matplotlib',
2730
long_description = long_desc,
2831
platforms = ('Windows', 'Linux', 'Mac OS X'),
2932
classifiers=['Intended Audience :: Science/Research',

0 commit comments

Comments
 (0)