-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from mwtoews/pyproject-toml
Move project metadata to pyproject.toml, modify build scripts
- Loading branch information
Showing
6 changed files
with
78 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
setuptools | ||
wheel | ||
build | ||
twine | ||
readme-renderer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools >=61", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "geomet" | ||
maintainers = [ | ||
{name = "Lars Butler", email = "lars.butler@gmail.com"}, | ||
] | ||
description = "Pure Python conversion library for common geospatial data formats" | ||
requires-python = ">=3.7" | ||
keywords = [ | ||
"esri", | ||
"ewkb", | ||
"ewkt", | ||
"geojson", | ||
"geopackage", | ||
"geospatial", | ||
"gis", | ||
"spatial", | ||
"wkb", | ||
"wkt", | ||
] | ||
license = {text = "Apache-2.0"} | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Education", | ||
"Intended Audience :: Science/Research", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Topic :: Scientific/Engineering :: GIS", | ||
] | ||
dependencies = [ | ||
"click", | ||
"six", | ||
] | ||
dynamic = ["version"] | ||
|
||
[project.readme] | ||
text = """\ | ||
GeoMet | ||
Convert GeoJSON to WKT/WKB (Well-Known Text/Binary), and vice versa. | ||
""" | ||
content-type = "text/x-rst" | ||
|
||
[project.scripts] | ||
geomet = "geomet.tool:cli" | ||
|
||
[project.urls] | ||
Repository = "https://github.com/geomet/geomet" | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "geomet.__init__.__version__"} | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["geomet", "geomet.*"] | ||
exclude = ["geomet.tests", "geomet.tests.*"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,5 @@ | ||
""" | ||
GeoMet | ||
Convert GeoJSON to WKT/WKB (Well-Known Text/Binary), and vice versa. | ||
""" | ||
|
||
import re | ||
import sys | ||
|
||
from setuptools import find_packages | ||
from setuptools import setup | ||
|
||
|
||
def get_version(): | ||
version_re = r"^__version__\s+=\s+['\"]([^'\"]*)['\"]" | ||
version = None | ||
|
||
for line in open('geomet/__init__.py', 'r'): | ||
version_match = re.search(version_re, line, re.M) | ||
if version_match: | ||
version = version_match.group(1) | ||
break | ||
else: | ||
sys.exit('__version__ variable not found in geomet/__init__.py') | ||
|
||
return version | ||
|
||
VERSION = get_version() | ||
|
||
setup( | ||
name='geomet', | ||
version=VERSION, | ||
maintainer='Lars Butler', | ||
maintainer_email='lars.butler@gmail.com', | ||
url='https://github.com/geomet/geomet', | ||
description='Conversion library for common geospatial data formats (GeoJSON/WKT/EWKT/WKB/EWKB/GeoPackage/EsriJson)', | ||
long_description=__doc__, | ||
platforms=['any'], | ||
packages=find_packages(exclude=['geomet.tests', 'geomet.tests.*']), | ||
entry_points={'console_scripts': ['geomet=geomet.tool:cli']}, | ||
license='Apache 2.0', | ||
keywords=[ | ||
'esri', | ||
'ewkb', | ||
'ewkt', | ||
'geojson', | ||
'geopackage', | ||
'geospatial', | ||
'gis', | ||
'spatial', | ||
'wkb', | ||
'wkt', | ||
], | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Intended Audience :: Developers', | ||
'Intended Audience :: Education', | ||
'Intended Audience :: Science/Research', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Topic :: Scientific/Engineering :: GIS', | ||
], | ||
zip_safe=False, | ||
install_requires=['click', 'six'], | ||
python_requires=">=3.7, <4", | ||
) | ||
# See pyproject.toml for project metadata | ||
setup(name='geomet') |