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

Prepare PyProject for PyPi #2116

Merged
merged 2 commits into from
May 11, 2024

Conversation

ppfeister
Copy link
Member

@ppfeister ppfeister commented May 11, 2024

Closes #2036
Closes #2017
Related to #2111 (possible switch to poetry)

@ppfeister ppfeister added the enhancement New feature or request label May 11, 2024
@ppfeister ppfeister requested a review from sdushantha May 11, 2024 04:30
Copy link
Member

@sdushantha sdushantha left a comment

Choose a reason for hiding this comment

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

All looks good, ready to merge

@sdushantha sdushantha merged commit b83f5be into sherlock-project:master May 11, 2024
3 checks passed
@matheusfelipeog
Copy link
Collaborator

This PR breaks compatibility with the --local flag due to the absence of the data file in resources/data.json.

When a Python project is packaged, it will only load .py modules. To load other types of files, this must be explicitly specified in the build definition file.

Try installing the current Sherlock in a clean virtual environment with:

pip install git+https://github.com/sherlock-project/sherlock.git

Then run:

sherlock ppfeister --site GitHub --local

You will get the error:

ERROR: Problem while attempting to access data file '/home/<user>/<project-dir>/.venv/lib/python3.11/site-packages/resources/data.json'.

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.

Use pyproject.toml for better support
4 participants