Skip to content

Commit

Permalink
Merge branch 'mr/roche/pyproject_toml' into 'master'
Browse files Browse the repository at this point in the history
Switch to pyproject.toml

See merge request it/e3-testsuite!25
  • Loading branch information
Nikokrock committed Mar 20, 2024
2 parents d608930 + 954cd34 commit 8a25516
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 84 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ include VERSION
include *.md
include LICENSE
include tox.ini
include src/e3/py.typed
recursive-include doc *.bat
recursive-include doc *.py
recursive-include doc *.rst
Expand Down
34 changes: 0 additions & 34 deletions mypy.ini

This file was deleted.

58 changes: 58 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "e3-testsuite"
authors = [{name="AdaCore's IT Team"}]
dynamic = ["version"]
description = "E3 testsuite"
dependencies = ["e3-core"]
readme = "README.md"
license = {text = "GPLv3"}
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3.9",
"Topic :: Software Development :: Build Tools",
]

[project.scripts]
e3-find-skipped-tests = "e3.testsuite.find_skipped_tests:main"
e3-convert-xunit = "e3.testsuite.report.xunit:convert_main"
e3-opt-parser = "e3.testsuite.optfileparser:main"
e3-run-test-fragment = "e3.testsuite.fragment:run_fragment"
e3-test = "e3.testsuite.main:main"
e3-testsuite-report = "e3.testsuite.report.display:main"

[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

[[tool.mypy.overrides]]
module = [
"coverage.*",
"botocore.*",
"boto3.*",
"requests.*",
"tqdm.*"
]
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = [
"e3.testsuite.*"
]
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
45 changes: 0 additions & 45 deletions setup.py

This file was deleted.

3 changes: 0 additions & 3 deletions src/e3/__init__.py

This file was deleted.

Empty file added src/e3/py.typed
Empty file.
7 changes: 5 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[tox]
envlist = py39-cov,py310,checkstyle
envlist = py311-cov,checkstyle
isolated_build = True

[testenv]
deps =
Expand All @@ -15,7 +16,7 @@ passenv = APPVEYOR* , TRAVIS , TRAVIS_* , CI
# Run testsuite with coverage when '-cov' is in the env name
commands=
{envpython} {toxinidir}/tests/gen-cov-config.py {toxinidir}/.coveragerc
py.test --ignore=build -v \
pytest --ignore=build -v \
ci: --ci \
cov: --cov e3.testsuite --cov-report= --cov-fail-under=0 \
[]
Expand All @@ -34,6 +35,8 @@ deps =
flake8-docstrings
flake8-rst-docstrings
mypy==1.1.1
types-PyYAML
types-setuptools
commands =
black -q --diff --line-length 79 --check \
{envsitepackagesdir}/e3/testsuite \
Expand Down

0 comments on commit 8a25516

Please sign in to comment.