File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 99import re
1010import time
1111from xml .etree import ElementTree
12+ from pkg_resources import get_distribution , DistributionNotFound
1213
1314import requests
1415
5556
5657__author__ = 'Daniel Lindsley, Joseph Kocherhans, Jacob Kaplan-Moss'
5758__all__ = ['Solr' ]
58- __version__ = (3 , 5 , 0 )
5959
60+ try :
61+ __version__ = get_distribution (__name__ ).version
62+ except DistributionNotFound :
63+ __version__ = (0 , 0 , 'dev0' )
6064
6165def get_version ():
6266 return "%s.%s.%s" % __version__ [:3 ]
Original file line number Diff line number Diff line change 66
77setup (
88 name = "pysolr" ,
9- version = "3.6.0" ,
9+ use_scm_version = True ,
1010 description = "Lightweight python wrapper for Apache Solr." ,
1111 author = 'Daniel Lindsley' ,
1212 author_email = 'daniel@toastdriven.com' ,
3333 'solrcloud' : [
3434 'kazoo==2.2'
3535 ]
36- }
36+ },
37+ setup_requires = ['setuptools_scm' ],
3738)
You can’t perform that action at this time.
0 commit comments