This repository was archived by the owner on Aug 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
54 lines (44 loc) · 1.55 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
"""Setup for table2kml package."""
import codecs
import os.path
import setuptools
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), 'r') as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
with open("README.md", "r") as f:
long_description = f.read()
setuptools.setup(
name="kmldata",
version=get_version("kmldata/__init__.py"),
author="Daniel Komesu",
author_email="contact@dkko.me",
description="Transform tabular data into KML and vice-versa",
long_description=long_description,
long_description_content_type="text/markdown",
license="GNU GPLv3",
keywords="kml geospatial pandas GIS",
url="https://github.com/dankkom/kmldata",
packages=setuptools.find_packages(include=["kmldata"]),
install_requires=["lxml", "pykml", "pandas", "numpy"],
python_requires=">=3.6, <4",
package_data={
"kmldata": ["icons.json"],
},
include_package_data=True,
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Topic :: Utilities",
"Topic :: Scientific/Engineering :: GIS",
],
)