![]() Sure that all files are added to your repository.įrom importlib.resources import read_text, read_binary data = read_text ( 'my_package.sub_package', 'data.txt' ) It is not necessary to have a MANIFEST.in file for this to work. Use git ls-files to debug if they are really tracked by Git. In case that data files are not packaged, If include_package_data = True in setup.cfg. Under my_project/src/my_package, and are tracked by Git will automatically be included ![]() images and text files, that must reside within your package, e.g. Package and Files Data ¶Īdditional data, e.g. Additionally have a look in our FAQĪbout how to disable implicit namespaces. Manually copy the _init_.py file for the umbrella namespace folderįrom an existing project. If you don’t want to updateĮxisting namespace packages to PEP 420, you will probably need to Namespace packages might be incompatible. Which convention the namespaces are currently following. Moreover, if youĪre developing “subpackages” for already existing namespaces, please check ![]() Prior to PyScaffold 4.0, namespaces were generatedĮxplicitly with pkg_resources, instead of PEP 420. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |