Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor to ease usage and packaging #32

Merged
merged 10 commits into from
Aug 30, 2024
Merged

Conversation

vincentsarago
Copy link
Collaborator

This PR does (a lot):

  • update CI code
  • change the overall structure of the python package
  • switch from pgstac to postgres docker image
  • update the python code to support both API and APP (FastAPI) usage
  • add more configuration option for the database connection (for the APP)
  • update test suite to use postgresql pytest fixture

Copy link
Collaborator

@zacdezgeo zacdezgeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Vincent! Seems like a few minor details to finish up that are more superficial. Really appreciate your help. It was cool to learn about a lot of best practices by you adapting the initial design!

.github/workflows/ci.yml Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
docker-compose.yaml Show resolved Hide resolved
space2stats_api/src/pyproject.toml Outdated Show resolved Hide resolved
space2stats_api/src/space2stats/__init__.py Show resolved Hide resolved
space2stats_api/src/space2stats/__main__.py Show resolved Hide resolved
space2stats_api/src/space2stats/app.py Show resolved Hide resolved
space2stats_api/src/space2stats/db.py Show resolved Hide resolved
space2stats_api/src/space2stats/handler.py Show resolved Hide resolved
space2stats_api/src/tests/test_api.py Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
Use poetry for dependency management given lambda deployment
@zacdezgeo zacdezgeo self-requested a review August 30, 2024 14:51
@vincentsarago vincentsarago marked this pull request as ready for review August 30, 2024 16:15
@zacdezgeo zacdezgeo merged commit 4b51bb4 into main Aug 30, 2024
2 checks passed
@zacdezgeo zacdezgeo deleted the refactor/python-packaging branch August 30, 2024 23:06
@zacdezgeo zacdezgeo mentioned this pull request Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants