Skip to content

Commit 573b717

Browse files
committed
fix: remove top level files from wheel
As per doc (https://python-poetry.org/docs/pyproject#exclude-and-include), we cannot have them in the wheel. Fix #1319
1 parent 6a0c177 commit 573b717

File tree

4 files changed

+4
-18
lines changed

4 files changed

+4
-18
lines changed

pymisp/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2600,6 +2600,7 @@ def update_user(self, user: MISPUser, user_id: int | None = None, pythonify: boo
26002600
uid = get_uuid_or_id_from_abstract_misp(user_id)
26012601
url = f'users/edit/{uid}'
26022602
if self._current_role.perm_admin or self._current_role.perm_site_admin:
2603+
# Privilege check.
26032604
url = f'admin/{url}'
26042605
r = self._prepare_request('POST', url, data=user)
26052606
updated_user = self._check_json_response(r)

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,14 @@ classifiers=[
6767

6868
exclude = ["pymisp/data"]
6969
include = [
70-
{path = "CHANGELOG.txt", format = ["sdist", "wheel"]},
70+
{path = "CHANGELOG.txt", format = ["sdist"]},
71+
{path = "LICENSE", format = ["sdist"]},
7172
{path = "pymisp/data/*.json", format = ["sdist", "wheel"]},
7273
{path = "pymisp/data/misp-objects/*.json", format = ["sdist", "wheel"]},
7374
{path = "pymisp/data/misp-objects/objects/*/definition.json", format = ["sdist", "wheel"]},
7475
{path = "pymisp/data/misp-objects/relationships/definition.json", format = ["sdist", "wheel"]},
7576
{path = "docs", format = ["sdist"]},
76-
{path = "examples/*.py", format = ["sdist", "wheel"]},
77+
{path = "examples/*.py", format = ["sdist"]},
7778
{path = "tests", format = ["sdist"]}
7879
]
7980

travis/install_travis.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

travis/test_travis.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)