All Questions
3 questions
-1
votes
1
answer
111
views
How to properly build package to use a function without module name when importing the module?
I have been experimenting with packaging, testing it on test.pypi.
My structure is as follows:
package_name/
|--- LICENSE
|--- pyproject.toml
|--- README.md
|--- tests/
|--- dist/
|--- src/
|--- ...
0
votes
0
answers
407
views
Importing a package module, created in Pypi, results in module not found
Structure of code:
setup.cfg
pyproject.toml
project (a directory)
project directory:
a.py
b.py
c.py
__init__.py
for example, in a.py there is a line:
import b
When building the package:
pip ...
0
votes
1
answer
84
views
ModuleNotFoundError while creating minimal python package
I made a very simple python package by following the packaging guide:
tester
├── A.py
├── B.py
└── __init__.py
The contents of A.py are simply:
import B
__init__.py and B.py are empty files.
I ...