-
Notifications
You must be signed in to change notification settings - Fork 2
Feature/pip install #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
hoseasiu
wants to merge
9
commits into
main
Choose a base branch
from
feature/pip-install
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
f723982
make pytelo pip-installable
hoseasiu 4970495
add pip install instructions to readme
hoseasiu 7795650
fix instructions for antlr4 and pytelo package installation order
hoseasiu 5f0f5ac
Merge branch 'main' into feature/pip-install
wasserfeder 51c3ace
Created stl and mtl subpackages.
wasserfeder ddfe1ec
Updated version for antlr and added pytelo version.
wasserfeder 3926d8a
Corrected import in mtl subpackage, and added import of to_ast method.
wasserfeder 11cb320
deleting extra print statement
hoseasiu 230e52b
Merge branch 'feature/pip-install' of https://github.com/erl-lehigh/P…
hoseasiu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| from setuptools import find_packages, setup | ||
|
|
||
| DISTNAME = "PyTeLo" | ||
|
|
||
| DESCRIPTION = "A Flexible and Efficient Temporal Logic Tool for Python" | ||
|
|
||
| INSTALL_REQUIRES = ["antlr4-python3-runtime==4.13.0", | ||
| "scipy", | ||
| "gurobipy"] | ||
|
|
||
| setup( | ||
| name=DISTNAME, | ||
| author="ERL Lehigh", | ||
| version="0.1.0", | ||
| description=DESCRIPTION, | ||
| url="https://github.com/erl-lehigh/PyTeLo", | ||
| python_requires=">=3.6, <3.11", | ||
| package_dir={"": "src"}, | ||
| packages=find_packages("src"), | ||
| include_package_data=True, | ||
| install_requires=INSTALL_REQUIRES, | ||
| # extras_require=EXTRAS_REQUIRES, | ||
| ) | ||
|
|
||
| # to install: | ||
| # pip install . | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| from .stl import STLFormula, Trace, TraceBatch | ||
| from .mtl import MTLFormula | ||
|
|
||
|
|
||
| __version__ = "0.1.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| from .mtlLexer import mtlLexer | ||
| from .mtlParser import mtlParser | ||
| from .mtl import MTLAbstractSyntaxTreeExtractor | ||
| from .mtl import Operation, MTLFormula | ||
| from .mtl import to_ast |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| from .stlLexer import stlLexer | ||
| from .stlParser import stlParser | ||
| from .stl import STLAbstractSyntaxTreeExtractor | ||
| from .stl import Operation, RelOperation, STLFormula, Trace, TraceBatch | ||
| from .stl import to_ast |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,7 @@ | |
|
|
||
| import gurobipy as grb | ||
|
|
||
| from stl import Operation, RelOperation, STLFormula | ||
| from .stl import Operation, RelOperation, STLFormula | ||
|
|
||
|
|
||
| class stl2milp(object): | ||
|
|
@@ -86,7 +86,6 @@ 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 | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should delete this print statement. |
||
| self.model.update() | ||
| return self.variables[state][t] | ||
|
|
||
|
|
||
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.tomlfile,pipas frontend andsetuptoolsas backend.There was a problem hiding this comment.
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.