{ "info": { "author": "Georgi Valkov", "author_email": "georgi.t.valkov@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "setuptools-py2cfg\n=================\n\n.. class:: no-web no-pdf\n\n|pypi| |build| |license|\n\nSince version 30.3.0, `setuptools supports`_ declarative configuration through the\n``setup.cfg`` file. This script helps convert existing ``setup.py`` files to\n``setup.cfg`` in the format expected by setuptools.\n\n\n\nUsage\n-----\n\nJust point ``setuptools-py2cfg`` to a ``setup.py`` file or run it in a directory\ncontaining a ``setup.py``. For example, given the following ``setup.py``:\n\n.. code-block:: python\n\n from setuptools import setup, find_packages\n\n classifiers = [\n 'Development Status :: 5 - Production/Stable',\n 'Programming Language :: Python :: 2.7',\n 'Programming Language :: Python :: 3',\n 'Programming Language :: Python :: 3.3',\n 'Programming Language :: Python :: 3.4',\n 'Programming Language :: Python :: 3.5',\n 'Programming Language :: Python :: 3.6',\n 'Intended Audience :: Developers',\n 'Topic :: Software Development :: Libraries',\n 'License :: OSI Approved :: BSD License',\n ]\n\n extras_require = {\n 'tests': [\n 'tox >= 2.6.0',\n 'pytest >= 3.0.3',\n ],\n 'devel': [\n 'check-manifest >= 0.35',\n 'readme-renderer >= 16.0',\n ]\n }\n\n kw = {\n 'name': 'ansimarkup',\n 'version': '1.3.0',\n\n 'description': 'Produce colored terminal text with an xml-like markup',\n 'long_description': open('README.rst').read(),\n\n 'author': 'Georgi Valkov',\n 'author_email': 'georgi.t.valkov@gmail.com',\n 'license': 'Revised BSD License',\n 'keywords': 'ansi terminal markup',\n 'url': 'https://github.com/gvalkov/python-ansimarkup',\n 'classifiers': classifiers,\n 'install_requires': 'colorama',\n 'extras_require': extras_require,\n 'packages': find_packages(),\n 'zip_safe': True,\n }\n\n if __name__ == '__main__':\n setup(**kw)\n\nRunning ``setuptools-py2cfg.py`` would print:\n\n.. code-block:: ini\n\n [metadata]\n name = ansimarkup\n version = 1.3.0\n author = Georgi Valkov\n author_email = georgi.t.valkov@gmail.com\n license = Revised BSD License\n description = Produce colored terminal text with an xml-like markup\n keywords = ansi, terminal, markup\n url = https://github.com/gvalkov/python-ansimarkup\n long_description = file: README.rst\n classifiers =\n Development Status :: 5 - Production/Stable\n Programming Language :: Python :: 2.7\n Programming Language :: Python :: 3\n Programming Language :: Python :: 3.3\n Programming Language :: Python :: 3.4\n Programming Language :: Python :: 3.5\n Programming Language :: Python :: 3.6\n Intended Audience :: Developers\n Topic :: Software Development :: Libraries\n License :: OSI Approved :: BSD License\n\n [options]\n packages = find:\n zip_safe = True\n install_requires = colorama\n\n [options.extras_require]\n tests =\n tox >= 2.6.0\n pytest >= 3.0.3\n devel =\n check-manifest >= 0.35\n readme-renderer >= 16.0\n\nThere are several non-essential options that control the format of the generated ini-file::\n\n usage: setuptools-py2cfg.py [-h] [-t int] [-i int] [-a] [path]\n\n converts an existing setup.py file to a setup.cfg in the format expected by\n setuptools\n\n positional arguments:\n path path to setup.py file (default: ./setup.py)\n\n optional arguments:\n -h, --help show this help message and exit\n -t int, --dangling-list-threshold int\n lists longer than this many characters are converted\n to a dangling list (default: 40)\n -i int, --dangling-list-indent int\n number of spaces to use when indenting dangling lists\n (default: 4)\n -a, --always-use-dangling-lists\n use dangling lists everywhere (default: False)\n\nKeep in mind that a ``setup.py`` file with a single call to\n``setuptools.setup()`` is still needed after migrating all metadata to ``setup.cfg``.\n\n\nInstallation\n------------\n\nThe latest stable version of setuptools-py2cfg can be installed from pypi:\n\n.. code-block:: bash\n\n $ pip install setuptools-py2cfg\n\n\nTodo\n----\n\n- Handle ``entry_scripts`` in ini-format.\n- Write a test or two.\n\n\nLicense\n-------\n\nReleased under the terms of the `Revised BSD License`_.\n\n\n.. |pypi| image:: https://img.shields.io/pypi/v/setuptools-py2cfg.svg?style=flat-square&label=latest%20stable%20version\n :target: https://pypi.python.org/pypi/setuptools-py2cfg\n :alt: Latest version released on PyPi\n\n.. |license| image:: https://img.shields.io/pypi/l/setuptools-py2cfg.svg?style=flat-square&label=license\n :target: https://pypi.python.org/pypi/setuptools-py2cfg\n :alt: BSD 3-Clause\n\n.. |build| image:: https://img.shields.io/travis/gvalkov/setuptools-py2cfg/master.svg?style=flat-square&label=build\n :target: http://travis-ci.org/gvalkov/python-setuptools-py2cfg\n :alt: Build status\n\n.. _`Revised BSD License`: https://raw.github.com/gvalkov/setuptools-py2cfg/master/LICENSE\n.. _`setuptools supports`: http://setuptools.readthedocs.io/en/latest/setuptools.html#configuring-setup-using-setup-cfg-files\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/gvalkov/setuptools-py2cfg", "keywords": "setuptools", "license": "Revised BSD License", "maintainer": "", "maintainer_email": "", "name": "setuptools-py2cfg", "package_url": "https://pypi.org/project/setuptools-py2cfg/", "platform": "", "project_url": "https://pypi.org/project/setuptools-py2cfg/", "project_urls": { "Homepage": "https://github.com/gvalkov/setuptools-py2cfg" }, "release_url": "https://pypi.org/project/setuptools-py2cfg/1.2.0/", "requires_dist": null, "requires_python": "", "summary": "Convert a setuptools setup.py to a setup.cfg", "version": "1.2.0" }, "last_serial": 4399347, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "eceba08f7915af8d4c39515890e914e0", "sha256": "6b7dc1fde2b6792d659586dd29cc7f4c727d80939a99b655ea8f52aa0077e747" }, "downloads": -1, "filename": "setuptools_py2cfg-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "eceba08f7915af8d4c39515890e914e0", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 7869, "upload_time": "2017-11-12T14:17:21", "url": "https://files.pythonhosted.org/packages/59/d4/e24e13d232615f8edd079d5fe35b3ea4c0546058ed14baa3934e3071407f/setuptools_py2cfg-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0b9e37fad4ad0ed1724327746d4fe119", "sha256": "b5a1828c0e4ad8606d1130281b94534ce27aac5d278c2dcc8831610f1665ce69" }, "downloads": -1, "filename": "setuptools-py2cfg-1.0.0.tar.gz", "has_sig": false, "md5_digest": "0b9e37fad4ad0ed1724327746d4fe119", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4919, "upload_time": "2017-11-12T14:17:19", "url": "https://files.pythonhosted.org/packages/48/3e/36af9f6f6c66dfd4fd171d9428d6ae19523e36b7c0fd64ca3874b578fce0/setuptools-py2cfg-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "a70df4c8d9eb88e11942fbd9c560b1bb", "sha256": "4eeedbf741453260f118e59c14fcb26b0f1d87553b7cfcad405ce6808e4907f5" }, "downloads": -1, "filename": "setuptools_py2cfg-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a70df4c8d9eb88e11942fbd9c560b1bb", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 8468, "upload_time": "2018-04-30T20:22:56", "url": "https://files.pythonhosted.org/packages/70/d8/544c71105e5394e9eb26d519bd448e14d4757296846a742195f38c8ed6df/setuptools_py2cfg-1.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5952b6d53490a6ffa3064691bbdd419e", "sha256": "d681fc9336042615ce274f9664e8fc9037e98ce966b63f3b6ad34a9782125c51" }, "downloads": -1, "filename": "setuptools-py2cfg-1.1.0.tar.gz", "has_sig": false, "md5_digest": "5952b6d53490a6ffa3064691bbdd419e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5320, "upload_time": "2018-04-30T20:22:55", "url": "https://files.pythonhosted.org/packages/6c/40/0d82e633cacc27610ab86d305cd61033be9b34a1080bfda9b0a2c76854bc/setuptools-py2cfg-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "87c0e338439dbd70b7c1623a9cf473e8", "sha256": "86286bb38cb2a942632e512c01fe2b8d1dbad92283844c76883c1a3b9fd39200" }, "downloads": -1, "filename": "setuptools_py2cfg-1.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "87c0e338439dbd70b7c1623a9cf473e8", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 8764, "upload_time": "2018-10-21T12:29:26", "url": "https://files.pythonhosted.org/packages/85/8e/f108befba6ead1150a8bf3c363f3447c082403de7c2223f62f57c3b3a7b1/setuptools_py2cfg-1.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "473cc2659a0b06cede77162b47100aad", "sha256": "63480a057f544dd3ffb722003c269491fea751fbb4af965009042473cbddcb53" }, "downloads": -1, "filename": "setuptools-py2cfg-1.2.0.tar.gz", "has_sig": false, "md5_digest": "473cc2659a0b06cede77162b47100aad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5429, "upload_time": "2018-10-21T12:29:23", "url": "https://files.pythonhosted.org/packages/92/9e/fb2763391fbeaee82069288fe92f80743f056441e259cf4dd8aba9cb6ea8/setuptools-py2cfg-1.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "87c0e338439dbd70b7c1623a9cf473e8", "sha256": "86286bb38cb2a942632e512c01fe2b8d1dbad92283844c76883c1a3b9fd39200" }, "downloads": -1, "filename": "setuptools_py2cfg-1.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "87c0e338439dbd70b7c1623a9cf473e8", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 8764, "upload_time": "2018-10-21T12:29:26", "url": "https://files.pythonhosted.org/packages/85/8e/f108befba6ead1150a8bf3c363f3447c082403de7c2223f62f57c3b3a7b1/setuptools_py2cfg-1.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "473cc2659a0b06cede77162b47100aad", "sha256": "63480a057f544dd3ffb722003c269491fea751fbb4af965009042473cbddcb53" }, "downloads": -1, "filename": "setuptools-py2cfg-1.2.0.tar.gz", "has_sig": false, "md5_digest": "473cc2659a0b06cede77162b47100aad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5429, "upload_time": "2018-10-21T12:29:23", "url": "https://files.pythonhosted.org/packages/92/9e/fb2763391fbeaee82069288fe92f80743f056441e259cf4dd8aba9cb6ea8/setuptools-py2cfg-1.2.0.tar.gz" } ] }