{ "info": { "author": "Ragavendran balakrishnan", "author_email": "ragbalak@redhat.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "License :: Freeware", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.7" ], "description": "# Raga_Practise_Util\nThis is a Python Packaging Helper Environment that helps beginner's in python get acquainted with the concepts of Building,Packages and Managing them. \nThis tutorial gives beginners a complete flow of how python packages are done in the industries.\n\nPlease do the following:\n\n1. Create a new git repository with git-init(1). Commit as desired. If you're\n worried about losing any of the sample code that you're writing, create a new\n GitHub repository, skim git-remote(1), and push your code to your new GitHub\n repository.\n2. Within this git repository, create the following directory structure:\n\n .\n \u251c\u2500\u2500 my_package\n \u2502\u00a0\u00a0 \u2514\u2500\u2500 tests.py\n \u2514\u2500\u2500 setup.py\n\n3. Read the [unittest](https://docs.python.org/3.6/library/unittest.html)\n documentation from the beginning through section 26.4.2.0. (That is, read\n until section 26.4.2.1.) In addition, skim the list of methods exposed by\n [`unittest.TestCase`](https://docs.python.org/3.6/library/unittest.html#unittest.TestCase).\n4. Create a test case in `tests.py`. Within this test case, create one test\n method for each of the following assertions:\n\n * '0.1' is equal to '0.1'\n * '0.1' is less than '0.2'\n * '0.2' is greater than '0.10'\n\n Do not use the `assertTrue` method for these assertions. There are other,\n more targeted methods, as mentioned in step 3. Verify that the tests pass.\n5. Read [packaging and distributing\n projects](https://packaging.python.org/guides/distributing-packages-using-setuptools/).\n Feel free to skim the \"setup() args\" section.\n6. Create a virtualenv using `python3 -m venv ...`, and activate it. Populate\n your `setup.py` with just enough information to be valid. Install your\n package into the virtualenv in \"editable mode,\" e.g. with `pip install\n --editable .`. Change to an entirely different directory (e.g. with `cd ~`),\n and verify that you can execute tests with `python -m unittest\n my_package.tests`.\n7. Add\n [`install_requires`](https://packaging.python.org/guides/distributing-packages-using-setuptools/#install-requires)\n to `setup.py`, and depend on\n [packaging](https://pypi.org/project/packaging/). Verify that `pip install\n --editable .` pulls in the packaging library. You can verify this with `pip\n freeze`.\n8. Add a new test case into the `tests.py` file. Within this test case, create\n one test method for each of the following assertions:\n\n * Version('0.1') is equal to Version('0.1')\n * Version('0.1') is less than Version('0.2')\n * Version('0.2') is less than Version('0.10')\n\n Do not use the `assertTrue` method for these assertions. There are other,\n more targeted methods, as mentioned in step 3. Verify that the tests pass.\n9. Add `extras_require` to `setup.py`, and create a \"dev\" section that lists\n \"pylint.\" See the [docs](http://setuptools.readthedocs.io/en/latest/setuptools.html#declaring-extras-optional-features-with-their-own-dependencies) for an\n example of how to do this. Verify that `pip install --editable .[dev]` pulls\n in pylint. You can verify this with `pip freeze`.\n10. Execute `pylint my_package`. Fix all warnings.\n11. Deactivate your virtualenv. Blow it away, e.g. with `rm -rf path/to/virtualenv`.\n Create a new one. Install your Python package into this virtualenv. Verify that\n you can move to a different directory and successfully execute the tests, e.g.\n with `cd ~ && python -m unittest my_package.tests`.\n12. Once Done with managing the packages locally, The package can be distributed to the remote. This works by creating [aPypI](https://pypi.org/account/register/) account first. Install twine `pip install twine`. Setting up the Build files using `python setup.py sdist` and `pip install wheel` followed by `python setup.py bdist_wheel --universal`. Then run the upload by using `twine upload dist/*`. for more infor refer [docs](https://packaging.python.org/guides/distributing-packages-using-setuptools/#id77) \n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ragabala/Raga_Practise_Util", "keywords": "", "license": "TEST", "maintainer": "", "maintainer_email": "", "name": "raga-practice-util", "package_url": "https://pypi.org/project/raga-practice-util/", "platform": "", "project_url": "https://pypi.org/project/raga-practice-util/", "project_urls": { "Homepage": "https://github.com/ragabala/Raga_Practise_Util" }, "release_url": "https://pypi.org/project/raga-practice-util/0.0.1/", "requires_dist": [ "packaging", "pylint; extra == 'dev'" ], "requires_python": "", "summary": "This is a quick start helper project for helping beginners create a python unit test package distribution", "version": "0.0.1" }, "last_serial": 3936472, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "e3f5ac8f662c4579aab2c3902b54c7fa", "sha256": "63cfb6b021be7232e4bfeff9d2066e1da7759c6955cb8f9b72da941d23b9773e" }, "downloads": -1, "filename": "raga_practice_util-0.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e3f5ac8f662c4579aab2c3902b54c7fa", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3727, "upload_time": "2018-06-06T15:17:36", "url": "https://files.pythonhosted.org/packages/a2/7a/d629eccad29c90f7694022391b2d54a24f433779a556fab586155afaccb3/raga_practice_util-0.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4d641467c18c4449cfe5a9b71ead33e8", "sha256": "ef123a6f8c0fdca0646116048aab54565d57f606804d4497a4d679891e0428fd" }, "downloads": -1, "filename": "raga_practice_util-0.0.0.tar.gz", "has_sig": false, "md5_digest": "4d641467c18c4449cfe5a9b71ead33e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2960, "upload_time": "2018-06-06T15:17:37", "url": "https://files.pythonhosted.org/packages/6e/e1/c69bf9ef88225ee4a5b7a5e3508627267c39ae711f98d8341f575c870615/raga_practice_util-0.0.0.tar.gz" } ], "0.0.1": [ { "comment_text": "", "digests": { "md5": "b300dbeb5128b37ec6f43ab98c260432", "sha256": "5fa54025af9ab322ef48f4b7820b545298c840fc2fe178e5b8db81f17dbf6c6e" }, "downloads": -1, "filename": "raga_practice_util-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b300dbeb5128b37ec6f43ab98c260432", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3762, "upload_time": "2018-06-06T15:34:55", "url": "https://files.pythonhosted.org/packages/e8/a7/85c028c8b6d0899f38fab9e97794e4a5dabf1d35b8653ca061590065efce/raga_practice_util-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2effe0b865b756456df6fe6b1cc73a12", "sha256": "3245c31a31498074e09f4264d99d115bd6248769dbfdd60238ec8ee7624ca2a8" }, "downloads": -1, "filename": "raga_practice_util-0.0.1.tar.gz", "has_sig": false, "md5_digest": "2effe0b865b756456df6fe6b1cc73a12", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3016, "upload_time": "2018-06-06T15:34:57", "url": "https://files.pythonhosted.org/packages/d2/b6/9a77e34782c2afa27fda6452ac88335b746ce450e81120593ba3eb851e80/raga_practice_util-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b300dbeb5128b37ec6f43ab98c260432", "sha256": "5fa54025af9ab322ef48f4b7820b545298c840fc2fe178e5b8db81f17dbf6c6e" }, "downloads": -1, "filename": "raga_practice_util-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b300dbeb5128b37ec6f43ab98c260432", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3762, "upload_time": "2018-06-06T15:34:55", "url": "https://files.pythonhosted.org/packages/e8/a7/85c028c8b6d0899f38fab9e97794e4a5dabf1d35b8653ca061590065efce/raga_practice_util-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2effe0b865b756456df6fe6b1cc73a12", "sha256": "3245c31a31498074e09f4264d99d115bd6248769dbfdd60238ec8ee7624ca2a8" }, "downloads": -1, "filename": "raga_practice_util-0.0.1.tar.gz", "has_sig": false, "md5_digest": "2effe0b865b756456df6fe6b1cc73a12", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3016, "upload_time": "2018-06-06T15:34:57", "url": "https://files.pythonhosted.org/packages/d2/b6/9a77e34782c2afa27fda6452ac88335b746ce450e81120593ba3eb851e80/raga_practice_util-0.0.1.tar.gz" } ] }