I was getting this error message too. This is the first time I've tried making a setup.py
or using tox
so I was trying to copy examples I'd seen of other people's setup.py
, since the official docs weren't very illuminating to me on this topic.
My broken setup.py
looked like this:
from setuptools import setup, find_packages
setup(
name='foobarbaz',
version='1.0',
author="donald duck",
author_email="foo@bar.baz.quux",
package_dir={'': 'src'},
packages=find_packages('src'),
zip_safe=False,
)
There were one or two problematic keyword arguments, it turns out. I removed package_dir
and packages
, then the problem went away. So this is the working version:
from setuptools import setup
setup(
name='foobarbaz',
version='1.0',
author="donald duck",
author_email="foo@bar.baz.quux",
zip_safe=False,
)
I don't know if your situation is similar or if you've resolved this yet, but I this is what worked for me.