From 40921b1e83ba802401a6dbcea3fb705f37174712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Jolain?= Date: Mon, 17 Feb 2020 16:15:44 +0100 Subject: [PATCH] Setup wheel package --- .gitignore | 12 +++++++++++- hadar/solver/__init__.py | 0 hadar/solver/lp/mapper.py | 1 - setup.py | 22 ++++++++++++++++++++++ 4 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 hadar/solver/__init__.py create mode 100644 setup.py diff --git a/.gitignore b/.gitignore index ef1f539..059a3ce 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,16 @@ +# Pycharm **/.idea + +# Python cache *.pyc +# Virtual env /venv -**/.ipynb_checkpoints \ No newline at end of file +# jupyter notebook +**/.ipynb_checkpoints + +# setuptool dist output +**/dist +**/hadar.egg-info +**/build diff --git a/hadar/solver/__init__.py b/hadar/solver/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/hadar/solver/lp/mapper.py b/hadar/solver/lp/mapper.py index 6020af5..4e2afe8 100644 --- a/hadar/solver/lp/mapper.py +++ b/hadar/solver/lp/mapper.py @@ -33,7 +33,6 @@ def __init__(self, solver: Solver, study: Study): def set_var(self, name: str, t: int, vars: LPNode): for i in range(len(vars.consumptions)): - print(name, vars.consumptions[i].variable.solution_value()) self.nodes[name].consumptions[i].quantity[t] = vars.consumptions[i].quantity for i in range(len(vars.productions)): diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..f07ad06 --- /dev/null +++ b/setup.py @@ -0,0 +1,22 @@ +import setuptools + +with open("README.md", "r") as fh: + long_description = fh.read() + +setuptools.setup( + name="hadar", + version="0.1.0", + author="RTE France", + author_email="francois.jolain@rte-international.com", + description="python adequacy library", + long_description=long_description, + long_description_content_type="text/markdown", + url="https://github.com/hadar-simulator/hadar", + packages=setuptools.find_packages(), + classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: Apache Software License", + "Operating System :: OS Independent", + ], + python_requires='>=3.6', +) \ No newline at end of file