-
-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1231 from yngvem/issue-1202
Issue 1202 - Make wizard work with existing projects
- Loading branch information
Showing
41 changed files
with
2,986 additions
and
278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Existing projects with a ``pyproject.toml`` configuration can now be converted into Briefcase apps using the ``briefcase convert`` command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
======= | ||
convert | ||
======= | ||
|
||
Convert an existing project with a ``pyproject.toml`` configuration into a project that | ||
can be deployed with Briefcase. Runs a wizard to ask questions about your existing | ||
application (reading from the ``pyproject.toml`` file where applicable), adds the | ||
necessary files to the project, and updates the ``pyproject.toml`` file to include the | ||
``briefcase`` section. | ||
|
||
Usage | ||
===== | ||
|
||
To convert your application, run the following command in the application root | ||
directory (where the ``pyproject.toml`` file is located): | ||
|
||
.. code-block:: console | ||
$ briefcase convert | ||
Options | ||
======= | ||
|
||
The following options can be provided at the command line. | ||
|
||
``-t <template>`` / ``--template <template>`` | ||
--------------------------------------------- | ||
|
||
A local directory path or URL to use as a cookiecutter template for the | ||
project. | ||
|
||
``--template-branch <branch>`` | ||
------------------------------ | ||
|
||
The branch of the cookiecutter template repository to use for the project. | ||
If not specified, Briefcase will attempt to use a template branch matching the | ||
version of Briefcase that is being used (i.e., if you're using Briefcase 0.3.14, | ||
Briefcase will use the ``v0.3.14`` template branch when generating the app). If | ||
you're using a development version of Briefcase, Briefcase will use the ``main`` | ||
branch of the template. | ||
|
||
``-Q <KEY=VALUE>`` | ||
------------------ | ||
|
||
Override the answer to a prompt with the provided value. | ||
|
||
For instance, if ``-Q "license=MIT license"`` is specified, then the question | ||
to choose a license will not be presented to the user and the MIT license will | ||
be automatically used for the project. When used in conjunction with | ||
``--no-input``, the provided value overrides the default answer. | ||
|
||
The expected keys are specified by the cookiecutter template being used to | ||
create a new project (the same cookiecutter template is used here). Therefore, | ||
the set of possible keys is not listed here but should be expected to remain | ||
consistent for any specific version of Briefcase; with version changes, though, | ||
the keys may change. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ Command reference | |
:maxdepth: 1 | ||
|
||
new | ||
convert | ||
dev | ||
create | ||
update | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.