Skip to content

Commit

Permalink
Use pyproject.toml instead of old setup.py
Browse files Browse the repository at this point in the history
Remove src/e3/__init__.py to use:
    PEP 420 – Implicit Namespace Packages
    See: https://peps.python.org/pep-0420/

Update tox.ini to run into an isolated build and add `ld` as test
dependency.
  • Loading branch information
leocardao committed Aug 1, 2023
1 parent 229302d commit d5a99bb
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 92 deletions.
66 changes: 66 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "e3-core"
version = "22.4"
description = "E3 core. Tools and library for building and testing software"
requires-python = ">=3.9"
license = {text = "GPLv3"}
authors = [{name = "AdaCore", email = "[email protected]"}]
keywords = ["AdaCore", "Server", "Production", "SSC", "Supply chain", "Build"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"License :: AdaCore internal",
"Topic :: Software Development :: Build Tool",
]
dependencies = [
"colorama",
"pyyaml",
"python-dateutil",
"requests",
"requests_toolbelt",
"tqdm",
"stevedore>1.20.0",
"setuptools",
]

[project.optional-dependencies]
config = ["tomlkit", "typeguard<3.0.0"]
test = ["mock", "pytest-html", "pytest-socket", "ansi2html", "httpretty"]

[project.urls]
repository = "https://github.com/AdaCore/e3-core"

[tools.setuptool.package_data]
e3 = ["py.typed", "os/data/rlimit-*"]

[project.entry-points."e3.anod.sandbox.sandbox_action"]
exec = "e3.anod.sandbox.action:SandBoxExec"
create = "e3.anod.sandbox.action:SandBoxCreate"
show-config = "e3.anod.sandbox.action:SandBoxShowConfiguration"
migrate = "e3.anod.sandbox.migrate:SandBoxMigrate"

[project.entry-points."e3.event.handler"]
smtp = "e3.event.handler.smtp:SMTPHandler"
logging = "e3.event.handler.logging:LoggingHandler"
file = "e3.event.handler.file:FileHandler"
s3 = "e3.event.handler.s3:S3Handler"

[project.entry-points."e3.store"]
http-simple-store = "e3.store.backends.http_simple_store:HTTPSimpleStore"

[project.entry-points."e3.store.cache.backend"]
file-cache = "e3.store.cache.backends.filecache:FileCache"

[project.entry-points.sandbox_scripts]
anod = "e3.anod.sandbox.scripts:anod"

[project.entry-points.console_scripts]
e3 = "e3.sys:main"
e3-sandbox = "e3.anod.sandbox.main:main"
e3-pypi-closure = "e3.python.pypiscript:main"
89 changes: 0 additions & 89 deletions setup.py

This file was deleted.

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

This file was deleted.

2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
[tox]
envlist = py39-cov-xdist
isolated_build = True

[testenv]
deps =
ld
xdist: pytest-xdist[psutil]
# ??? needs to be added as a dep of e3-core
requests-cache
Expand Down

0 comments on commit d5a99bb

Please sign in to comment.