-
Notifications
You must be signed in to change notification settings - Fork 11
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
Poetry #297
Conversation
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.
We no longer have the package and cmdclass features from the old setup.py. Not sure if we need those or not.
I know format_modelica_files is used, but not sure about the outhers. I think cmdclasses will need to be refactored into functions if possible and registered as scripts: https://python-poetry.org/docs/pyproject/#scripts
I updated the requests package to 2.25.1, after checking that nothing appears to be removed between that update and 2.24.0, our previous version. Double check that this is ok?
If the tests pass we should be good. Looks like we're only explicitly using requests
The pre-commit hook for formatting Modelica files doesn't work. I'd love some help sorting that out
I think that probably has to do with the comment above, it needs to be a function
I haven't found any way for the venv to activate/deactivate automatically as you move in/out of the project dir, a la pyenv-virtualenv. Would be cool if that was a thing.
I've never done something like this, but if you wanted to get fancy you could maybe use something like chpwd, detect if directory is a poetry project, then run poetry shell
.
@macintoshpie I made some more changes that still don't work, specifically the I'm also not sure if the Can you help me some more with this? |
@nllong Are these 3 |
I'm unsure why there are 3 extra checks. I'll review the PR and maybe if there is a change needed it will force a rerun. ┐( ∵ )┌ |
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.
Looks awesome. I tested this locally and found a few things. Can you review this commit to make sure all is good?
@nllong I made a small change to suggest using tox instead of pytest in the readme. Otherwise 👍. Still need to make those 3 hanging tests go away: can you look at the updated ci file for what could be causing those? |
Cool, just updated the test requirements! |
Any background context you want to provide?
Our setup process was getting too complicated. Using Poetry lets us create a single venv that everyone uses, while not being a Docker container.
Commit message for 4f84004 has a typo. The word should be
Poetry
, notpython
.What does this PR accomplish?
Removes
setup.py
andrequirements.txt
in favor of Poetry'spyproject.toml
config file.Things that need work before this is ready:
teaser_single
test, though it may be a flake8 error, I'm not quite sure what the error is telling me.tox.ini
because it contains a reference tosetup.py
which no longer exists with Poetry. Need help to bring that back.package
andcmdclass
features from the oldsetup.py
. Not sure if we need those or not.requests
package to 2.25.1, after checking that nothing appears to be removed between that update and 2.24.0, our previous version. Double check that this is ok?I haven't found any way for the venv to activate/deactivate automatically as you move in/out of the project dir, a la pyenv-virtualenv. Would be cool if that was a thing.
How should this be manually tested?
poetry install
poetry run tox
What are the relevant tickets?
#299
Screenshots (if appropriate)