Commit 614bd4cb authored by Christian Ledermann's avatar Christian Ledermann

Merge pull request #24 from cleder/issue-23

Use pkg_resources to get the version from setup.py
parents f98d75c3 df3ada34
......@@ -25,6 +25,7 @@ google maps rather than to give you all functionality that KML on google earth
provides.
"""
from pkg_resources import get_distribution, DistributionNotFound
from .kml import KML, Document, Folder, Placemark
from .kml import TimeSpan, TimeStamp
......@@ -37,7 +38,10 @@ from .styles import LabelStyle, BalloonStyle
from .atom import Link, Author, Contributor
__version__ = '0.10.dev'
try:
__version__ = get_distribution('fastkml').version
except DistributionNotFound:
__version__ = 'dev'
__all__ = [
'KML', 'Document', 'Folder', 'Placemark',
......
......@@ -3,8 +3,6 @@ from setuptools.command.test import test as TestCommand
import sys
import os
import fastkml
class PyTest(TestCommand):
def finalize_options(self):
......@@ -21,7 +19,7 @@ class PyTest(TestCommand):
setup(
name='fastkml',
version=fastkml.__version__,
version='0.10.dev',
description="Fast KML processing in python",
long_description=(
open("README.rst").read() + "\n" +
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment