{ "info": { "author": "Bernardo Mart\u00ednez Garrido", "author_email": "programming@bernardomg.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "=================\nVersion extractor\n=================\n\nA tool for extracting the version of a Python file.\n\n.. image:: https://badge.fury.io/py/bernardomg.version-extractor.svg\n :target: https://pypi.python.org/pypi/bernardomg.version-extractor\n :alt: Version extractor Pypi package page\n\n.. image:: https://img.shields.io/badge/docs-release-blue.svg\n :target: http://docs.bernardomg.com/python-version-extractor\n :alt: Version extractor latest documentation Status\n.. image:: https://img.shields.io/badge/docs-develop-blue.svg\n :target: http://docs.bernardomg.com/development/python-version-extractor\n :alt: Version extractor development documentation Status\n\nFeatures\n--------\n\n- Extract the value from a version field inside any Python file\n\nDocumentation\n-------------\n\nDocumentation sources are included with the project, and used to generate the\ndocumentation sites:\n\n- The `latest docs`_ are always generated for the latest release, kept in the 'master' branch\n- The `development docs`_ are generated from the latest code in the 'develop' branch\n\nYou can also create the documentation from the source files, kept in the 'docs'\nfolder, with the help of `Sphinx`_. For this use the makefile, or the make.bat\nfile, contained on that folder.\n\nPrerequisites\n~~~~~~~~~~~~~\n\nThe project has been tested in the following versions of the interpreter:\n\n- Python 3.4\n- Python 3.5\n- Python 3.6\n- Pypy 3\n\nAll other dependencies are indicated on the requirements.txt file.\n\nThese can be installed with:\n\n``$ pip install --upgrade -r requirements.txt``\n\nInstalling\n~~~~~~~~~~\n\nThe project is offered as a `Pypi package`_, and using pip is the preferred way\nto install it. For this use the following command;\n\n``$ pip install bernardomg.version-extractor``\n\nIf needed, manual installation is possible:\n\n``$ python setup.py install``\n\nUsage\n-----\n\nJust import and use the function::\n\n from version_extractor import extract_version\n\n version = extract_version('tests/resources/__init__.py')\n\nOr use a preconfigured function::\n\n from version_extractor import extract_version_init\n\n version = extract_version_init('tests/resources')\n\nThis is useful when setting up a setup.py file::\n\n setup(\n ...\n version=extract_version_init(_source_package),\n ...\n )\n\nTesting\n-------\n\nThe tests included with the project can be run with:\n\n``$ python setup.py test``\n\nThis will delegate the execution to tox.\n\nIt is possible to run just one of the test profiles, in this case the py36 profile:\n\n``$ python setup.py test -p \"py36\"``\n\nCollaborate\n-----------\n\nAny kind of help with the project will be well received, and there are two main ways to give such help:\n\n- Reporting errors and asking for extensions through the issues management\n- or forking the repository and extending the project\n\nIssues management\n~~~~~~~~~~~~~~~~~\n\nIssues are managed at the GitHub `project issues tracker`_, where any Github\nuser may report bugs or ask for new features.\n\nGetting the code\n~~~~~~~~~~~~~~~~\n\nIf you wish to fork or modify the code, visit the `GitHub project page`_, where\nthe latest versions are always kept. Check the 'master' branch for the latest\nrelease, and the 'develop' for the current, and stable, development version.\n\nLicense\n-------\n\nThe project has been released under the `MIT License`_.\n\n.. _GitHub project page: https://github.com/Bernardo-MG/python-version-extractor\n.. _latest docs: http://docs.bernardomg.com/python-version-extractor\n.. _development docs: http://docs.bernardomg.com/development/python-version-extractor\n.. _Pypi package: https://pypi.python.org/pypi/bernardomg.version-extractor\n.. _MIT License: http://www.opensource.org/licenses/mit-license.php\n.. _project issues tracker: https://github.com/Bernardo-MG/python-version-extractor/issues\n.. _Sphinx: http://sphinx-doc.org/", "description_content_type": null, "docs_url": null, "download_url": "https://pypi.python.org/pypi/version_extractor", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Bernardo-MG/python-version-extractor", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "bernardomg.version-extractor", "package_url": "https://pypi.org/project/bernardomg.version-extractor/", "platform": "any", "project_url": "https://pypi.org/project/bernardomg.version-extractor/", "project_urls": { "Download": "https://pypi.python.org/pypi/version_extractor", "Homepage": "https://github.com/Bernardo-MG/python-version-extractor" }, "release_url": "https://pypi.org/project/bernardomg.version-extractor/1.0.2/", "requires_dist": null, "requires_python": "", "summary": "Extracts the version from a Python file", "version": "1.0.2" }, "last_serial": 3482048, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "7f2908cfada8b05bfdd18005ac08d9ad", "sha256": "df00fbac7c478cd6834ba0af2e6ec3f097e907d3f2763968b79b3d19e49b8407" }, "downloads": -1, "filename": "bernardomg.version_extractor-1.0.0.tar.gz", "has_sig": false, "md5_digest": "7f2908cfada8b05bfdd18005ac08d9ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12800, "upload_time": "2018-01-07T19:31:32", "url": "https://files.pythonhosted.org/packages/ee/96/6ae76644a53074154fc0749c502204318f8ed3b5880b8baa971224d77c22/bernardomg.version_extractor-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "91a0b72daf37e494c884592f4006e552", "sha256": "5123379f1cf046b71a8a57f330897586e83223f8fdb1b7cc268e0ef2f4ece4ba" }, "downloads": -1, "filename": "bernardomg.version_extractor-1.0.1.tar.gz", "has_sig": false, "md5_digest": "91a0b72daf37e494c884592f4006e552", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12290, "upload_time": "2018-01-08T20:46:31", "url": "https://files.pythonhosted.org/packages/fe/1a/e06c1852e465f43ddb7a0c9b91f3777c70e2a7604ae045cbd442dea843c6/bernardomg.version_extractor-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "35bd29d2fe771430c26f141537c2bffa", "sha256": "85e3ff78980f5dcf585dc152c8c2a6d5e641469421e4157ac7f496555d7731e2" }, "downloads": -1, "filename": "bernardomg.version_extractor-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "35bd29d2fe771430c26f141537c2bffa", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8039, "upload_time": "2018-01-11T20:55:27", "url": "https://files.pythonhosted.org/packages/b8/35/94ef8f8cc833dbb790917e8d0bf87c75fd77456c1751b16d4ae0194cde85/bernardomg.version_extractor-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8c9666be961da69437c0d079b482065c", "sha256": "79e0658a389cd411f33f14cdef83377dae1dec837089c0cb8d50f7ed0d64f84e" }, "downloads": -1, "filename": "bernardomg.version_extractor-1.0.2.tar.gz", "has_sig": false, "md5_digest": "8c9666be961da69437c0d079b482065c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12605, "upload_time": "2018-01-08T21:49:38", "url": "https://files.pythonhosted.org/packages/02/55/aa3affccfee3fa3a3c93fb204f9b445b5bac8e03a5f95b67d2039a93ff2b/bernardomg.version_extractor-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "35bd29d2fe771430c26f141537c2bffa", "sha256": "85e3ff78980f5dcf585dc152c8c2a6d5e641469421e4157ac7f496555d7731e2" }, "downloads": -1, "filename": "bernardomg.version_extractor-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "35bd29d2fe771430c26f141537c2bffa", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8039, "upload_time": "2018-01-11T20:55:27", "url": "https://files.pythonhosted.org/packages/b8/35/94ef8f8cc833dbb790917e8d0bf87c75fd77456c1751b16d4ae0194cde85/bernardomg.version_extractor-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8c9666be961da69437c0d079b482065c", "sha256": "79e0658a389cd411f33f14cdef83377dae1dec837089c0cb8d50f7ed0d64f84e" }, "downloads": -1, "filename": "bernardomg.version_extractor-1.0.2.tar.gz", "has_sig": false, "md5_digest": "8c9666be961da69437c0d079b482065c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12605, "upload_time": "2018-01-08T21:49:38", "url": "https://files.pythonhosted.org/packages/02/55/aa3affccfee3fa3a3c93fb204f9b445b5bac8e03a5f95b67d2039a93ff2b/bernardomg.version_extractor-1.0.2.tar.gz" } ] }