-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
143 lines (122 loc) · 3.78 KB
/
Copy pathsetup.py
File metadata and controls
143 lines (122 loc) · 3.78 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
"""
Setup script for svg_cave_mapper package.
This setup.py is maintained for backward compatibility.
For modern installations, use pyproject.toml with:
pip install -e .
"""
from setuptools import setup, find_packages
from pathlib import Path
# Read the contents of README file
readme_file = Path(__file__).parent / 'README.md'
if readme_file.exists():
long_description = readme_file.read_text(encoding='utf-8')
else:
long_description = ''
# Read version from package
def get_version():
"""Extract version from package __init__.py"""
init_file = Path(__file__).parent / 'svg_cave_mapper' / '__init__.py'
if init_file.exists():
for line in init_file.read_text(encoding='utf-8').splitlines():
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
return '0.1.0'
setup(
# Basic metadata
name='svg-cave-mapper',
version=get_version(),
author='Pedro Fazenda',
author_email='pedro.fazenda@isel.pt',
maintainer='Pedro Fazenda',
maintainer_email='pedro.fazenda@isel.pt',
# Description
description='Convert SVG cave maps to GIS formats',
long_description=long_description,
long_description_content_type='text/markdown',
# URLs
url='https://github.com/pfazenda/svg-cave-mapper',
project_urls={
'Bug Tracker': 'https://github.com/pfazenda/svg-cave-mapper/issues',
'Documentation': 'https://github.com/pfazenda/svg-cave-mapper#readme',
'Source Code': 'https://github.com/pfazenda/svg-cave-mapper',
},
# Package discovery
packages=find_packages(exclude=['tests', 'tests.*', 'examples', 'docs']),
package_data={
'svg_cave_mapper': ['py.typed'],
},
include_package_data=True,
# Requirements
python_requires='>=3.9',
install_requires=[
'numpy>=1.20.0',
'shapely>=2.0.0',
'geopandas>=0.10.0',
'pyproj>=3.0.0',
'svgpathtools>=1.5.0',
],
# Optional dependencies
extras_require={
'visualization': [
'matplotlib>=3.5.0',
],
'dev': [
'pytest>=7.0.0',
'pytest-cov>=3.0.0',
'black>=22.0.0',
'flake8>=4.0.0',
'mypy>=0.950',
'isort>=5.10.0',
],
'all': [
'matplotlib>=3.5.0',
],
},
# Entry points for command-line scripts
entry_points={
'console_scripts': [
'svg-cave-mapper=svg_cave_mapper.cli:main',
],
},
# Classifiers
classifiers=[
# Development status
'Development Status :: 3 - Alpha',
# Intended audience
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
# Topic
'Topic :: Scientific/Engineering :: GIS',
'Topic :: Software Development :: Libraries :: Python Modules',
# License
'License :: OSI Approved :: MIT License',
# Python versions
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3 :: Only',
# Operating systems
'Operating System :: OS Independent',
# Other
'Natural Language :: English',
'Typing :: Typed',
],
# Keywords
keywords=[
'svg',
'gis',
'cave',
'mapping',
'shapefile',
'cartography',
'speleology',
'geospatial',
],
# Zip safe
zip_safe=False,
# Platforms
platforms='any',
)