Skip to content

Commit

Permalink
fix: remove top level files from wheel
Browse files Browse the repository at this point in the history
As per doc
(https://python-poetry.org/docs/pyproject#exclude-and-include), we
cannot have them in the wheel.

Fix #1319
  • Loading branch information
Rafiot committed Feb 26, 2025
1 parent 6a0c177 commit 573b717
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 18 deletions.
1 change: 1 addition & 0 deletions pymisp/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2600,6 +2600,7 @@ def update_user(self, user: MISPUser, user_id: int | None = None, pythonify: boo
uid = get_uuid_or_id_from_abstract_misp(user_id)
url = f'users/edit/{uid}'
if self._current_role.perm_admin or self._current_role.perm_site_admin:
# Privilege check.
url = f'admin/{url}'
r = self._prepare_request('POST', url, data=user)
updated_user = self._check_json_response(r)
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,14 @@ classifiers=[

exclude = ["pymisp/data"]
include = [
{path = "CHANGELOG.txt", format = ["sdist", "wheel"]},
{path = "CHANGELOG.txt", format = ["sdist"]},
{path = "LICENSE", format = ["sdist"]},
{path = "pymisp/data/*.json", format = ["sdist", "wheel"]},
{path = "pymisp/data/misp-objects/*.json", format = ["sdist", "wheel"]},
{path = "pymisp/data/misp-objects/objects/*/definition.json", format = ["sdist", "wheel"]},
{path = "pymisp/data/misp-objects/relationships/definition.json", format = ["sdist", "wheel"]},
{path = "docs", format = ["sdist"]},
{path = "examples/*.py", format = ["sdist", "wheel"]},
{path = "examples/*.py", format = ["sdist"]},
{path = "tests", format = ["sdist"]}
]

Expand Down
8 changes: 0 additions & 8 deletions travis/install_travis.sh

This file was deleted.

8 changes: 0 additions & 8 deletions travis/test_travis.sh

This file was deleted.

0 comments on commit 573b717

Please sign in to comment.