-
Notifications
You must be signed in to change notification settings - Fork 3
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 #212 from atlanticwave-sdx/206.pyproject-toml
Use `pyproject.toml`
- Loading branch information
Showing
11 changed files
with
86 additions
and
68 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,2 @@ | ||
.git/ | ||
venv*/ | ||
.tox/ |
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 |
---|---|---|
|
@@ -39,10 +39,12 @@ jobs: | |
run: | | ||
python -m isort --check --profile black . | ||
- name: Lint sdx-controller Dockerfile | ||
uses: hadolint/[email protected] | ||
with: | ||
dockerfile: Dockerfile | ||
# # Disable hadolint check until | ||
# # https://github.com/hadolint/hadolint/issues/943 is solved. | ||
# - name: Lint sdx-controller Dockerfile | ||
# uses: hadolint/[email protected] | ||
# with: | ||
# dockerfile: Dockerfile | ||
|
||
- name: Lint bapm-server Dockerfile | ||
uses: hadolint/[email protected] | ||
|
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 |
---|---|---|
|
@@ -136,3 +136,4 @@ dmypy.json | |
/*.sqlite3-wal | ||
|
||
/db/* | ||
/swagger_server/_version.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,71 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools >= 61.0", | ||
# "setuptools-scm >= 6.2", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "sdx-controller" | ||
description = "AtlanticWave-SDX project's main controller" | ||
dynamic = [ "version" ] | ||
authors = [ | ||
{ name = "Yufeng Xin", email = "[email protected]" }, | ||
{ name = "Cong Wang", email = "[email protected]" }, | ||
{ name = "Sajith Sasidharan", email = "[email protected]" }, | ||
] | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
license = {file = "LICENSE"} | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent" | ||
] | ||
dependencies = [ | ||
"jsonschema == 3.2.0", | ||
"connexion[swagger-ui] >= 2.14.1", | ||
"python_dateutil >= 2.8", | ||
"setuptools >= 21.0.0", | ||
"pika >= 1.2.0", | ||
"dataset", | ||
"pymongo > 3.0", | ||
"sdx-pce @ git+https://github.com/atlanticwave-sdx/[email protected]", | ||
] | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
"flask_testing == 0.8.1", | ||
"coverage >= 4.0.3", | ||
"networkx == 2.8.8", | ||
"pytest >= 7.2.0", | ||
"pytest-cov >= 4.0.0", | ||
"pluggy >= 0.3.1", | ||
"py >= 1.4.31", | ||
"randomize >= 0.13", | ||
] | ||
lint = [ | ||
"black == 23.*", | ||
"isort == 5.*", | ||
] | ||
|
||
[options.packages.find] | ||
where = "swagger_server" | ||
|
||
[tool.setuptools] | ||
packages = ["swagger_server", "bapm_server"] | ||
|
||
[tool.setuptools_scm] | ||
# Write version info collected from git to a file. This happens when | ||
# we run `python -m build`. | ||
write_to = "swagger_server/_version.py" | ||
|
||
[tool.black] | ||
include = '\.py?$' | ||
|
||
[tool.isort] | ||
profile = "black" | ||
src_paths = ["setup.py", "swagger_server", "bapm_server"] | ||
src_paths = ["swagger_server", "bapm_server"] | ||
|
||
[tool.coverage.run] | ||
branch = true | ||
|
This file was deleted.
Oops, something went wrong.
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