I am building a Python Module, and am following this tutorial.
However when I run python setup.py sdist
, I get:
running sdist
running check
warning: sdist: manifest template 'MANIFEST.in' does not exist (using default file list)
error: package directory 'packagename' does not exist
Here is my directory structure:
packagename
-setup.py
-setup.cfg
-LICENSE
-README
-__init__.py
-(All other files)
Setup.py file (I have replaced things like package names, authors, urls with placeholders.):
from distutils.core import setup
setup(
name = 'packagename',
packages = ['packagename'],
version = '0.1.1',
license='MIT',
description = 'description',
author = 'authorname',
author_email = '[email protected]',
url = 'url',
download_url = 'url',
keywords = ['GUI', 'Python', 'Tkinter', 'Simple'],
classifiers=[
'Development Status :: 4 - Beta', # Choose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable" as the current state of your package
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
)
I had to move the setup file above the main package as suggested by @phd in the 3rd comment in the comment section.