小编FLA*_*OSO的帖子

ERROR Backend subproccess exited when trying to invoke get_requires_for_build_sdist

I used the Upload Python Package workflow on GitHub to upload the module stored in the repository to PyPI.

As you can see at the link above, I followed the tutorial given by packaging.python.org, to be more specific I used setup.py instead of setup.cfg.


Anyway an error occurred during the last deploy, which gave me the following error:

Run python -m build
      python -m build
      shell: /usr/bin/bash -e {0}
      env:
        pythonLocation: /opt/hostedtoolcache/Python/3.10.4/x64
        LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.4/x64/lib
    running egg_info …
Run Code Online (Sandbox Code Playgroud)

python pip package pypi github-actions

10
推荐指数
1
解决办法
2万
查看次数

在计算中使用最大内容

想象一下我有一个里面<div>有一些:<p>

#myDiv {
  width: max-content;
  border-style: dashed;
}
Run Code Online (Sandbox Code Playgroud)
<div id="myDiv">
    <p>This is my text</p>
</div>
Run Code Online (Sandbox Code Playgroud)

但我不喜欢文本与 如此接近border,所以我尝试了以下方法:

#myDiv {
  width: calc(max-content + 2px);
  border-style: dashed;
}
Run Code Online (Sandbox Code Playgroud)
<div id="myDiv">
  <p>This is my text</p>
</div>
Run Code Online (Sandbox Code Playgroud)

但是(如您所见)它不起作用。


所以我的问题是是否有办法创建<div>宽度为

比其中的内容多两个像素

自从我尝试过

calc(max-content + 2px)
Run Code Online (Sandbox Code Playgroud)

没用。

先感谢您。

css calc

7
推荐指数
1
解决办法
7086
查看次数

标签 统计

calc ×1

css ×1

github-actions ×1

package ×1

pip ×1

pypi ×1

python ×1