Skip to content

Commit 2a1807b

Browse files
committed
Changed find_packages() for find_namespace_packages() since
translation dir not included as package. ```bash \############################ \# Package would be ignored # \############################ Python recognizes 'scipplan.translation' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'scipplan.translation' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'scipplan.translation' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. ```
1 parent b20f114 commit 2a1807b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import scipplan
22

3-
from setuptools import setup, find_packages
3+
from setuptools import setup, find_namespace_packages
44

55
def readme():
66
with open("README.md") as f:
@@ -15,7 +15,7 @@ def readme():
1515
license="MIT License",
1616
author=scipplan.__author__,
1717
author_email=scipplan.__email__,
18-
packages=find_packages(), # Automatically find all packages
18+
packages=find_namespace_packages(), # Automatically find all packages
1919
include_package_data=True,
2020
package_data={
2121
# "": ["translation/*.txt"],

0 commit comments

Comments
 (0)