forked from omanges/turfpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
68 lines (59 loc) · 2.2 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
"""Project setup file."""
import sys
from codecs import open
from os import path
from setuptools import find_packages, setup
needs_pytest = {"pytest", "test", "ptr"}.intersection(sys.argv)
pytest_runner = ["pytest-runner"] if needs_pytest else []
here = path.abspath(path.dirname(__file__))
# get the core dependencies and installs
with open(path.join(here, "requirements.txt"), encoding="utf-8") as f:
all_reqs = f.read().split("\n")
install_requires = [x.strip() for x in all_reqs if "git+" not in x]
packages = find_packages(exclude=["docs", "tests"])
version = {}
with open('{}/__version__.py'.format(packages[0])) as f:
exec(f.read(), version)
download_url = (
"/~https://github.com/omanges/turfpy"
"/archive/" + version['__version__'] + ".zip"
)
# The directory containing this file
HERE = path.abspath(path.dirname(__file__))
# The text of the README file
with open(path.join(HERE, "README.md")) as fid:
README = fid.read()
setup(
name="turfpy",
version=version['__version__'],
description="A Python library for performing geospatial data analysis which reimplements turf.js.",
long_description=README,
long_description_content_type="text/markdown",
download_url=download_url,
license="MIT",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
],
project_urls={
"Documentation": "https://turfpy.readthedocs.io",
"Source": "/~https://github.com/omanges/turfpy"
},
packages=packages,
keywords="Python Library for Turf",
include_package_data=True,
author="Omkar Mestry, Sachin Kharude",
install_requires=install_requires,
author_email="om.m.mestry@gmail.com, sachinkharude10@gmail.com",
setup_requires=[] + pytest_runner,
tests_require=["pytest"],
py_modules=["turfpy"]
)