-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (34 loc) · 1.49 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
import os
from io import open
from typing import Any, Dict
from setuptools import find_packages, setup
_PARENT_DIRECTORY = os.path.abspath(os.path.dirname(__file__))
_PACKAGE_NAME = "gadm"
_PACKAGE_VARS: Dict[str, Any] = {}
exec(open(os.path.join(_PARENT_DIRECTORY, _PACKAGE_NAME, "version.py")).read(), _PACKAGE_VARS)
_LONG_DESCRIPTION = open(os.path.join(_PARENT_DIRECTORY, "README.md"), encoding="utf-8").read()
_INSTALL_REQUIRES = open(os.path.join(_PARENT_DIRECTORY, "requirements.txt")).read().splitlines()
_INSTALL_REQUIRES = [line for line in _INSTALL_REQUIRES if line and not line.startswith("#")]
def main():
setup(
name=_PACKAGE_NAME,
version=_PACKAGE_VARS["__version__"],
description="package to get boundaries data from GADM, the database of global Administrative Areas.",
long_description=_LONG_DESCRIPTION,
long_description_content_type="text/markdown",
author="Ba Tran",
url="https://github.com/xmba15/gadm",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
packages=find_packages(exclude=["tests"]),
install_requires=_INSTALL_REQUIRES,
)
if __name__ == "__main__":
main()