Code Monkey home page Code Monkey logo

Comments (8)

oca159 avatar oca159 commented on July 17, 2024

I found the issue, seems like the license field is required I just added it to the pyproject.toml file and it worked

from poetry.

oca159 avatar oca159 commented on July 17, 2024

Could you please either add this field as optional or add it by default to the pyproject.toml file?

from poetry.

sdispater avatar sdispater commented on July 17, 2024

@oca159 That's strange. If it is indeed the case then it's a bug since the license field is not mandatory and you should be able to build a project without it.

I will investigate.

from poetry.

oca159 avatar oca159 commented on July 17, 2024

Yeah, you can verify it using poetry build -vvv I was testing and it was the issue I really love poetry :) this is a better experience than pipenv, congratulations!

from poetry.

grabear avatar grabear commented on July 17, 2024

+ 1

from poetry.

sdispater avatar sdispater commented on July 17, 2024

This is fixed on master (c291fae) and in release 0.8.0a3 (prerelease)

from poetry.

grabear avatar grabear commented on July 17, 2024

For me this had to do with my environment. For some reason my environment + pycharm doesn't put git.exe in my path.

>poetry build -vvv
Building qwatch (0.2.0)
 - Building sdist


  [FileNotFoundError]
  [WinError 2] The system cannot find the file specified


Exception trace:
 c:\users\rgilmore\python36\lib\site-packages\poetry\_vendor\cleo\application.py in run() at line 94
   status_code = self.do_run(input_, output_)
 c:\users\rgilmore\python36\lib\site-packages\poetry\console\application.py in do_run() at line 71
   return super().do_run(i, o)
 c:\users\rgilmore\python36\lib\site-packages\poetry\_vendor\cleo\application.py in do_run() at line 197
   status_code = command.run(input_, output_)
 c:\users\rgilmore\python36\lib\site-packages\poetry\console\commands\command.py in run() at line 22
   return super(BaseCommand, self).run(i, o)
 c:\users\rgilmore\python36\lib\site-packages\poetry\_vendor\cleo\commands\base_command.py in run() at line 146
   status_code = self.execute(input_, output_)
 c:\users\rgilmore\python36\lib\site-packages\poetry\_vendor\cleo\commands\command.py in execute() at line 107
   return self.handle()
 c:\users\rgilmore\python36\lib\site-packages\poetry\console\commands\build.py in handle() at line 26
   builder.build(fmt)
 c:\users\rgilmore\python36\lib\site-packages\poetry\masonry\builder.py in build() at line 25
   return builder.build()
 c:\users\rgilmore\python36\lib\site-packages\poetry\masonry\builders\complete.py in build() at line 21
   sdist_file = sdist_builder.build()
 c:\users\rgilmore\python36\lib\site-packages\poetry\masonry\builders\sdist.py in build() at line 74
   files_to_add = self.find_files_to_add(exclude_build=False)
 c:\users\rgilmore\python36\lib\site-packages\poetry\masonry\builders\builder.py in find_files_to_add() at line 67
   excluded = self.find_excluded_files()
 c:\users\rgilmore\python36\lib\site-packages\poetry\masonry\builders\builder.py in find_excluded_files() at line 44
   vcs = get_vcs(self._path)
 c:\users\rgilmore\python36\lib\site-packages\poetry\vcs\__init__.py in get_vcs() at line 11
   return Git(p)
 c:\users\rgilmore\python36\lib\site-packages\poetry\vcs\git.py in __init__() at line 30
   self._config = GitConfig()
 c:\users\rgilmore\python36\lib\site-packages\poetry\vcs\git.py in __init__() at line 10
   stderr=subprocess.STDOUT
 c:\users\rgilmore\python36\lib\subprocess.py in check_output() at line 336
   **kwargs).stdout
 c:\users\rgilmore\python36\lib\subprocess.py in run() at line 403
   with Popen(*popenargs, **kwargs) as process:
 c:\users\rgilmore\python36\lib\subprocess.py in __init__() at line 707
   restore_signals, start_new_session)
 c:\users\rgilmore\python36\lib\subprocess.py in _execute_child() at line 990
   startupinfo)

build [-f|--format FORMAT]

After following this guide:
https://stackoverflow.com/a/26180050/7351746
...And issuing the same command, I successfully built my project.

from poetry.

github-actions avatar github-actions commented on July 17, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from poetry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.