Skip to content

Feature/pip install#30

Open
hoseasiu wants to merge 9 commits intomainfrom
feature/pip-install
Open

Feature/pip install#30
hoseasiu wants to merge 9 commits intomainfrom
feature/pip-install

Conversation

@hoseasiu
Copy link
Copy Markdown
Collaborator

Hi Cristi et al.,

We're trying to clean up code on our end - particularly removing our internal copy of python-stl in favor of pointing to pytelo. Seems one of the things that would make this a lot easier is if pytelo was pip-installable, so that external code can import its functions without referencing file paths. We're not sure if you want to actually merge this PR or just keep it a separate branch, but we figured we'd at least push and let you know that this was done in case you wanted to take advantage of it.

(Also fixed a minor Python 2-style print statement in stl2milp.py.)

@hoseasiu hoseasiu added the enhancement New feature or request label Jun 10, 2024
Copy link
Copy Markdown
Collaborator

@wasserfeder wasserfeder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Please test the changes we made: moving stl to a subpackage, and adding the mtl subpackage.

@@ -86,7 +86,7 @@ def add_state(self, state, t):
name='{}_{}'.format(state, t)
v = self.model.addVar(vtype=vtype, lb=low, ub=high, name=name)
self.variables[state][t] = v
print 'Added state:', state, 'time:', t
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should delete this print statement.

@@ -0,0 +1,26 @@
from setuptools import find_packages, setup
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we move towards the newer packaging methodology using a pyproject.toml file, pip as frontend and setuptools as backend.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I talked to Jaime about this, and he says that you could do that, but it's probably not necessary for a project of this size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants