Skip to content
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

OS X crash on import paseos when pip installed #51

Merged
merged 7 commits into from
Nov 28, 2022
Merged

OS X crash on import paseos when pip installed #51

merged 7 commits into from
Nov 28, 2022

Conversation

johanos1
Copy link
Collaborator

Description

Summary of changes

  • A MANIFEST.in created to include the resource folder in pip installation

Resolved Issues

How Has This Been Tested?

  • unittests are OK
  • default_cfg is imported in external pip install

Related Pull Requests

Copy link
Collaborator

@gomezzz gomezzz left a comment

Choose a reason for hiding this comment

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

Minor changes

README.md Outdated
@@ -7,7 +7,7 @@ This project is currently under development. Use at your own risk. :)

<p align="center">
<a href="https://github.com/aidotse/PASEOS/">
<img src="resources/images/datastructure.svg" alt="Scheme" width="910" height="459">
<img src="paseos/resources/images/datastructure.svg" alt="Scheme" width="910" height="459">
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's keep the readme images (this and below 2) in the top-level folder resources, there is no need to ship them with the module and otherwise they have no reason to be in the module folder

@@ -140,6 +140,6 @@ async def job():
return job()
else:
# Run activity and processor
asyncio.run(job())
asyncio.gather(job())

logger.info(f"Activity {activity} completed.")
Copy link
Collaborator

Choose a reason for hiding this comment

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

pls remove the file paseos/resources/.DS_Store



def test_activity():
@pytest.mark.asyncio
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add a comment somewhere what this actually does, so we remember? :)

)
logger.debug(f"loading path: {path}")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
logger.debug(f"loading path: {path}")
logger.debug(f"Loading default cfg from {path}")

(can then remove above debugger output in Line9)

Copy link
Collaborator

@gomezzz gomezzz left a comment

Choose a reason for hiding this comment

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

👍

@johanos1 johanos1 merged commit 39228af into main Nov 28, 2022
@johanos1 johanos1 deleted the PR46 branch November 28, 2022 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OS X crash on import paseos when pip installed
2 participants