diff options
| author | Jannis Leidel <jannis@leidel.info> | 2009-10-08 15:11:48 +0200 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2009-10-08 15:11:48 +0200 |
| commit | dcc66e813d10098aa88eaa3be169cbc2e8b301b6 (patch) | |
| tree | 3934040b50ea6adb96a0ee4fe1f123785ca6037a /docs/setuptools.txt | |
| parent | 079951a1532a2c9e3295253c65e06091758f9150 (diff) | |
| download | python-setuptools-git-dcc66e813d10098aa88eaa3be169cbc2e8b301b6.tar.gz | |
Added a bunch of code-block directives for better highlighting with Pygments, fixed typo
--HG--
branch : distribute
extra : rebase_source : e000e29a4c561a0397b134d2e451080b34f84b5d
Diffstat (limited to 'docs/setuptools.txt')
| -rw-r--r-- | docs/setuptools.txt | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/docs/setuptools.txt b/docs/setuptools.txt index 7c679fd0..d5bd98b5 100644 --- a/docs/setuptools.txt +++ b/docs/setuptools.txt @@ -141,7 +141,7 @@ dependencies, and perhaps some data files and scripts:: '': ['*.txt', '*.rst'], # And include any *.msg files found in the 'hello' package, too: 'hello': ['*.msg'], - } + }, # metadata for upload to PyPI author = "Me", @@ -1117,7 +1117,9 @@ if they do, it might not be the right version. Fixing this is easy; just download `distribute_setup.py`_, and put it in the same directory as your ``setup.py`` script. (Be sure to add it to your revision control system, too.) Then add these two lines to the very top of your setup script, before the script imports -anything from setuptools:: +anything from setuptools: + +.. code-block:: python import distribute_setup distribute_setup.use_setuptools() @@ -1573,7 +1575,9 @@ Managing "Continuous Releases" Using Subversion If you expect your users to track in-development versions of your project via Subversion, there are a few additional steps you should take to ensure that things work smoothly with EasyInstall. First, you should add the following -to your project's ``setup.cfg`` file:: +to your project's ``setup.cfg`` file: + +.. code-block:: ini [egg_info] tag_build = .dev @@ -1603,7 +1607,9 @@ their checkout URL (as described in the previous section) with an to download ``projectname==dev`` in order to get the latest in-development code. Note that if your project depends on such in-progress code, you may wish to specify your ``install_requires`` (or other requirements) to include -``==dev``, e.g.:: +``==dev``, e.g.: + +.. code-block:: python install_requires = ["OtherProject>=0.2a1.dev-r143,==dev"] @@ -2406,7 +2412,9 @@ command:: python setup.py upload_docs --upload-dir=docs/build/html As with any other ``setuptools`` based command, you can define useful -defaults in the ``setup.cfg`` of your Python project, e.g.:: +defaults in the ``setup.cfg`` of your Python project, e.g.: + +.. code-block:: ini [upload_docs] upload-dir = docs/build/html @@ -2594,7 +2602,9 @@ all the filenames within that directory (and any subdirectories thereof) that are under revision control. For example, if you were going to create a plugin for a revision control system -called "foobar", you would write a function something like this:: +called "foobar", you would write a function something like this: + +.. code-block:: python def find_files_for_foobar(dirname): # loop to yield paths that start with `dirname` |
