Improve package architecture

This commit is contained in:
Loic Guegan 2022-09-09 19:59:42 +02:00
parent 0e1e51d1ee
commit 54d88bce8f
5 changed files with 16 additions and 5 deletions

3
.gitignore vendored
View file

@ -1,4 +1,5 @@
__pycache__
esds.debug
dist
esds.egg*
esds.egg*
build

View file

@ -1,4 +1,5 @@
__all__ = ["simulator", "node", "plugins", "helpers", "rcode", "debug"]
__version__ = "0.0.1"
from esds.simulator import Simulator
from esds.rcode import RCode

View file

@ -1,5 +1,6 @@
import sys,time,json
import numpy as np
import esds
def serialize_int64(obj):
if isinstance(obj, np.int64):
@ -14,7 +15,8 @@ class Debug:
self.logs=list()
header={
"debug_version": 1,
"python_version" : sys.version,
"python_version": sys.version,
"esds_version": esds.__version__,
"simulation_started_at": simulator.startat,
"number_of_nodes": len(simulator.nodes),
"manual_breakpoints": breakpoints,

View file

@ -1,10 +1,13 @@
[project]
name = "esds"
version = "0.0.1"
dynamic = ["version"]
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["esds"]
packages = ["esds"]
[tool.setuptools.dynamic]
version = {attr = "esds.__version__"}

View file

@ -1,6 +1,6 @@
[metadata]
name = esds
version = 0.0.1
version = attr: esds.__version__
author = Loic Guegan
maintainer = Loic Guegan
description = Extensible Simulator of Distributed Systems
@ -9,3 +9,7 @@ license = GNU LGPLv3
[options]
install_requires = numpy
packages=find:
[options.packages.find]
exclude = manual