Skip to content
Myr

move setup.cfg info to setuptools docs, reword

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent 3321230 · Browse files · 2 files+19 added−18 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+19 added−18 removed

  • other:+19 added−18 removed

2 files+19 added−18 removed

modified:docs/patterns/distribute.rst+19 added
85 unmodified lines
86your packages to be installed as zip files because some tools do not87support them and they make debugging a lot harder.888990Tagging Builds91--------------9293It is useful to distinguish between release and development builds. Add a94:file:`setup.cfg` file to configure these options.9596 [egg_info]97 tag_build = .dev98 tag_date = 199100 [aliases]101 release = egg_info -RDb ''102103Running ``python setup.py sdist`` will create a development package104with ".dev" and the current date appended: ``flaskr-1.0.dev20160314.tar.gz``.105Running ``python setup.py release sdist`` will create a release package106with only the version: ``flaskr-1.0.tar.gz``.107108109.. _distributing-resources:110111Distributing Resources112----------------------
67 unmodified lines
modified:docs/patterns/fabric.rst-18 removed
154 unmodified lines
155156Either way, in our case here we only expect one or two servers and we can157upload them ahead of time by hand.158159Configuring egg_info160--------------------161If you need to configure your fabric build with tags, you can create a `setup.cfg`162file in the root of your app. An example would be:159164 [egg_info]165 tag_svn_revision = 1166 tag_build = .dev167 tag_date = 1168169 [aliases]170 release = egg_info -RDb ''171172And now when running `python setup.py sdist ...` in your fabric file, it will173pick up on these settings and tag appropriately. And when making a release build174it will ignore these build tags as expected.175176177160First Deployment161----------------162163Now we can do our first deployment. We have set up the servers so that
34 unmodified lines