-
Notifications
You must be signed in to change notification settings - Fork 1
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 #1 from GeodetischeInfrastructuur/restructure-repo
restructure repo into Python package
- Loading branch information
Showing
9 changed files
with
116 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Python: FastAPI", | ||
"type": "python", | ||
"request": "launch", | ||
"module": "uvicorn", | ||
"args": [ | ||
"coordinates_transformation_api.main:start", | ||
"--reload" | ||
], | ||
"jinja": true, | ||
"justMyCode": true | ||
} | ||
] | ||
} |
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,14 @@ | ||
FROM python:3.11.4-slim-bullseye | ||
LABEL maintainer="NSGI <[email protected]>" | ||
|
||
COPY . /src | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
moreutils && \ | ||
pip install --upgrade setuptools && \ | ||
pip install /src | ||
|
||
# TODO: investigate how to properly setup Dockerfile for production use | ||
|
||
ENTRYPOINT [ "ct-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
Empty file.
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
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,3 @@ | ||
[mypy] | ||
warn_return_any = True | ||
warn_unused_configs = True |
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,42 @@ | ||
[project] | ||
name = "coordinates-transformation-api" | ||
description = "Coordinates transformation API of the Nederlandse Samenwerking Geodetische Infrastructuur (NSGI)" | ||
keywords = ["NSGI", "pyproj", "fastapi", "coordinates", "geo"] | ||
license = {text = "MIT"} | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.11", | ||
] | ||
readme = { file = "./README.md", content-type = "text/markdown" } | ||
dependencies = [ | ||
"fastapi == 0.100.1", | ||
"uvicorn == 0.23.2", | ||
"pyyaml == 5.3.1", | ||
] | ||
requires-python = ">=3.11.4" | ||
dynamic = ["version"] | ||
|
||
[project.optional-dependencies] | ||
dev = ["black", "mypy", "autoflake", "isort"] | ||
|
||
[build-system] | ||
build-backend = "setuptools.build_meta" | ||
requires = [ | ||
"setuptools>=45", | ||
"setuptools-git-versioning==1.13.1", | ||
"wheel==0.38.4" | ||
] | ||
|
||
[project.scripts] | ||
ct-api = "coordinates_transformation_api.main:start" | ||
|
||
[tool.setuptools-git-versioning] | ||
enabled = true | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["coordinates_transformation_api*"] # package names should match these glob patterns (["*"] by default) | ||
exclude = [] # exclude packages matching these glob patterns (empty by default) | ||
|
||
[tool.setuptools.package-data] | ||
"coordinates_transformation_api.assets" = ["*"] |
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,3 @@ | ||
from setuptools import setup | ||
|
||
setup() |