File tree Expand file tree Collapse file tree 4 files changed +11
-75
lines changed
Expand file tree Collapse file tree 4 files changed +11
-75
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 6666# built documents.
6767#
6868# The short X.Y version.
69- version = u'0.1.5'
69+ version = geometric_features . __version__
7070# The full version, including alpha/beta/rc tags.
71- release = u'0.1.5'
71+ release = geometric_features . __version__
7272
7373# The language for content autogenerated by Sphinx. Refer to documentation
7474# for a list of supported languages.
Original file line number Diff line number Diff line change 66from geometric_features .feature_collection import FeatureCollection , \
77 read_feature_collection
88
9- __version_info__ = (0 , 1 , 5 )
9+ __version_info__ = (0 , 1 , 6 )
1010__version__ = '.' .join (str (vi ) for vi in __version_info__ )
Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22
3+ import os
4+ import re
35from setuptools import setup , find_packages
46
5- version = '0.1.5'
7+ here = os .path .abspath (os .path .dirname (__file__ ))
8+ with open (os .path .join (here , 'geometric_features' , '__init__.py' )) as f :
9+ init_file = f .read ()
10+
11+ version = re .search (r'{}\s*=\s*[(]([^)]*)[)]' .format ('__version_info__' ),
12+ init_file ).group (1 ).replace (', ' , '.' )
613
714setup (name = 'geometric_features' ,
815 version = version ,
You can’t perform that action at this time.
0 commit comments