Skip to content

Commit

Permalink
Merge pull request #243 from Nikokrock/mr/roche/pyproject_toml
Browse files Browse the repository at this point in the history
Switch to pyproject.toml
  • Loading branch information
enzbang authored Mar 20, 2024
2 parents c0a0c28 + f49be2d commit 646fc2b
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 50 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ include *.yaml
include LICENSE
include VERSION
include tox.ini
include src/e3/py.typed
recursive-include tests *.py
recursive-include tests *.rc
65 changes: 65 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "e3-aws"
authors = [{name="AdaCore's IT Team"}]
dynamic = ["version"]
description = "E3 Cloud Formation Extensions"
dependencies = [
"boto3",
"botocore",
# Only require docker for linux as there is a known dependency issue
# with pywin32 on windows
"docker; platform_system=='Linux'",
"e3-core",
"pyyaml",
"troposphere"
]

[project.scripts]
e3-aws-assume-profile = "e3.aws:assume_profile_main"
e3-aws-assume-role = "e3.aws:assume_role_main"

[project.entry-points."e3.event.handler"]
s3-boto3 = "e3.aws.handler.s3:S3Handler"

[project.optional-dependencies]
test = [
"awscli",
"pytest",
"mock",
"requests_mock",
"httpretty",
"flask",
"moto[sts, dynamodb]"
]

[tool.setuptools.dynamic]
version = {file = "VERSION"}

[tool.mypy]
# Ensure mypy works with namespace in which there is no toplevel
# __init__.py. Explicit_package_bases means that that mypy_path
# will define which directory is the toplevel directory of the
# namespace.
mypy_path = "src"
namespace_packages = true
explicit_package_bases = true

disallow_untyped_calls = true
disallow_incomplete_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unreachable = true

[[tool.mypy.overrides]]
module = [
"coverage.*",
"botocore.*",
"boto3.*",
"requests.*",
]
ignore_missing_imports = true
49 changes: 0 additions & 49 deletions setup.py

This file was deleted.

1 change: 0 additions & 1 deletion src/e3/__init__.py

This file was deleted.

File renamed without changes.
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[tox]
envlist = py311-cov
isolated_build = True

[testenv]
deps =
Expand Down

0 comments on commit 646fc2b

Please sign in to comment.