Skip to content

Commit

Permalink
Setup wheel package
Browse files Browse the repository at this point in the history
  • Loading branch information
François Jolain committed Feb 17, 2020
1 parent 15dd14d commit 40921b1
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# Pycharm
**/.idea

# Python cache
*.pyc

# Virtual env
/venv

**/.ipynb_checkpoints
# jupyter notebook
**/.ipynb_checkpoints

# setuptool dist output
**/dist
**/hadar.egg-info
**/build
Empty file added hadar/solver/__init__.py
Empty file.
1 change: 0 additions & 1 deletion hadar/solver/lp/mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)):
Expand Down
22 changes: 22 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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',
)

0 comments on commit 40921b1

Please sign in to comment.