Skip to content

Commit

Permalink
Merge pull request #254 from fiaas/pyproject.toml
Browse files Browse the repository at this point in the history
Move project definition including dependencies to pyproject.toml
  • Loading branch information
oyvindio authored Oct 7, 2024
2 parents f74d3ce + 258508a commit 1dbadf7
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 126 deletions.
86 changes: 86 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,88 @@
[build-system]
requires = [
"setuptools>=61.0",
"setuptools_scm", # required to include data files (defaults.yml and the html templates) in the python packages
"wheel",
]
build-backend = "setuptools.build_meta"

[tool.setuptools.packages.find]
exclude = ["tests*"]
namespaces = false # only consider directories with __init__.py as packages (old setuptools setup.py behaviour)

[project]
name = "fiaas-deploy-daemon"
version = "1.0.dev"
authors = [
{email = "[email protected]"},
]
description = "Deploy applications to Kubernetes"
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">= 3.12"
dependencies = [
"ConfigArgParse == 0.14.0",
"prometheus_client == 0.7.1",
"PyYAML == 5.1.2",
"pyaml == 19.4.1",
"pinject == 0.14.1",
"decorator < 5.0.0", # 5.0.0 and later drops py2 support (transitive dep from pinject)
"six >= 1.12.0",
"dnspython == 1.16.0",
"k8s == 0.27.3",
"appdirs == 1.4.3",
"requests-toolbelt == 0.10.1",
"backoff == 1.8.0",
"py27hash == 1.1.0",
"Flask == 3.0.0",
"flask-talisman >= 1.1.0",
"jinja2 >= 3.0.1",
"markupsafe >= 2.1.3",
"itsdangerous >= 2.1.2",
"werkzeug >= 3.0.1",
"blinker >= 1.7.0",
"urllib3 == 1.26.17",
"requests == 2.32.3",
"ipaddress == 1.0.22", # Required by requests for resolving IP address in SSL cert
]

[project.optional-dependencies]
# Tooling for development and running tests
dev = [
"flake8-print == 3.1.4",
"flake8-comprehensions == 1.4.1",
"pep8-naming == 0.11.1",
"flake8 == 7.0.0",
"pytest-xdist == 3.6.1",
"pytest-sugar == 1.0.0",
"pytest-html == 4.1.1",
"pytest-cov == 5.0.0",
"pytest-helpers-namespace == 2021.12.29",
"pytest == 8.2.0",
"requests-file == 1.4.3",
"callee == 0.3.1",
]
# CI builds use tox to run tests; tox will install the rest of the dependencies in its own virtualenvs
ci = [
"tox==4.14.2",
"virtualenv==20.26.0",
"black ~= 22.0",
]

[project.scripts]
fiaas-deploy-daemon = "fiaas_deploy_daemon:main"
fiaas-deploy-daemon-bootstrap = "fiaas_deploy_daemon.bootstrap:main"

[tool.black]
line-length = 120

[tool.coverage.html]
directory = "build/reports/coverage"

[tool.coverage.xml]
output = "build/reports/coverage.xml"

[tool.pytest.ini_options]
markers = [
"integration_test: integration/e2e tests which spin up a kind Kubernetes cluster. Requires docker. (deselect with '-m \"not integration_test\"')",
]
4 changes: 0 additions & 4 deletions pytest.ini

This file was deleted.

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
--index-url https://pypi.python.org/simple/

-e .[dev]
-e .[dev,ci]
10 changes: 0 additions & 10 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
[egg_info]
# PEP440 compliant developmental version tag https://peps.python.org/pep-0440/#developmental-releases
tag_build=.dev

[aliases]
test=pytest

[coverage:html]
directory=build/reports/coverage

[coverage:xml]
output=build/reports/coverage.xml

[flake8]
max-line-length=140
max-complexity=10
Expand Down
111 changes: 0 additions & 111 deletions setup.py

This file was deleted.

0 comments on commit 1dbadf7

Please sign in to comment.