-
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 #56 from codeforjapan/feature/issue-53-divide-pyth…
…on-packages python package の構成変更 (api, common, etl)
- Loading branch information
Showing
38 changed files
with
747 additions
and
184 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
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
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
birdxplorer/routers/system.py → api/birdxplorer_api/routers/system.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
[build-system] | ||
build-backend = "flit_core.buildapi" | ||
requires = ["flit_core >=3.8.0,<4"] | ||
|
||
|
||
[project] | ||
name = "birdxplorer_api" | ||
description = "The Web API for BirdXplorer project." | ||
authors = [ | ||
{name = "osoken"}, | ||
] | ||
dynamic = [ | ||
"version", | ||
] | ||
readme = "../README.md" | ||
license = {file = "../LICENSE"} | ||
requires-python = ">=3.10" | ||
|
||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
"Natural Language :: Japanese", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.10", | ||
] | ||
|
||
dependencies = [ | ||
"birdxplorer_common @ git+https://github.com/codeforjapan/BirdXplorer.git@feature/issue-53-divide-python-packages#subdirectory=common", | ||
"fastapi", | ||
"python-dateutil", | ||
"pydantic", | ||
"starlette", | ||
"python-dotenv", | ||
] | ||
|
||
[project.urls] | ||
Source = "https://github.com/codeforjapan/BirdXplorer" | ||
|
||
[tool.setuptools] | ||
packages=["birdxplorer"] | ||
|
||
[tool.setuptools.package-data] | ||
birdxplorer = ["py.typed"] | ||
|
||
[project.optional-dependencies] | ||
dev=[ | ||
"black", | ||
"flake8", | ||
"pyproject-flake8", | ||
"pytest", | ||
"mypy", | ||
"tox", | ||
"isort", | ||
"pytest-mock", | ||
"pytest-cov", | ||
"freezegun", | ||
"types-python-dateutil", | ||
"psycopg2-binary", | ||
"factory_boy", | ||
"uvicorn", | ||
"polyfactory", | ||
"httpx", | ||
] | ||
prod=[ | ||
] | ||
|
||
[tool.pytest.ini_options] | ||
addopts = ["-sv", "--doctest-modules", "--ignore-glob=birdxplorer_api/main.py", "--cov=birdxplorer_api", "--cov-report=xml", "--cov-report=term-missing"] | ||
testpaths = ["tests", "birdxplorer_api"] | ||
filterwarnings = [ | ||
"error", | ||
"ignore:The \\'app\\' shortcut is now deprecated. Use the explicit style \\'transport=WSGITransport\\(app=\\.\\.\\.\\)\\' instead\\.", | ||
] | ||
|
||
[tool.black] | ||
line-length = 120 | ||
target-version = ['py310'] | ||
|
||
[tool.flake8] | ||
max-line-length = 120 | ||
extend-ignore = "E203,E701" | ||
|
||
[tool.mypy] | ||
python_version = "3.10" | ||
warn_return_any = true | ||
warn_unused_configs = true | ||
plugins = ["pydantic.mypy"] | ||
|
||
[tool.pydantic.mypy] | ||
init_typed = true | ||
|
||
[tool.isort] | ||
profile = "black" | ||
known_first_party = "birdxplorer_api,birdxplorer_common,birdxplorer_etl" | ||
|
||
[tool.tox] | ||
legacy_tox_ini = """ | ||
[tox] | ||
skipsdist = true | ||
envlist = py310 | ||
[testenv] | ||
setenv = | ||
VIRTUALENV_PIP = 24.0 | ||
deps = | ||
-e .[dev] | ||
commands = | ||
black birdxplorer_api tests | ||
isort birdxplorer_api tests | ||
pytest | ||
pflake8 birdxplorer_api/ tests/ | ||
mypy birdxplorer_api --strict | ||
mypy tests --strict | ||
""" |
Oops, something went wrong.