I am learning setuptools and I have a python package with this structure:
package1
├──setup.py
├── __init__.py
├── module1.py
└── submodule1
└── __init__.py
Note that I would like to place setup.py
in the package1 folder itself, and make the distribution take the package1 files and name them package1? Then I would probably also need to ignore setup.py
(avoid the file being distributed).
I am able to do this for now:
production
├──setup.py
└──src
└──package1
├── __init__.py
├── module1.py
└── submodule1
└── __init__.py
So why I would like this? I have a GitHub repository, and it's a python package. I would like to simply add the setup.py
inside the root folder of the repository. In this way, someone cloning the repository could simply do python -m build
. Makes sense or are there other ways? Thank you!