Skip to content

Commit a5ac23e

Browse files
committed
Fix package installation issue by including subpackages
1 parent 4d5bdee commit a5ac23e

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

setup.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import re
2-
3-
from glob import glob
4-
from setuptools import setup
2+
from setuptools import setup, find_packages
53

64
def readme():
75
with open('README.md') as f:
@@ -31,15 +29,9 @@ def readme():
3129
url='https://github.com/peppelinux/pyMDL-MDOC',
3230
author='Giuseppe De Marco',
3331
author_email='[email protected]',
34-
license='License :: OSI Approved :: Apache Software License',
35-
# scripts=[f'{_pkg_name}/bin/{_pkg_name}'],
36-
packages=[f"{_pkg_name}"],
37-
package_dir={f"{_pkg_name}": f"{_pkg_name}"},
38-
package_data={f"{_pkg_name}": [
39-
i.replace(f'{_pkg_name}/', '')
40-
for i in glob(f'{_pkg_name}/**', recursive=True)
41-
]
42-
},
32+
license='Apache Software License',
33+
packages=find_packages(include=["pymdoccbor", "pymdoccbor.*"]), # ✅ Detect all subpackages
34+
include_package_data=True, # ✅ Include data files
4335
install_requires=[
4436
'cbor2>=5.4.0,<5.5.0',
4537
'cwt>=2.3.0,<2.4',

0 commit comments

Comments
 (0)