English 中文(简体)
• 利用诗歌制作双双向发行,在包装上与平流放者进行发行?
原标题:Use poetry to create binary distributable with pyinstaller on package ?

我认为,我没有一件简单的事情。

我有诗歌:

name = "my-first-api"
version = "0.1.0"
description = ""
readme = "README.md"
packages = [{include = "application"}]

[tool.poetry.scripts]
start = "main:start"

[tool.poetry.dependencies]
python = ">=3.10,<3.12"
pip= "23.0.1"
setuptools="65.5.0"
fastapi="0.89.1"
uvicorn="0.20.0"

[tool.poetry.group.dev.dependencies]
pyinstaller = "^5.10.1"
pytest = "^7.3.1"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

然而,我可以这样做,并利用Poetry来建设这一体系,但是,我也希望能够以诗歌文字为名创建可起诉的人物。

现在我也这样做:

http://www.un.org/Depts/DGACM/index_chinese.htm 页: 1

我愿谈一下。

http://www.ohchr.org。 我如何看待这一点?

Btw. th不可行:

[tool.poetry.scripts]
start = "main:start"
builddist = "poetry run pyinstaller main.py --collect-submodules application --onefile --name myapi"
最佳回答
问题回答

我最近将poetry-pyinstaller-plugin列入这一使用案例,这里是link至plugin。

Step 1. Install the plugin

$ poetry self add poetry-pyinstaller-plugin

这将包括贵诗歌环境中的幻灯片。

Step 2. Add PyInstaller target(s) in pyproject.toml

鉴于原提交人的要求,必须增加以下部分:

[tool.poetry-pyinstaller-plugin.scripts]
my-api = { source = "application/main.py", type = "onefile", bundle = false }

Step 3. Build binaries

履历<代码>poetry Building的指挥。 记录仪在制片人/轮式档案前生成(PyInstaller binaries可以列入带有捆锁特征的轮椅)。

http://code>dist 夹:

<pyproject_root_dir>
  └── dist/
      ├── pyinstaller/
      │   └── my-api
      ├── application_0.0.0.tar.gz
      └── application-0.0.0-py3-none-any.whl

依赖性来自当前的平流环境,包括波工业的静电支持。

你可以在贵项目中界定习惯文字。 a. 载有所需选择的传令文件。

build = "poetry run pyinstaller main.py --collect-submodules application --onefile --name myapi"

如果你希望的话,你也可以将文字名称(如上所述)与描述更加具体。

请注意,这只会建立可执行的、而不是制定一揽子方案。 为了制定一揽子计划,你可以利用诗歌建筑,这将为你的申请创造源头分配和轮椅。





相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...

热门标签