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
|
from setuptools import find_packages, setup
with open("README.md") as f:
readme = f.read()
__version__ = None
# Get __version without importing
with open("laspy/__init__.py", "r") as fp:
# get and exec just the line which looks like "__version__ = '0.9.4'"
exec(next(line for line in fp if "__version__" in line))
setup(
name="laspy",
version=__version__,
description="Native Python ASPRS LAS read/write library",
license="BSD",
keywords="gis lidar las",
author="Grant Brown, Thomas Montaigu",
author_email="grant.brown73@gmail.com, thomas.montaigu@laposte.net",
url="https://github.com/laspy/laspy",
long_description=readme,
long_description_content_type="text/markdown",
packages=find_packages(exclude=("tests", "tests.cli")),
python_requires=">=3.8",
install_requires=["numpy"],
extras_require={
"dev": [
"pytest",
"coverage",
"sphinx",
"sphinx-rtd-theme",
"nox",
"black==22.3.0",
"pytest-benchmark",
"m2r2",
"rangehttpserver",
"isort==5.11.5",
],
"lazrs": ["lazrs>=0.6.0, < 0.7.0"],
"laszip": ["laszip >= 0.2.1, < 0.3.0"],
"pyproj": ["pyproj"],
"requests": ["requests"],
"cli": [
"typer[all] >= 0.8.0 ",
"rich >= 10.11.0",
],
},
entry_points={
},
include_package_data=True,
zip_safe=False,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: GIS",
],
)
|