Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos.buildout
Commits
9b6dfd40
Commit
9b6dfd40
authored
Feb 28, 2017
by
Jim Fulton
Committed by
GitHub
Feb 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Annotate and setup commands again (#363)
* Added docs for the annotate and setup commands. (#362)
parent
c208d0b6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
0 deletions
+57
-0
doc/reference.rst
doc/reference.rst
+57
-0
No files found.
doc/reference.rst
View file @
9b6dfd40
...
@@ -88,6 +88,31 @@ Buildout command-line options
...
@@ -88,6 +88,31 @@ Buildout command-line options
Buildout
commands
Buildout
commands
-----------------
-----------------
annotate
________
Display
the
buildout
configuration
options
,
including
their
values
and
where
they
came
from
.
Try
it
!
..
code
-
block
::
console
buildout
annotate
..
->
command
>>>
write
(
"[buildout]
\n
parts=
\n
"
,
"buildout.cfg"
)
>>>
run_buildout
(
command
)
>>>
print
(
read
())
#
doctest
:
+
ELLIPSIS
Creating
directory
...
<
BLANKLINE
>
Annotated
sections
==================
<
BLANKLINE
>
[
buildout
]
allow
-
hosts
=
*
DEFAULT_VALUE
...
..
_bootstrap
-
command
:
..
_bootstrap
-
command
:
bootstrap
bootstrap
...
@@ -113,6 +138,38 @@ It then runs the resulting buildout.
...
@@ -113,6 +138,38 @@ It then runs the resulting buildout.
See :ref:`Bootstrapping <init-generates-buildout.cfg>` for examples.
See :ref:`Bootstrapping <init-generates-buildout.cfg>` for examples.
setup PATH SETUP-COMMANDS
_________________________
Run a setuptools-based setup script to build a distribution.
The path must be the path of a `setup script
<https://docs.python.org/3.6/distutils/setupscript.html>`_ or of a
directory containing one named ``setup.py``. For example, to create a
source distribution using a setup script in the current directory:
.. code-block:: console
buildout setup . sdist
.. -> command
>>> write("""from setuptools import setup
... setup(name='
foo
', url='
.
', author='
test
', author_email='
test
@
test
.
com
')
... """, "setup.py")
>>> write('
test
', '
README
')
>>> run_buildout(command.replace('
.
', '
.
-
q
'))
>>> eqs(ls('
dist
'), '
foo
-
0.0.0
.
tar
.
gz
')
This command is useful when the Python environment you'
re
using
doesn
't have setuptools installed. Normally today, setuptools *is*
installed and you can just run setup scripts that use setuptools directly.
Note that if you want to build and upload a package to the `standard
package index <https://pypi.python.org/pypi>`_ you should consider
using `zest.releaser <https://pypi.python.org/pypi/zest.releaser>`_,
which automates many aspects of software release including checking
meta data, building releases and making version-control tags.
.. _buildout-configuration-options-reference:
.. _buildout-configuration-options-reference:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment