mirror of
https://gitlab.com/manzerbredes/esds.git
synced 2025-04-05 17:46:29 +02:00
Improve package architecture
This commit is contained in:
parent
0e1e51d1ee
commit
54d88bce8f
5 changed files with 16 additions and 5 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,4 +1,5 @@
|
||||||
__pycache__
|
__pycache__
|
||||||
esds.debug
|
esds.debug
|
||||||
dist
|
dist
|
||||||
esds.egg*
|
esds.egg*
|
||||||
|
build
|
|
@ -1,4 +1,5 @@
|
||||||
__all__ = ["simulator", "node", "plugins", "helpers", "rcode", "debug"]
|
__all__ = ["simulator", "node", "plugins", "helpers", "rcode", "debug"]
|
||||||
|
__version__ = "0.0.1"
|
||||||
|
|
||||||
from esds.simulator import Simulator
|
from esds.simulator import Simulator
|
||||||
from esds.rcode import RCode
|
from esds.rcode import RCode
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import sys,time,json
|
import sys,time,json
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
import esds
|
||||||
|
|
||||||
def serialize_int64(obj):
|
def serialize_int64(obj):
|
||||||
if isinstance(obj, np.int64):
|
if isinstance(obj, np.int64):
|
||||||
|
@ -14,7 +15,8 @@ class Debug:
|
||||||
self.logs=list()
|
self.logs=list()
|
||||||
header={
|
header={
|
||||||
"debug_version": 1,
|
"debug_version": 1,
|
||||||
"python_version" : sys.version,
|
"python_version": sys.version,
|
||||||
|
"esds_version": esds.__version__,
|
||||||
"simulation_started_at": simulator.startat,
|
"simulation_started_at": simulator.startat,
|
||||||
"number_of_nodes": len(simulator.nodes),
|
"number_of_nodes": len(simulator.nodes),
|
||||||
"manual_breakpoints": breakpoints,
|
"manual_breakpoints": breakpoints,
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
[project]
|
[project]
|
||||||
name = "esds"
|
name = "esds"
|
||||||
version = "0.0.1"
|
dynamic = ["version"]
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools"]
|
requires = ["setuptools"]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[tool.setuptools]
|
[tool.setuptools]
|
||||||
packages = ["esds"]
|
packages = ["esds"]
|
||||||
|
|
||||||
|
[tool.setuptools.dynamic]
|
||||||
|
version = {attr = "esds.__version__"}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[metadata]
|
[metadata]
|
||||||
name = esds
|
name = esds
|
||||||
version = 0.0.1
|
version = attr: esds.__version__
|
||||||
author = Loic Guegan
|
author = Loic Guegan
|
||||||
maintainer = Loic Guegan
|
maintainer = Loic Guegan
|
||||||
description = Extensible Simulator of Distributed Systems
|
description = Extensible Simulator of Distributed Systems
|
||||||
|
@ -9,3 +9,7 @@ license = GNU LGPLv3
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
install_requires = numpy
|
install_requires = numpy
|
||||||
|
packages=find:
|
||||||
|
|
||||||
|
[options.packages.find]
|
||||||
|
exclude = manual
|
Loading…
Add table
Reference in a new issue