Ex46 lpthw ex46 setup.py

lpthw ex46 setup.py
when I run it: “unexpected indent” line 19: setup(**config)

That usually means you added some spaces on that line, so like this:

  # this is two spaces in

But, it should be flush to the left with either the left of the file or the line above it:

# this is not indented

Try that.

Hello Zed, I have been having similar issues with exercise 46. I’m sing pytest instead of nosetests and everytime i do a pytest on setup.py, it gives an error like this…

(lpthw) PS C:\Users\Venkat Sundar\projects\skeleton> pytest test_setup.py
============================= test session starts =============================
platform win32 – Python 3.10.4, pytest-7.1.2, pluggy-1.0.0
rootdir: C:\Users\Venkat Sundar\projects\skeleton
collected 0 items / 1 error

=================================== ERRORS ====================================
_______________________ ERROR collecting test_setup.py ________________________
test_setup.py:16: in
…venvs\lpthw\lib\site-packages\setuptools_init_.py:87: in setup
return distutils.core.setup(**attrs)
…venvs\lpthw\lib\site-packages\setuptools_distutils\core.py:164: in setup
ok = dist.parse_command_line()
…venvs\lpthw\lib\site-packages\setuptools_distutils\dist.py:474: in parse_command_line
args = self._parse_command_opts(parser, args)
…venvs\lpthw\lib\site-packages\setuptools\dist.py:1119: in _parse_command_opts
nargs = _Distribution._parse_command_opts(self, parser, args)
…venvs\lpthw\lib\site-packages\setuptools_distutils\dist.py:526: in _parse_command_opts
raise SystemExit(“invalid command name ‘%s’” % command)
E SystemExit: invalid command name ‘test_setup.py’
=========================== short test summary info ===========================
ERROR test_setup.py - SystemExit: invalid command name ‘test_setup.py’
!!! Interrupted: 1 error during collection !!!
============================== 1 error in 1.31s ===============================

what could be the issue?