require-python-3


Namerequire-python-3 JSON
Version 1 PyPI version JSON
download
home_pagehttps://github.com/andychase/require-python-3
SummaryMakes your script require python 3
upload_time2014-10-16 22:17:22
maintainer
docs_urlNone
authorAndrew Chase
requires_pythonNone
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            require-python-3 contains this code:

::

    if sys.version_info[0] != 3:  
        print("This script requires Python 3")  
        exit()

How to use
----------

Install package
~~~~~~~~~~~~~~~

Either:

1. Add ``require-python-3`` to your ``requirements.txt`` file and run
   ``pip3 install -r requirements.txt``
2. Or run directly: ``pip3 install require-python-3``
3. Or download `require_python_3.py`__ directly and put it next to your script sources

__ https://raw.githubusercontent.com/asperous/require-python-3/master/require_python_3.py

Include module
~~~~~~~~~~~~~~

Add ``import require_python_3`` to your scripts that require python 3.
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/andychase/require-python-3",
    "name": "require-python-3",
    "maintainer": "",
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": "",
    "keywords": "",
    "author": "Andrew Chase",
    "author_email": "theandychase@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/25/76/e18099108e3028ee0ec33b727d08427eabf6d6d405059f05f127bcf4a063/require-python-3-1.tar.gz",
    "platform": "UNKNOWN",
    "description": "require-python-3 contains this code:\r\n\r\n::\r\n\r\n    if sys.version_info[0] != 3:  \r\n        print(\"This script requires Python 3\")  \r\n        exit()\r\n\r\nHow to use\r\n----------\r\n\r\nInstall package\r\n~~~~~~~~~~~~~~~\r\n\r\nEither:\r\n\r\n1. Add ``require-python-3`` to your ``requirements.txt`` file and run\r\n   ``pip3 install -r requirements.txt``\r\n2. Or run directly: ``pip3 install require-python-3``\r\n3. Or download `require_python_3.py`__ directly and put it next to your script sources\r\n\r\n__ https://raw.githubusercontent.com/asperous/require-python-3/master/require_python_3.py\r\n\r\nInclude module\r\n~~~~~~~~~~~~~~\r\n\r\nAdd ``import require_python_3`` to your scripts that require python 3.",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Makes your script require python 3",
    "version": "1",
    "project_urls": {
        "Download": "UNKNOWN",
        "Homepage": "https://github.com/andychase/require-python-3"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2576e18099108e3028ee0ec33b727d08427eabf6d6d405059f05f127bcf4a063",
                "md5": "1d346f54b6cb21ac93496e4140e5dedd",
                "sha256": "25b741f8cf8293c4952635725106901ac59c1311153de6376a3116dec50a2046"
            },
            "downloads": -1,
            "filename": "require-python-3-1.tar.gz",
            "has_sig": false,
            "md5_digest": "1d346f54b6cb21ac93496e4140e5dedd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 1425,
            "upload_time": "2014-10-16T22:17:22",
            "upload_time_iso_8601": "2014-10-16T22:17:22.874932Z",
            "url": "https://files.pythonhosted.org/packages/25/76/e18099108e3028ee0ec33b727d08427eabf6d6d405059f05f127bcf4a063/require-python-3-1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2014-10-16 22:17:22",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "andychase",
    "github_project": "require-python-3",
    "github_not_found": true,
    "lcname": "require-python-3"
}
        
Elapsed time: 0.90547s