{ "info": { "author": "Andrew Straw", "author_email": "strawman@astraw.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3" ], "description": ".. image:: https://travis-ci.org/astraw/stdeb.png?branch=master\n :target: https://travis-ci.org/astraw/stdeb\n\nstdeb - Python to Debian source package conversion utility\n==========================================================\n\n`stdeb `_ produces Debian source\npackages from Python packages via a new distutils command,\n``sdist_dsc``. Automatic defaults are provided for the Debian package,\nbut many aspects of the resulting package can be customized (see the\ncustomizing section, below). An additional command, ``bdist_deb``,\ncreates a Debian binary package, a .deb file. The ``install_deb``\ncommand installs this .deb file. The ``debianize`` command builds a\n``debian/`` directory directly alongside your setup.py.\n\nSeveral convenience utilities are also provided:\n\n* ``pypi-download`` will query the `Python Package Index (PyPI)\n `_ for a package and download it.\n* ``pypi-install`` will query the `Python Package Index (PyPI)\n `_ for a package, download it, create a\n .deb from it, and then install the .deb.\n* ``py2dsc`` will convert a distutils-built source tarball into a\n Debian source package.\n* ``py2dsc-deb`` will convert a distutils-built source tarball into a\n Debian source package and then use the Debian machinery to build a\n .deb file from this.\n\n.. contents::\n\n\nPython 3 support\n----------------\n\nAs explained in more detail below, the heart of stdeb is the sdist_dsc\ndistutils command. This command runs once to generate a Debian source\npackage. This Debian source package can specify building packages for\nPython 2, Python 3, or both. Furthermore, this generation can be done\nwith the Python 2 or Python 3 interpreter. By default, only packages\nare built for the version of Python being used. To override this, use\n``--with-python2=True`` or ``--with-python3=True`` as an argument to\nthe sdist_dsc distutils command (or use both to be sure). For example,\nto build only a Python 3 package using the Python 3 interpreter::\n\n python3 setup.py --command-packages=stdeb.command bdist_deb\n\nTo build both Python 2 and Python 3 packages using the Python 3\ninterpreter (and only the Python3 package installs scripts)::\n\n python3 setup.py --command-packages=stdeb.command sdist_dsc --with-python2=True --with-python3=True --no-python2-scripts=True bdist_deb\n\nNews\n----\n\n * 2015-02-18: **Version 0.8.5**. See the `download page\n `__. Bugfixes: reverted\n change that installed into virtualenv when built in\n virtualenv. Improvements: Added\n `--allow-virtualenv-install-location` to allow installing into\n virtualenv location. Supports Debian Squeeze (6), Debian Wheezy\n (7), Ubuntu Precise (12.04), Ubuntu Trusty (14.04) and later\n releases.\n\n * 2015-02-16: **Version 0.8.4**. See the `download page\n `__. Bugfixes: works on\n Python 3.4 (e.g. Ubuntu Trusty) again. Improvements: Improved\n customization for Python 3 (Dirk Thomas added\n `force-x-python3-version` and `X-Python3-Version` and Louis for\n `Recommends3`, `Suggests3`, `Provides3` and `Replaces3`\n support. Supports Debian Squeeze (6), Debian Wheezy (7), Ubuntu\n Precise (12.04), Ubuntu Trusty (14.04) and later releases.\n\n * 2015-02-14: **Version 0.8.3**. See the `download page\n `__. This is a bugfix\n release which fixes several aspects of Unicode support. Tests pass\n on Debian Squeeze (6), Debian Wheezy (7), and Ubuntu Precise\n (12.04). Support for Python 3.4 (e.g. Ubuntu Trusty 14.04) was\n mistakenly broken and was fixed in the 0.8.3 release.\n\n * 2014-8-14: **Version 0.8.2**. See the `download page\n `__. This is a bugfix\n release fixing a serious issue that would cause a Python 2 package\n to be built if only a Python 3 package was requested in some\n circumstances.\n\n * 2014-8-10: **Version 0.8.1**. See the `download page\n `__. Due\n to bugs in 0.8.0, this release is the first announced from the 0.8\n series. Highlights since 0.7.1:\n\n - Full support for Python 3. This includes being run from Python 3\n and generating packages for Python 3. The default is to build\n Python 3 packages when run with Python 3 and to build Python 2\n packages when run from Python 2. Command line options can be used\n to build packages for the other Python interpreter, too.\n\n - Build .changes file for source package. While this still must be\n signed for upload to a PPA, for example, it should still be\n useful in some cases.\n\n - Switch to Debian source format 3.0 (quilt). Practically speaking,\n the .diff.gz file that used to come with a source package is now\n replaced by a .debian.tar.gz file.\n\n - Verify SSL certificates when talking to PyPI using\n Requests. (Verification requires Requests >= 0.8.8.)\n\n - Many bugfixes.\n\n * 2014-05-05: **Version 0.7.1**. See the `download page\n `__. Highlights for this\n release (you may also wish to consult the full `changelog\n `__). Due\n to bugs in 0.7.0, this release is the first announced from the 0.7\n series. Highlights since 0.6.0:\n\n - New commands: pypi-download and pypi-install to directly download\n and install packages from PyPI, respectively. py2dsc-deb directly\n creates a .deb file from a source tarball.\n\n - New distutils command: install_deb lets you directly install a\n python package as a standard system package.\n\n - Many bugfixes, including the new URL for PyPI.\n\n - Automated runs of test suite, thanks to Travis CI\n\n - Thanks to many, especially Piotr O\u017carowski for help with stdeb.\n\n * 2010-06-18: **Version 0.6.0**. See the `download page\n `__. Highlights for this\n release (you may also wish to consult the full `changelog\n `__):\n\n - A new ``debianize`` command to build a ``debian/`` directory\n alongside your setup.py file.\n\n - Bugfixes.\n\n * 2010-01-09: **Version 0.5.1**. Bugfix release. See the `download\n page `__, the `changelog\n `__\n and `release notes\n `__.\n\n * 2009-12-30: **Version 0.5.0**. See the `download page\n `__. Highlights for this\n release (you may also wish to consult the full `changelog\n `__):\n\n - A new ``pypi-install`` script will automatically download, make a\n .deb, and install packages from the `Python Package Index (PyPI)`_.\n\n - Removal of the setuptools dependency.\n\n - New option (`--guess-conflicts-provides-replaces`) to query\n original Debian packages for Conflicts/Provides/Replaces\n information.\n\n - As a result of these changes and to fix a couple bugs/warts, some\n minor backwards incompatible changes and deprecations were\n made. Please check the `release notes\n `__.\n\n * 2009-12-28: Version 0.4.3 Released. See the `download page`__. See the\n `changelog`__ and `release notes`__.\n * 2009-11-02: Version 0.4.2 Released. See the `download page`__. See the\n `changelog`__ and `release notes`__.\n * 2009-10-04: Version 0.4.1 Released. See the `download page`__. See the\n `changelog`__ and `release notes`__.\n * 2009-09-27: Version 0.4 Released. See the `download page`__. This\n version switches to debhelper 7. See the `Changelog for 0.4`__.\n\n__ http://pypi.python.org/pypi/stdeb/0.4.3\n__ http://github.com/astraw/stdeb/blob/release-0.4.3/CHANGELOG.txt\n__ http://github.com/astraw/stdeb/blob/release-0.4.3/RELEASE_NOTES.txt\n__ http://pypi.python.org/pypi/stdeb/0.4.2\n__ http://github.com/astraw/stdeb/blob/release-0.4.2/CHANGELOG.txt\n__ http://github.com/astraw/stdeb/blob/release-0.4.2/RELEASE_NOTES.txt\n__ http://pypi.python.org/pypi/stdeb/0.4.1\n__ http://github.com/astraw/stdeb/blob/release-0.4.1/CHANGELOG.txt\n__ http://github.com/astraw/stdeb/blob/release-0.4.1/RELEASE_NOTES.txt\n__ http://pypi.python.org/pypi/stdeb/0.4\n__ http://github.com/astraw/stdeb/blob/release-0.4/CHANGELOG.txt\n\nReleases up to and including 0.3.2 are compatible with Ubuntu Hardy.\n\n * 2009-10-04: Version 0.3.2 Released. See the `download page`__. See the `Changelog for 0.3.2`__\n * 2009-09-27: Version 0.3.1 Released. See the `download page`__. See the `Changelog for 0.3.1`__\n * 2009-03-21: Version 0.3 Released. See the `download page`__. See the `Changelog for 0.3`__\n * 2009-02-17: Version 0.2.3 Released. See the `download page`__. See the `Changelog for 0.2.3`__\n * 2009-01-29: Version 0.2.2 Released. See the `download page`__. See the `Changelog for 0.2.2`__\n * 2008-04-26: Version 0.2.1 Released. See the `download page`__. See the `Changelog for 0.2.1`__\n * 2008-04-26: Version 0.2 Released. See the `download page`__. See the `Changelog for 0.2`__\n * 2007-04-02: Version 0.2.a1 Released. See the `old download page`_.\n * 2006-06-19: Version 0.1 Released. See the `old download page`_.\n\n__ http://pypi.python.org/pypi/stdeb/0.3.2\n__ http://github.com/astraw/stdeb/blob/release-0.3.2/CHANGELOG.txt\n__ http://pypi.python.org/pypi/stdeb/0.3.1\n__ http://github.com/astraw/stdeb/blob/release-0.3.1/CHANGELOG.txt\n__ http://pypi.python.org/pypi/stdeb/0.3\n__ http://github.com/astraw/stdeb/blob/release-0.3/CHANGELOG.txt\n__ http://pypi.python.org/pypi/stdeb/0.2.3\n__ http://github.com/astraw/stdeb/blob/release-0.2.3/CHANGELOG.txt\n__ http://pypi.python.org/pypi/stdeb/0.2.2\n__ http://github.com/astraw/stdeb/blob/release-0.2.2/CHANGELOG.txt\n__ http://pypi.python.org/pypi/stdeb/0.2.1\n__ http://github.com/astraw/stdeb/blob/release-0.2.1/CHANGELOG.txt\n__ http://pypi.python.org/pypi/stdeb/0.2\n__ http://github.com/astraw/stdeb/blob/release-0.2/CHANGELOG.txt\n\nThe commands\n------------\n\npypi-download, command-line command\n```````````````````````````````````\n\n``pypi-download`` takes a package name, queries PyPI for it and downloads\nit::\n\n pypi-download [options] mypackage\n\npypi-install, command-line command\n``````````````````````````````````\n\n``pypi-install`` takes a package name, queries PyPI for it, downloads\nit, builds a Debian source package and then .deb from it, and this\ninstalls it::\n\n pypi-install [options] mypackage\n\npy2dsc, command-line command\n````````````````````````````\n\n``py2dsc`` takes a .tar.gz source package and build a Debian source\npackage from it::\n\n py2dsc [options] mypackage-0.1.tar.gz # uses pre-built Python source package\n\npy2dsc-deb, command-line command\n````````````````````````````````\n\n``py2dsc-deb`` takes a .tar.gz source package and build a Debian source\npackage and then a .deb file from it::\n\n py2dsc-deb [options] mypackage-0.1.tar.gz # uses pre-built Python source package\n\nsdist_dsc, distutils command\n````````````````````````````\nAll methods eventually result in a call to the ``sdist_dsc`` distutils\ncommand. You may prefer to do so directly::\n\n python setup.py --command-packages=stdeb.command sdist_dsc\n\nA Debian source package is produced from unmodified\nPython packages. The following files are produced in a newly created\nsubdirectory ``deb_dist``:\n\n * ``packagename_versionname.orig.tar.gz``\n * ``packagename_versionname-debianversion.dsc``\n * ``packagename_versionname-debianversion.diff.gz``\n\nThese can then be compiled into binary packages using the standard\nDebian machinery (e.g. dpkg-buildpackage).\n\nbdist_deb, distutils command\n````````````````````````````\nA ``bdist_deb`` distutils command is installed. This calls the\nsdist_dsc command and then runs dpkg-buildpackage on the result::\n\n python setup.py --command-packages=stdeb.command bdist_deb\n\ninstall_deb, distutils command\n``````````````````````````````\n\nThe ``install_deb`` distutils command calls the bdist_deb command and\nthen installs the result. You need to run this with superuser privilege::\n\n sudo python setup.py --command-packages=stdeb.command install_deb\n\ndebianize, distutils command\n````````````````````````````\nThe ``debianize`` distutils command builds the same ``debian/``\ndirectory as used in the previous command, but the output is placed\ndirectly in the project's root folder (alongside setup.py). This is\nuseful for customizing the Debian package directly (rather than using\nthe various stdeb options to tune the generated package).\n\n::\n\n python setup.py --command-packages=stdeb.command debianize\n\nA note about telling distutils to use the stdeb distutils commands\n``````````````````````````````````````````````````````````````````\n\nDistutils command packages can also be specified in distutils\nconfiguration files (rather than using the ``--command-packages``\ncommand line argument to ``setup.py``), as specified in the `distutils\ndocumentation\n`_. Specifically,\nyou could include this in your ``~/.pydistutils.cfg`` file::\n\n [global]\n command-packages: stdeb.command\n\nExamples\n--------\n\nThese all assume you have stdeb installed in your system Python\npath. stdeb also works from a non-system Python path (e.g. a\n`virtualenv `_).\n\nQuickstart 1: Install something from PyPI now, I don't care about anything else\n```````````````````````````````````````````````````````````````````````````````\n\nDo this from the command line::\n\n pypi-install mypackage\n\n**Warning: Despite doing its best, there is absolutely no way stdeb\ncan guarantee all the Debian package dependencies will be properly\nfulfilled without manual intervention. Using pypi-install bypasses\nyour ability to customize stdeb's behavior. Read the rest of this\ndocument to understand how to make better packages.**\n\nQuickstart 2: Just tell me the fastest way to make a .deb\n`````````````````````````````````````````````````````````\n\n(First, install stdeb as you normally install Python packages.)\n\nDo this from the directory with your `setup.py` file::\n\n python setup.py --command-packages=stdeb.command bdist_deb\n\nThis will make a Debian source package (.dsc, .orig.tar.gz and\n.diff.gz files) and then compile it to a Debian binary package (.deb)\nfor your current system. The result will be in ``deb_dist``.\n\n**Warning: installing the .deb file on other versions of Ubuntu or\nDebian than the one on which it was compiled will result in undefined\nbehavior. If you have extension modules, they will probably\nbreak. Even in the absence of extension modules, bad stuff will likely\nhappen.**\n\nFor this reason, it is much better to build the Debian source package\nand then compile that (e.g. using `Ubuntu's PPA`__) for each target\nversion of Debian or Ubuntu.\n\n__ https://help.launchpad.net/Packaging/PPA\n\nQuickstart 3: I read the warning, so show me how to make a source package, then compile it\n``````````````````````````````````````````````````````````````````````````````````````````\n\nThis generates a source package::\n\n wget http://pypi.python.org/packages/source/R/Reindent/Reindent-0.1.0.tar.gz\n py2dsc Reindent-0.1.0.tar.gz\n\nThis turns it into a .deb using the standard Debian tools. (Do *this*\non the same source package for each target distribution)::\n\n cd deb_dist/reindent-0.1.0/\n dpkg-buildpackage -rfakeroot -uc -us\n\nThis installs it::\n\n cd ..\n sudo dpkg -i python-reindent_0.1.0-1_all.deb\n\nQuickstart 4: Install from a Python package direct to a debian system package\n`````````````````````````````````````````````````````````````````````````````\n\n(First, install stdeb as you normally install Python packages.)\n\nDo this from the directory with your `setup.py` file::\n\n python setup.py --command-packages=stdeb.command install_deb\n\nThis will make a Debian source package (.dsc, .orig.tar.gz and\n.diff.gz files), compile it to a Debian binary package (.deb) for your\ncurrent system and then install it using ``dpkg``.\n\n\nAnother example, with more explanation\n``````````````````````````````````````\n\nThis example is more useful if you don't have a Python source package\n(.tar.gz file generated by ``python setup.py sdist``). For the sake of\nillustration, we do download such a tarball, but immediately unpack it\n(alternatively, use a version control system to grab the unpacked\nsource of a package)::\n\n wget http://pypi.python.org/packages/source/R/Reindent/Reindent-0.1.0.tar.gz\n tar xzf Reindent-0.1.0.tar.gz\n cd Reindent-0.1.0\n\nThe following will generate a directory ``deb_dist`` containing the\nfiles ``reindent_0.1.0-1.dsc``, ``reindent_0.1.0.orig.tar.gz`` and\n``reindent_0.1.0-1.diff.gz``, which, together, are a debian source\npackage::\n\n python setup.py --command-packages=stdeb.command sdist_dsc\n\nThe source generated in the above way is also extracted (using\n``dpkg-source -x``) and placed in the ``deb_dist`` subdirectory. To\ncontinue the example above::\n\n cd deb_dist/reindent-0.1.0\n dpkg-buildpackage -rfakeroot -uc -us\n\nFinally, the generated package can be installed::\n\n cd ..\n sudo dpkg -i python-reindent_0.1.0-1_all.deb\n\nFor yet another example of use, with still more explanation, see\n`allmydata-tahoe ticket 251`_.\n\n.. _allmydata-tahoe ticket 251: http://allmydata.org/trac/tahoe/ticket/251\n\nDownload\n--------\n\nFiles are available at the `download page`_ (for ancient releases, see\nthe `old download page`_).\n\n.. _download page: https://pypi.python.org/pypi/stdeb\n.. _old download page: http://stdeb.python-hosting.com/wiki/Download\n\nThe git repository is available at\nhttp://github.com/astraw/stdeb\n\nInstall (or, using stdeb to create an stdeb installer)\n------------------------------------------------------\n\nFor a bit of fun, here's how to install stdeb using stdeb. Note that\nstdeb is also in Debian and Ubuntu, so this recipe is only necessary\nto install a more recent stdeb.\n\n::\n\n STDEB_VERSION=\"0.8.5\"\n\n # Download stdeb\n wget http://pypi.python.org/packages/source/s/stdeb/stdeb-$STDEB_VERSION.tar.gz\n\n # Extract it\n tar xzf stdeb-$STDEB_VERSION.tar.gz\n\n # Enter extracted source package\n cd stdeb-$STDEB_VERSION\n\n # Build .deb (making use of stdeb package directory in sys.path).\n python setup.py --command-packages=stdeb.command bdist_deb\n\n # Install it\n sudo dpkg -i deb_dist/python-stdeb_$STDEB_VERSION-1_all.deb\n\nBackground\n----------\n\nFor the average Python package, its source distribution\n(python_package.tar.gz created with ``python setup.py sdist``)\ncontains nearly everything necessary to make a Debian source\npackage. This near-equivalence encouraged me to write this distutils\nextension, which executes the setup.py file to extract relevant\ninformation. `setuptools\n`_ may optionally\nbe used.\n\nI wrote this initially to Debianize several Python packages of my own,\nbut I have the feeling it could be generally useful. It appears\nsimilar, at least in theory, to easydeb_, `Logilab's Devtools`_,\nbdist_dpkg_, bdist_deb_, pkgme_ and `dh-virtualenv\n`__.\n\n.. _easydeb: http://easy-deb.sourceforge.net/\n.. _Logilab's DevTools: http://www.logilab.org/projects/devtools\n.. _bdist_dpkg: http://svn.python.org/view/sandbox/trunk/Lib/bdist_dpkg.py\n.. _bdist_deb: http://bugs.python.org/issue1054967\n.. _pkgme: https://launchpad.net/pkgme\n\nFeatures\n--------\n\n* Create a package for all Python versions supported by\n python-support. (Limiting this range is possible with the\n ``XS-Python-Version:`` config option.)\n\n* Automatic conversion of Python package names into valid Debian\n package names.\n\n* Attempt to automatically convert version numbers such that ordering\n is maintained. See also the config option\n ``Forced-Upstream-Version``.\n\n* Fine grained control of version numbers. (``Debian-Version``,\n ``Forced-Upstream-Version``, ``Upstream-Version-Prefix``,\n ``Upstream-Version-Suffix`` config options.)\n\n* Install .desktop files. (``MIME-Desktop-Files`` config option.)\n\n* Install .mime and .sharedmimeinfo files. (``MIME-File`` and\n ``Shared-MIME-File`` config options.)\n\n* Install copyright files. (``Copyright-File`` config option.)\n\n* Apply patches to upstream sources. (``Stdeb-Patch-File`` config\n option.)\n\n* Pass environment variables to setup.py script. (``Setup-Env-Vars``\n config option.)\n\nCustomizing the produced Debian source package (config options)\n---------------------------------------------------------------\n\nstdeb will attempt to provide reasonable defaults, but these are only\nguesses.\n\nThere are two ways to customize the Debian source package produced by\nstdeb. First, you may provide options to the distutils\ncommands. Second, you may provide an ``stdeb.cfg`` file.\n\nstdeb distutils command options\n```````````````````````````````\n\nThe sdist_dsc command takes command-line options to the distutils\ncommand. For example::\n\n python setup.py --command-packages=stdeb.command sdist_dsc --debian-version 0MyName1\n\nThis creates a Debian package with the Debian version set to\n\"0MyName1\".\n\nThese options can also be set via distutils configuration\nfiles. (These are the ``setup.cfg`` file alongside ``setup.py`` and\nthe ~/.pydistutils.cfg file.) In that case, put the arguments in the\n``[sdist_dsc]`` section. For example, a project's ``~/.setup.cfg``\nfile might have this::\n\n [sdist_dsc]\n debian-version: 0MyName1\n\nTo pass these commands to sdist_dsc when calling bdist_deb, do this::\n\n python setup.py sdist_dsc --debian-version 0MyName1 bdist_deb\n\n====================================== =========================================\n Command line option Effect\n====================================== =========================================\n --with-python2 build Python 2 package (default=True)\n --with-python3 build Python 3 package (default=False)\n --no-python2-scripts disable installation of Python 2 scripts (default=False)\n --no-python3-scripts disable installation of Python 3 scripts (default=False)\n --force-x-python3-version Override default minimum python3:any\n dependency with value from x-python3-\n version\n --allow-virtualenv-install-location Allow installing into\n /some/random/virtualenv-path\n --dist-dir (-d) directory to put final built\n distributions in (default='deb_dist')\n --patch-already-applied (-a) patch was already applied (used when\n py2dsc calls sdist_dsc)\n --default-distribution deprecated (see --suite)\n --suite (-z) distribution name to use if not\n specified in .cfg (default='unstable')\n --default-maintainer deprecated (see --maintainer)\n --maintainer (-m) maintainer name and email to use if not\n specified in .cfg (default from\n setup.py)\n --extra-cfg-file (-x) additional .cfg file (in addition to\n stdeb.cfg if present)\n --patch-file (-p) patch file applied before setup.py\n called (incompatible with file\n specified in .cfg)\n --patch-level (-l) patch file applied before setup.py\n called (incompatible with file\n specified in .cfg)\n --patch-posix (-q) apply the patch with --posix mode\n --remove-expanded-source-dir (-r) remove the expanded source directory\n --ignore-install-requires (-i) ignore the requirements from\n requires.txt in the egg-info directory\n --no-backwards-compatibility This option has no effect, is here for\n backwards compatibility, and may be\n removed someday.\n --guess-conflicts-provides-replaces If True, attempt to guess\n Conflicts/Provides/Replaces in\n debian/control based on apt-cache\n output. (Default=False).\n --use-premade-distfile (-P) use .zip or .tar.gz file already made\n by sdist command\n --source debian/control Source: (Default:\n )\n --package debian/control Package: (Default:\n python-)\n --suite suite (e.g. stable, lucid) in changelog\n (Default: unstable)\n --maintainer debian/control Maintainer: (Default:\n )\n --debian-version debian version (Default: 1)\n --section debian/control Section: (Default:\n python)\n --epoch version epoch\n --forced-upstream-version forced upstream version\n --upstream-version-prefix upstream version prefix\n --upstream-version-suffix upstream version suffix\n --uploaders uploaders\n --copyright-file copyright file\n --build-depends debian/control Build-Depends:\n --build-conflicts debian/control Build-Conflicts:\n --stdeb-patch-file file containing patches for stdeb to\n apply\n --stdeb-patch-level patch level provided to patch command\n --depends debian/control Depends:\n --suggests debian/control Suggests:\n --recommends debian/control Recommends:\n --xs-python-version debian/control XS-Python-Version:\n --x-python3-version debian/control X-Python3-Version:\n --dpkg-shlibdeps-params parameters passed to dpkg-shlibdeps\n --conflicts debian/control Conflicts:\n --provides debian/control Provides:\n --replaces debian/control Replaces:\n --mime-desktop-files MIME desktop files\n --mime-file MIME file\n --shared-mime-file shared MIME file\n --setup-env-vars environment variables passed to\n setup.py\n --udev-rules file with rules to install to udev\n\n====================================== =========================================\n\n\nYou may also pass any arguments described below for the stdeb.cfg file\nvia distutils options. Passing the arguments this way (either on the\ncommand line, or in the ``[sdist_dsc]`` section of a distutils .cfg\nfile) will take precedence. The option name should be given in lower\ncase.\n\nstdeb.cfg configuration file\n````````````````````````````\n\nYou may write config files of the format understood by `ConfigParser\n`_. When building\neach package, stdeb looks for the existance of a ``stdeb.cfg`` in the\ndirectory with ``setup.py``. You may specify an additional config file\nwith the command-line option --extra-cfg-file. The section should\nshould either be [DEFAULT] or [package_name], which package_name is\nspecified as the name argument to the setup() command. An example\nstdeb.cfg file is::\n\n [DEFAULT]\n Depends: python-numpy\n XS-Python-Version: >= 2.6\n\nAll available options:\n\n====================================== =========================================\n Config file option Effect\n====================================== =========================================\n Source debian/control Source: (Default:\n )\n Package debian/control Package: (Default:\n python-)\n Suite suite (e.g. stable, lucid) in changelog\n (Default: unstable)\n Maintainer debian/control Maintainer: (Default:\n )\n Debian-Version debian version (Default: 1)\n Section debian/control Section: (Default:\n python)\n Epoch version epoch\n Forced-Upstream-Version forced upstream version\n Upstream-Version-Prefix upstream version prefix\n Upstream-Version-Suffix upstream version suffix\n Uploaders uploaders\n Copyright-File copyright file\n Build-Depends debian/control Build-Depends:\n Build-Conflicts debian/control Build-Conflicts:\n Stdeb-Patch-File file containing patches for stdeb to\n apply\n Stdeb-Patch-Level patch level provided to patch command\n Depends debian/control Depends:\n Depends3 debian/control Depends: for python3\n Suggests debian/control Suggests:\n Suggests3 debian/control Suggests: for python3\n Recommends debian/control Recommends:\n Recommends3 debian/control Recommends: for python3\n XS-Python-Version debian/control XS-Python-Version:\n X-Python3-Version debian/control X-Python3-Version:\n Dpkg-Shlibdeps-Params parameters passed to dpkg-shlibdeps\n Conflicts debian/control Conflicts:\n Conflicts3 debian/control Conflicts: for python3\n Provides debian/control Provides:\n Provides3 debian/control Provides: for python3\n Replaces debian/control Replaces:\n Replaces3 debian/control Replaces: for python3\n MIME-Desktop-Files MIME desktop files\n MIME-File MIME file\n Shared-MIME-File shared MIME file\n Setup-Env-Vars environment variables passed to\n setup.py\n Udev-Rules file with rules to install to udev\n====================================== =========================================\n\nThe option names in stdeb.cfg files are not case sensitive.\n\nPrerequisites\n-------------\n\n * Python 2.7 or Python 3.x\n * Standard Debian utilities such as ``date``, ``dpkg-source`` and\n Debhelper 7 (use stdeb 0.3.x if you need to support older\n distributions without dh7)\n * If your setup.py uses the setuptools features ``setup_requires`` or\n ``install_requires``, you must run ``apt-file update`` prior to\n running any stdeb command.\n\nTODO\n----\n\n* Make output meet `Debian Python Policy`_ specifications or the `new\n python policy`_. This will include several things, among which are:\n\n - the ability to make custom changelogs\n - the ability to include project-supplied documentation as a -doc package\n - include license information in debian/copyright\n - the ability to include project-supplied examples, tests, and data\n as a separate package\n - much more not listed\n\n* Create (better) documentation\n\n* Log output using standard distutils mechanisms\n\n* Refactor the source code to have a simpler, more sane design\n\n.. _debian python policy: http://www.debian.org/doc/packaging-manuals/python-policy/\n.. _new python policy: http://wiki.debian.org/DebianPython/NewPolicy\n\nCall for volunteers\n-------------------\n\nI don't have a lot of time for this. This project stands a very real\nchance of being only a shadow of its potential self unless people step\nup and contribute. There are numerous ways in which people could\nhelp. In particular, I'd be interested in finding a co-maintainer or\nmaintainer if the project generates any interest. Secondarily, I would\nappreciate advice from Debian developers or Ubuntu MOTUs about the\narcane details of Python packaging.\n\nMailing list\n------------\n\nPlease address all questions to the distutils-SIG_\n\n.. _distutils-SIG: http://mail.python.org/mailman/listinfo/distutils-sig\n\nLicense\n-------\n\nMIT-style license. Copyright (c) 2006-2015 stdeb authors.\n\nSee the LICENSE.txt file provided with the source distribution for\nfull details.\n\nAuthors\n-------\n\n* Andrew Straw \n* Pedro Algarvio, aka, s0undt3ch \n* Gerry Reno (initial bdist_deb implementation)\n\nAdditional Credits\n------------------\n\n* Zooko O'Whielacronx for the autofind-depends patch.\n* Brett (last name unknown) for the --ignore-install-requires patch.\n* Ximin Luo for a bug fix.\n* Alexander D. Sedov for bug fixes and suggestions.\n* Michele Mattioni for bug fix.\n* Alexander V. Nikolaev for the debhelper buildsystem specification.\n* Roland Sommer for the description field bugfix.\n* Barry Warsaw for suggesting the debianize command.\n* Asheesh Laroia for updating the PyPI URL.\n* Piotr O\u017carowski for implementing dh_python2 support.\n* Nikita Burtsev for unicode tests and fixes\n* Miko\u0142aj Siedlarek for a bugfix\n* Dirk Thomas for --force-x-python3-version and X-Python3-Version\n* Louis for Recommends3, Suggests3, Provides3 and Replaces3 support\n* kzwin for interop with virtualenv\n* GitHub_ for hosting services.\n* WebFaction_ (aka `python-hosting`_) for previous hosting services.\n* TravisCI_ for continuous integration\n\n.. _GitHub: http://github.com/\n.. _WebFaction: http://webfaction.com/\n.. _python-hosting: http://python-hosting.com/\n.. _TravisCI: http://travis-ci.org/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/astraw/stdeb", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "stdeb", "package_url": "https://pypi.org/project/stdeb/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/stdeb/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/astraw/stdeb" }, "release_url": "https://pypi.org/project/stdeb/0.8.5/", "requires_dist": null, "requires_python": null, "summary": "Python to Debian source package conversion utility", "version": "0.8.5" }, "last_serial": 1429216, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "4a33a2e4df0e7e4ffeafa337cc4306c3", "sha256": "5df09908a32789641b4ac3ef1acfbc4f2ab280a95082d5728998246a61cac393" }, "downloads": -1, "filename": "stdeb-0.2.tar.gz", "has_sig": true, "md5_digest": "4a33a2e4df0e7e4ffeafa337cc4306c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17612, "upload_time": "2008-04-26T10:28:50", "url": "https://files.pythonhosted.org/packages/79/16/d4a4d87da9342a00206c2c032f13cbb8ff1c64de7c7739524ad5e6fc19c3/stdeb-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "ebd491cd3f885aced34fabfa788fb78a", "sha256": "4859d9fc54d6c3a2d623c4895920ec7cd2a3563661fa076f56d4f2a142941ff7" }, "downloads": -1, "filename": "stdeb-0.2.1.tar.gz", "has_sig": true, "md5_digest": "ebd491cd3f885aced34fabfa788fb78a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18216, "upload_time": "2008-04-26T19:47:32", "url": "https://files.pythonhosted.org/packages/15/29/990c45d75e1eb494504e3506288c39d54548d7919ffea3b227007109427c/stdeb-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "8371bca32f349a0b0c87dec9de783fc7", "sha256": "99c2f5b1703bdc9cadcacacc4ef2d63e44c1fe96172557873b94a247098dda44" }, "downloads": -1, "filename": "stdeb-0.2.2.tar.gz", "has_sig": true, "md5_digest": "8371bca32f349a0b0c87dec9de783fc7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14785, "upload_time": "2009-01-29T08:48:40", "url": "https://files.pythonhosted.org/packages/ee/e3/3f51c28a465ead62efd6806014a0814c3f6afdad8a0ef6175221e890e607/stdeb-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "13abfe5893245b62f0fe8a2610fe270b", "sha256": "fe6162e3401a3350684350d682608a13260515cef97fa2e7c8ca5e08799f4a40" }, "downloads": -1, "filename": "stdeb-0.2.3.tar.gz", "has_sig": false, "md5_digest": "13abfe5893245b62f0fe8a2610fe270b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21289, "upload_time": "2009-02-17T12:25:09", "url": "https://files.pythonhosted.org/packages/5a/d6/92629af26cc619f502d8e168de882043e57a5600026af192d1cb64cd82e8/stdeb-0.2.3.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "e692f745597dcdd9343ce133e3b910d0", "sha256": "482f4e82ff6a2c0496c824ed86044462d39d3b78253f515e397a7d26989363c8" }, "downloads": -1, "filename": "stdeb-0.3.tar.gz", "has_sig": true, "md5_digest": "e692f745597dcdd9343ce133e3b910d0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21698, "upload_time": "2009-03-22T02:26:30", "url": "https://files.pythonhosted.org/packages/83/27/7663e24afbae9ac61abd056389f93a1b1a332bb1234bdd1906f0a3cc7198/stdeb-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "832f9273b8fd4d4ce4a25579903d259a", "sha256": "8e501ac9a5f1061bb98aa73b954a0b3555d7394a5f370679bb818ec09ad77f8e" }, "downloads": -1, "filename": "stdeb-0.3.1.tar.gz", "has_sig": false, "md5_digest": "832f9273b8fd4d4ce4a25579903d259a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22472, "upload_time": "2009-09-27T23:56:24", "url": "https://files.pythonhosted.org/packages/04/b1/85f529dd8e121feaff2cbfdc90b29a1e48daaf8b71c0a71ccfa9a3ea06a4/stdeb-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "07e0a0142db6cd4f234e3d162771a7b2", "sha256": "a35b729eae688eb05e1203a87e583b9557844473f2e249baf00d241fc38389c5" }, "downloads": -1, "filename": "stdeb-0.3.2.tar.gz", "has_sig": false, "md5_digest": "07e0a0142db6cd4f234e3d162771a7b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22644, "upload_time": "2009-10-04T19:37:22", "url": "https://files.pythonhosted.org/packages/d9/71/9c71811b585ad6b39c2e49643a24f5cf5842d490aed67d0cd8b2c862635e/stdeb-0.3.2.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "b63b0fcba06692d652abb2799d6f7ea8", "sha256": "e19af9733bf377531e53ff356b4f78231618ff75526e99d383c7a1bcaf637b4d" }, "downloads": -1, "filename": "stdeb-0.4.tar.gz", "has_sig": false, "md5_digest": "b63b0fcba06692d652abb2799d6f7ea8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22700, "upload_time": "2009-09-27T23:56:34", "url": "https://files.pythonhosted.org/packages/c9/fe/1b9f34df0d6ff6ca714b3f6db9f1700af30af306b0a27adadae5847cb603/stdeb-0.4.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "36b99b3162afbd37fa5b90270dd7ed33", "sha256": "9e91ebd2ce72bf2dc3f03bbf320c309471ce57510b4748c183cb30f485a0b94d" }, "downloads": -1, "filename": "stdeb-0.4.1.tar.gz", "has_sig": false, "md5_digest": "36b99b3162afbd37fa5b90270dd7ed33", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25266, "upload_time": "2009-10-04T19:37:36", "url": "https://files.pythonhosted.org/packages/5d/23/170ad9b0b8bb75e41114626be5728036a05ff536b13c1dfb87271d5288ec/stdeb-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "2b7854f9805309f4fd239d74604446aa", "sha256": "c957528158cce3129112277f87fabcb27dfe561b8266d8c9b8549d4e9f5e0c6c" }, "downloads": -1, "filename": "stdeb-0.4.2.tar.gz", "has_sig": false, "md5_digest": "2b7854f9805309f4fd239d74604446aa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25511, "upload_time": "2009-11-02T22:56:31", "url": "https://files.pythonhosted.org/packages/5d/8e/07b661a4895a87264c85d5d7631b714b25fa4c7eb71251b7e259054c6d7a/stdeb-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "ba5b0bc774ecaef8699578428b18236f", "sha256": "17951c83f69b6732dd8e5e8a1cac92842901e51b6c2c082429233304fbc0bc06" }, "downloads": -1, "filename": "stdeb-0.4.3.tar.gz", "has_sig": false, "md5_digest": "ba5b0bc774ecaef8699578428b18236f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26094, "upload_time": "2009-12-28T21:25:03", "url": "https://files.pythonhosted.org/packages/5a/c1/23cd9971c6b9a7a7fee8786d3efd5f650ba1d9ef447f707310cb28d80870/stdeb-0.4.3.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "c602b272947fd19b3619b051278fe409", "sha256": "09a2854882d74a3b3a248d011d4a8f7a0ef09502a3f11284f7c95d3115731402" }, "downloads": -1, "filename": "stdeb-0.5.0.tar.gz", "has_sig": false, "md5_digest": "c602b272947fd19b3619b051278fe409", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30971, "upload_time": "2009-12-31T00:55:28", "url": "https://files.pythonhosted.org/packages/a2/e6/b4b6f3291902ca63f98bc903e2182b835ef252380c18440cc8e4929326b6/stdeb-0.5.0.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "6f6ce54dccd299d735c6d9d8141f58db", "sha256": "66aa7fb3fbad64b68a964058333663e7bebb834afc4d2d84a5a30512d36aaaa0" }, "downloads": -1, "filename": "stdeb-0.5.1.tar.gz", "has_sig": true, "md5_digest": "6f6ce54dccd299d735c6d9d8141f58db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37581, "upload_time": "2010-01-09T20:17:54", "url": "https://files.pythonhosted.org/packages/60/e4/014e5d752346e062c9da6c239437d01e7013aaaf822680998df356766e53/stdeb-0.5.1.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "37ecdb2534a8f6b01039098f87abb0f1", "sha256": "30fe8f9dceff0db6811b371bf3e4f9c70fcfae4c2e820208a74e5d256b9ae2b9" }, "downloads": -1, "filename": "stdeb-0.6.0.tar.gz", "has_sig": false, "md5_digest": "37ecdb2534a8f6b01039098f87abb0f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 39749, "upload_time": "2010-06-19T02:51:27", "url": "https://files.pythonhosted.org/packages/77/22/9b9fe5cb8478815fad79495b62b7921662b3180a767f1d4add455a58227e/stdeb-0.6.0.tar.gz" } ], "0.7.0": [ { "comment_text": "", "digests": { "md5": "00e4a74757a9bd406bb11a44990f39ae", "sha256": "af89e01abef976e450a2b55a33683ba428cd403ca724be2a4c8bc62a26530ee8" }, "downloads": -1, "filename": "stdeb-0.7.0.tar.gz", "has_sig": false, "md5_digest": "00e4a74757a9bd406bb11a44990f39ae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38018, "upload_time": "2014-05-04T20:40:11", "url": "https://files.pythonhosted.org/packages/95/8f/a3c72c6ae29c963cd00d39a438846e55b53c76b2af79b12511e165464dd8/stdeb-0.7.0.tar.gz" } ], "0.7.1": [ { "comment_text": "", "digests": { "md5": "204338116e0b923ac6a18b8af1b81704", "sha256": "5811d71fa4f0a93a975d5a2e837c74acb9524f37af00d96c6be8f72cede777b9" }, "downloads": -1, "filename": "stdeb-0.7.1.tar.gz", "has_sig": false, "md5_digest": "204338116e0b923ac6a18b8af1b81704", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 40009, "upload_time": "2014-05-05T16:21:22", "url": "https://files.pythonhosted.org/packages/50/b0/d67010c81ef5e090c57dfbaf7deaec19f8760374c338e3a17de701aa3095/stdeb-0.7.1.tar.gz" } ], "0.8.0": [ { "comment_text": "", "digests": { "md5": "0ff25fcf4b960a9854df9d6b76803c8a", "sha256": "91c68184fdf54e211073202503cbf48140480781dcbd85b75a0134af1449ffab" }, "downloads": -1, "filename": "stdeb-0.8.0.tar.gz", "has_sig": false, "md5_digest": "0ff25fcf4b960a9854df9d6b76803c8a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 46364, "upload_time": "2014-08-10T14:04:17", "url": "https://files.pythonhosted.org/packages/f3/f7/21cfe17df3d9cef4bb804e6910969a255b36b4f3c4db214190006649b379/stdeb-0.8.0.tar.gz" } ], "0.8.1": [ { "comment_text": "", "digests": { "md5": "d5f568deedbf62f60c25c8bbdaeed0ec", "sha256": "c6f200f91b0315dbfe04dc79b5d8df6bc30c266211f2e930507a31e32f50e450" }, "downloads": -1, "filename": "stdeb-0.8.1.tar.gz", "has_sig": false, "md5_digest": "d5f568deedbf62f60c25c8bbdaeed0ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 46678, "upload_time": "2014-08-10T14:46:31", "url": "https://files.pythonhosted.org/packages/72/7c/0b6bafb25dcf71bb645d93dad7d8cbc0920001be2c044d1aec246802fe00/stdeb-0.8.1.tar.gz" } ], "0.8.2": [ { "comment_text": "", "digests": { "md5": "d5b75b3bebfd31ab68f5e98c078fc5f2", "sha256": "5396c19bd20431effba115db5f77a010cf257644837e3df4ba4ab59a773b7fd4" }, "downloads": -1, "filename": "stdeb-0.8.2.tar.gz", "has_sig": false, "md5_digest": "d5b75b3bebfd31ab68f5e98c078fc5f2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 47000, "upload_time": "2014-08-14T11:12:07", "url": "https://files.pythonhosted.org/packages/4e/f3/e763d40adb26971825352dfc3780f45b3ab9f7f9e646e488ec11bcab2c56/stdeb-0.8.2.tar.gz" } ], "0.8.3": [ { "comment_text": "", "digests": { "md5": "2d15e1b71719c4cd2237022ff7ff04d3", "sha256": "9f820b368cd6215880d1196a31d4ce88bc995abd4449478a6c3b6c1447f066eb" }, "downloads": -1, "filename": "stdeb-0.8.3.tar.gz", "has_sig": false, "md5_digest": "2d15e1b71719c4cd2237022ff7ff04d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 49691, "upload_time": "2015-02-14T14:04:54", "url": "https://files.pythonhosted.org/packages/ac/5d/bcbb5bd6524078cf55a15c5d3cca6ef745084e056ab888f0e597d845aa1d/stdeb-0.8.3.tar.gz" } ], "0.8.4": [ { "comment_text": "", "digests": { "md5": "153c894e5eab4f8d8a7538fb52d99607", "sha256": "ac6d095919ab8256850431fcbcbff21b90883f6a5c0987290aea71ca73f334c1" }, "downloads": -1, "filename": "stdeb-0.8.4.tar.gz", "has_sig": false, "md5_digest": "153c894e5eab4f8d8a7538fb52d99607", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 51748, "upload_time": "2015-02-16T06:29:49", "url": "https://files.pythonhosted.org/packages/65/cb/4f6b4122bc2afed396bfe62fea6e38423606547c75c84061f76abcd8e452/stdeb-0.8.4.tar.gz" } ], "0.8.5": [ { "comment_text": "", "digests": { "md5": "afebfb9ca1c545fa15ad575679879f91", "sha256": "0ed2c2cc6b8ba21da7d646c6f37ca60b22e9e4950e3cec6bcd9c2e7e57e3747e" }, "downloads": -1, "filename": "stdeb-0.8.5.tar.gz", "has_sig": false, "md5_digest": "afebfb9ca1c545fa15ad575679879f91", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 51616, "upload_time": "2015-02-18T23:32:04", "url": "https://files.pythonhosted.org/packages/5f/d8/c601cd5762bd5a611daa17483e23adaf70cc0ba94bb80b03fc86f01583f7/stdeb-0.8.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "afebfb9ca1c545fa15ad575679879f91", "sha256": "0ed2c2cc6b8ba21da7d646c6f37ca60b22e9e4950e3cec6bcd9c2e7e57e3747e" }, "downloads": -1, "filename": "stdeb-0.8.5.tar.gz", "has_sig": false, "md5_digest": "afebfb9ca1c545fa15ad575679879f91", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 51616, "upload_time": "2015-02-18T23:32:04", "url": "https://files.pythonhosted.org/packages/5f/d8/c601cd5762bd5a611daa17483e23adaf70cc0ba94bb80b03fc86f01583f7/stdeb-0.8.5.tar.gz" } ] }