-
Notifications
You must be signed in to change notification settings - Fork 0
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 #270 from chris48s/flit
poetry --> flit
- Loading branch information
Showing
12 changed files
with
95 additions
and
1,158 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[flake8] | ||
ignore = E501 | ||
exclude = geometry_to_spatialite/__init__.py | ||
ignore = E501, W503 | ||
exclude = .venv, geometry_to_spatialite/__init__.py |
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 |
---|---|---|
|
@@ -2,6 +2,9 @@ | |
__pycache__/ | ||
*.pyc | ||
|
||
# venv | ||
.venv | ||
|
||
# build artifacts | ||
build/ | ||
dist/ | ||
|
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
File renamed without changes.
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,39 +1,51 @@ | ||
SHELL := /bin/bash | ||
.PHONY: help build-docs deploy-docs format install lint test build release | ||
.PHONY: help build-docs deploy-docs build format install lint test release venv | ||
|
||
help: | ||
@grep '^\.PHONY' Makefile | cut -d' ' -f2- | tr ' ' '\n' | ||
|
||
venv: | ||
python3 -m venv .venv | ||
|
||
build-docs: | ||
cd docs && poetry run make clean html | ||
source .venv/bin/activate && \ | ||
cd docs && make clean html | ||
|
||
deploy-docs: | ||
make build-docs | ||
poetry run ghp-import -n -p docs/build/html/ | ||
source .venv/bin/activate && \ | ||
make build-docs && | ||
ghp-import -n -p docs/build/html/ | ||
|
||
format: | ||
poetry run isort . | ||
poetry run black . | ||
source .venv/bin/activate && \ | ||
isort . && \ | ||
black . | ||
|
||
install: | ||
poetry install | ||
python3 -m venv .venv | ||
source .venv/bin/activate && \ | ||
pip install -e .[dev] | ||
|
||
lint: | ||
poetry run isort -c --diff . | ||
poetry run black --check . | ||
poetry run flake8 . | ||
source .venv/bin/activate && \ | ||
isort -c --diff . && \ | ||
black --check . && \ | ||
flake8 . | ||
|
||
test: | ||
poetry run coverage run --source=geometry_to_spatialite ./run_tests.py | ||
poetry run coverage xml | ||
source .venv/bin/activate && \ | ||
coverage run --source=geometry_to_spatialite ./run_tests.py && \ | ||
coverage xml | ||
|
||
build: | ||
poetry build | ||
source .venv/bin/activate && \ | ||
flit build | ||
|
||
release: | ||
# usage: `make release version=0.0.0` | ||
make test | ||
@echo "" | ||
make lint | ||
@echo "" | ||
source .venv/bin/activate && \ | ||
./release.sh "$(version)" |
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 @@ | ||
__version__ = "0.4.0" |
This file was deleted.
Oops, something went wrong.
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,33 +1,52 @@ | ||
[tool.poetry] | ||
[build-system] | ||
requires = ["flit_core >=3.2,<4"] | ||
build-backend = "flit_core.buildapi" | ||
|
||
[project] | ||
name = "geometry-to-spatialite" | ||
version = "0.4.0" | ||
authors = [{name = "chris48s"}] | ||
description = "Import geographic and spatial data from files into a SpatiaLite DB" | ||
authors = ["chris48s"] | ||
license = "MIT" | ||
readme = "README.md" | ||
repository = "https://github.com/chris48s/geometry-to-spatialite" | ||
homepage = "https://github.com/chris48s/geometry-to-spatialite" | ||
documentation = "https://chris48s.github.io/geometry-to-spatialite" | ||
license = {file = "LICENSE"} | ||
classifiers = [ | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
] | ||
dynamic = ["version"] | ||
requires-python = ">=3.8" | ||
dependencies = [ | ||
"sqlite-utils>=2.1,<4.0", | ||
"Shapely>=1.6.4,<3.0.0", | ||
"pyshp>=2.1.0,<3.0.0" | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.8" | ||
sqlite-utils = ">=2.1,<4.0" | ||
Shapely = ">=1.6.4,<3.0.0" | ||
pyshp = "^2.1.0" | ||
[project.optional-dependencies] | ||
dev = [ | ||
"flit==3.9.0", | ||
"isort==5.12.0", | ||
"flake8==6.1.0", | ||
"black==23.9.1", | ||
"coverage==7.3.1", | ||
"sphinx==7.1.2", | ||
"sphinx_rtd_theme==1.3.0", | ||
"myst-parser==2.0.0", | ||
"ghp-import==2.1.0" | ||
] | ||
|
||
[tool.poetry.dev-dependencies] | ||
isort = "^5.12" | ||
flake8 = "^5.0.4" | ||
black = "==23.9.1" | ||
coverage = "^7.3" | ||
sphinx = "^7.1.2" | ||
sphinx_rtd_theme = "^1.3.0" | ||
myst-parser = "^2.0.0" | ||
ghp-import = "^2.1.0" | ||
[project.urls] | ||
Home = "https://github.com/chris48s/geometry-to-spatialite" | ||
Source = "https://github.com/chris48s/geometry-to-spatialite" | ||
Documentation = "https://chris48s.github.io/geometry-to-spatialite" | ||
|
||
[tool.poetry.scripts] | ||
[tool.flit.module] | ||
name = "geometry_to_spatialite" | ||
|
||
[project.scripts] | ||
geojson-to-spatialite = 'geometry_to_spatialite.geojson:main' | ||
shapefile-to-spatialite = 'geometry_to_spatialite.shapefile:main' | ||
[build-system] | ||
requires = ["poetry>=1.0.2"] | ||
build-backend = "poetry.masonry.api" |
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