PS C:\Users\dougr\OneDrive\doug\dication_toolbox\unimacro> python --version
Python 3.8.6
Running on windows 32 bit.
PS C:\Users\dougr\OneDrive\doug\dication_toolbox\unimacro> python
Python 3.8.6 (tags/v3.8.6:db45529, Sep 23 2020, 15:37:30) [MSC v.1927 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
PS C:\Users\dougr\OneDrive\doug\dication_toolbox\unimacro> flit build
Traceback (most recent call last):
File "c:\python38-32\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\python38-32\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Python38-32\scripts\flit.exe\__main__.py", line 7, in <module>
File "c:\python38-32\lib\site-packages\flit\__init__.py", line 154, in main
main(args.ini_file, formats=set(args.format or []),
File "c:\python38-32\lib\site-packages\flit\build.py", line 45, in main
sb = SdistBuilder.from_ini_path(ini_file)
File "c:\python38-32\lib\site-packages\flit_core\sdist.py", line 102, in from_ini_path
module = common.Module(ini_info.module, srcdir)
File "c:\python38-32\lib\site-packages\flit_core\common.py", line 55, in __init__
raise ValueError("No file/folder found for module {}".format(name))
ValueError: No file/folder found for module unimacro
PS C:\Users\dougr\OneDrive\doug\dication_toolbox\unimacro>
`PS C:\Users\dougr\OneDrive\doug\dication_toolbox\unimacro> cat .\pyproject.toml
[build-system]
requires = ["flit_core >=2,<4"]
build-backend = "flit_core.buildapi"
PS C:\Users\dougr\OneDrive\doug\dication_toolbox\unimacro> pip show flit
Name: flit
Version: 3.0.0
Summary: A simple packaging tool for simple packages.
Home-page: https://github.com/takluyver/flit
Author: Thomas Kluyver
Author-email: thomas@kluyver.me.uk
License: UNKNOWN
Location: c:\python38-32\lib\site-packages
Requires: flit-core, requests, docutils, pytoml
Required-by:
PS C:\Users\dougr\OneDrive\doug\dication_toolbox\unimacro>
ok this turned out to be becuase i didnt' realize the code didn't go in src, it goes in src/modulename. The error could be more descriptive for a newbie?
folder structure:
I did note if i renamed "src" to "unimacro" it worked but that is not how our project os organized.