Comments (8)
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.
Could you please either add this field as optional or add it by default to the pyproject.toml file?
from poetry.
@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.
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.
+ 1
from poetry.
This is fixed on master
(c291fae) and in release 0.8.0a3
(prerelease)
from poetry.
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.
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)
- Poetry version solving fails HOT 9
- Poetry Dependency Specification: platform manylinux2014_x86_64 not supported HOT 5
- `poetry install` fails with `IsADirectoryError [Errno 21] Is a directory: '/path/to/my-package' ` HOT 2
- All poetry commands fail with [Errno 2] No such file or directory: 'python' HOT 3
- Add flag to `poetry add` to allow the installation of the latest compatible version HOT 3
- `poetry shell` doesn't work with `mise` and `fish` shell, venv python is behind mise in path HOT 3
- changing local dependency to editable does not reinstall as editable dependency HOT 1
- the latest Poetry, Cannot recognize the new version of Python HOT 2
- extra depdency not included in lock file if platform being set HOT 2
- PermissionError during poetry lock when source is git, with virtualenvs.create=false HOT 3
- Add support for keyring as a subprocess subprocess (rather than keyring as an import) HOT 2
- Relative dependency imports work in some folders but not others.
- Custom optional = false group in local dependency not getting installed HOT 4
- Bug in dependency resolution with pinned packages with numpy and pandas. HOT 4
- Local lib depencency is not being installed correctly after upgrading poetry version HOT 1
- pip install poetry not working due to latest version of cmake HOT 3
- Version solving stuck in a loop when using `poetry update`, potentially accompanied by memory leak HOT 4
- poetry shell cannot work
- (🐞) Confusing error message in `poetry show` with outdated lock file
- `poetry update` locks one version, but installs another HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poetry.