{ "info": { "author": "Eric Dill", "author_email": "thedizzle@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Topic :: Software Development :: Version Control" ], "description": "``whatsmyversion``\n--------------\nSingle module python package to make versioning simple. You add a couple of\nconfiguration parameters to your top-most python module and ``whatsmyversion`` will\ndetermine the version string based on your git history.\n\nUsing ``whatsmyversion``\n~~~~~~~~~~~~~~~~~~~~\n\nAdd the following to the top level of your package (package_name/__init__.py\nor single_module_package.py) ::\n\n import whatsmyversion\n __version__ = whatsmyversion.version(__file__)\n del whatsmyversion\n\nAdd the following to your setup.py ::\n\n import package_name\n\n setup = (\n version = package_name.__version__\n ...\n )\n\nAaaaand that's it! ::\n\n python -c \"import package_name; print(package_name.__version__)\"\n\nFor example, look at the ``setup.py`` and ``whatsmyversion.py`` of this project for\nguidance in setting up your own project! ::\n\n $ python -c \"import whatsmyversion; print(whatsmyversion.__version__)\"\n v0.0.2.post6+g32c6562\n\nConfiguring ``whatsmyversion``\n~~~~~~~~~~~~~~~~~~~~~~~~~~\nThere are a few configuration options that you can provide to the `version`\nfunction. These are:\n\n``version_prefix`` which is defaults to ``v``\n\n``version_suffix`` which is one of ``a``, ``b``, ``rc``, ``.post``, ``.dev``\nand defaults to ``.post``\n\n``use_local_version_id`` which is a boolean flag to include (True) or not\n(False) the git hash and defaults to ``True`` because information is power\n\nThese three configuration options combine to produce a PEP440 compliant\nversion string. `PEP440 `_\n\nUse cases\n~~~~~~~~~\n\nWorking:\n\n* Determine the version of a git repository\n\n * Installed with ``setup.py develop``\n\n * Installed with ``setup.py install``\n\nNot yet working:\n\n- Determine the version of source code downloaded from github", "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/ericdill/whatsmyversion", "keywords": null, "license": "GPLv3", "maintainer": null, "maintainer_email": null, "name": "whatsmyversion", "package_url": "https://pypi.org/project/whatsmyversion/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/whatsmyversion/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/ericdill/whatsmyversion" }, "release_url": "https://pypi.org/project/whatsmyversion/0.0.5.post3/", "requires_dist": null, "requires_python": null, "summary": "Making versioning easy", "version": "0.0.5.post3" }, "last_serial": 1713824, "releases": { "0.0.4.post11": [ { "comment_text": "", "digests": { "md5": "9aef5bdb6344c32833613c52bb715fcd", "sha256": "8c1411aec0fff2a10ea910ff8f567ab8c0e023014c0513216a6b02bd1686b7c7" }, "downloads": -1, "filename": "whatsmyversion-0.0.4.post11.tar.gz", "has_sig": false, "md5_digest": "9aef5bdb6344c32833613c52bb715fcd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4426, "upload_time": "2015-08-29T02:02:08", "url": "https://files.pythonhosted.org/packages/d3/80/0ae3ceb3a424d2b0e6b82b2f481cbf818d60c0de1de4f5e06662164951ce/whatsmyversion-0.0.4.post11.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "c5c2b364319fb6a9d4928eb5e9882156", "sha256": "3dced36c980b834c7ec88f8ee6082721ad98f6587d509d56e8b5885dd80df1b7" }, "downloads": -1, "filename": "whatsmyversion-0.0.5.tar.gz", "has_sig": false, "md5_digest": "c5c2b364319fb6a9d4928eb5e9882156", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4408, "upload_time": "2015-08-29T02:08:26", "url": "https://files.pythonhosted.org/packages/64/a8/bac58496be5a08fcd6506898d10d20c741eac43be8640590e801a70d623b/whatsmyversion-0.0.5.tar.gz" } ], "0.0.5.post1": [ { "comment_text": "", "digests": { "md5": "f377af8403c3d2d272f5323620ad476a", "sha256": "854f1e1fe23b4ee85f3abd9e202a2c34a1dd833080194da651e1a984021a7f89" }, "downloads": -1, "filename": "whatsmyversion-0.0.5.post1.tar.gz", "has_sig": false, "md5_digest": "f377af8403c3d2d272f5323620ad476a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4413, "upload_time": "2015-09-08T17:36:48", "url": "https://files.pythonhosted.org/packages/8e/d6/a780e27ceb7a850a63136ec9911ed5d70ffce91752729c940c088a69a616/whatsmyversion-0.0.5.post1.tar.gz" } ], "0.0.5.post2": [ { "comment_text": "", "digests": { "md5": "c60d866e02876b451dcf40afb57b9029", "sha256": "5fb3fe9392186019ac2fed4767be44c18768bb81d14ae7b53a8cc82af53a60f0" }, "downloads": -1, "filename": "whatsmyversion-0.0.5.post2.tar.gz", "has_sig": false, "md5_digest": "c60d866e02876b451dcf40afb57b9029", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4425, "upload_time": "2015-09-08T17:42:23", "url": "https://files.pythonhosted.org/packages/bf/ea/78ab51f93ffc22b90f32fdbb5580039d84c1eb6ee6c305ce9ad9d4a3d236/whatsmyversion-0.0.5.post2.tar.gz" } ], "0.0.5.post3": [ { "comment_text": "", "digests": { "md5": "f6322b87fa6fe6cc2660f58b9921018a", "sha256": "29aac2945b2e64ca81970afceab3fca6a8711b065552c3ac2fd20f8c1509a817" }, "downloads": -1, "filename": "whatsmyversion-0.0.5.post3.tar.gz", "has_sig": false, "md5_digest": "f6322b87fa6fe6cc2660f58b9921018a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4430, "upload_time": "2015-09-08T19:08:17", "url": "https://files.pythonhosted.org/packages/14/d5/5a78190e58391e0233d78af309b4a036470c82c4461c166c46d24fe1d525/whatsmyversion-0.0.5.post3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f6322b87fa6fe6cc2660f58b9921018a", "sha256": "29aac2945b2e64ca81970afceab3fca6a8711b065552c3ac2fd20f8c1509a817" }, "downloads": -1, "filename": "whatsmyversion-0.0.5.post3.tar.gz", "has_sig": false, "md5_digest": "f6322b87fa6fe6cc2660f58b9921018a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4430, "upload_time": "2015-09-08T19:08:17", "url": "https://files.pythonhosted.org/packages/14/d5/5a78190e58391e0233d78af309b4a036470c82c4461c166c46d24fe1d525/whatsmyversion-0.0.5.post3.tar.gz" } ] }