{ "info": { "author": "ming_lyu", "author_email": "minglyupolimi@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "====\nodut\n====\n\n.. image:: https://pyup.io/repos/gitlab/minglyu/odut/shield.svg\n :target: https://gitlab.com/minglyupolimi/odut\n :alt: Updates\n\nOdoo utility functions with commnd line interfaces.\n\n1.Before runing the scripts, make sure you have activated your virtual enviroment,\nand installed the dependencies: \n\n``pip3 install -r requirements.txt``\n\n\nFeatures\n--------\n1. Safely remove dependencies of the Odoo modules...\nyou can either pass modules in a list from the cmd line, or you can just use a file\nwith the modules listed in the first line of the file. \n\n\nInstall the package from the source\n-----------------------------------\n``pip3 install odut``\n\n\n**Windows**::\n\n $ odut --modules \"['account', 'crm']\" --base_dir 'Path to your addons'\n\n**Macos/Linux**::\n\n $ odut --modules \"['account', 'crm']\" --base_dir 'Path to your addons'\n\n\nDeployment\n-----------\n\nStart a PostgreSQL server\n............................\n\n ::\n\n $ docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name db postgres:10\n\nStart an Odoo instance\n.......................\n\n ::\n\n $ docker run -p 8069:8069 --name odoo --link db:db -t odoo\n\n\n(Optional)Delete unnecessary modules\n......................................\n\n ::\n\n $ docker exec -it --user root odoo bash\n $ pip3 install --upgrade pip\n $ pip3 install odut\n $ # incase of: ImportError: cannot import name 'main'\n $ hash -d pip3 # multiple times!\n $ alias odut=./var/lib/odoo/.local/bin/odut\n $ find . -name '*odoo*' # to find the odoo addons using find.\n $ # usually in this directory ./usr/lib/python3/dist-packages/odoo/addons/ \n $ odut --modules \"['crm', 'inventory', 'sales']\" --base_dir '/usr/lib/python3/dist-packages/odoo/addons/' \n\n\nStop and restart an Odoo instance\n..................................\n\n ::\n\n $ docker stop odoo\n $ docker start -a odoo\n\n\nPackaging Up\n-------------\n\nLocally\n........\n\nDevelop mode::\n\n $ # testing locally in development mode.\n $ python setup.py develop\n\n $ python setup.py develop --uninstall\n\nEditable Mode::\n\n $ pip install -e .\n\nThis is similar to running ``python setup.py develop`` in that it\ninstalls your package using a symlink to your development code.\n\n\nPackaging up to Pypi\n.....................\n\n(Optional) Bumpversion::\n\n $ bumpversion --allow-dirty --current-version 1.4.0 minor setup.py\n\nCreate the distribution file::\n\n $ python3 setup.py sdist bdist_wheel\n\nrun commands to check the errors::\n\n $ twine check dist/*\n\nUploading to Pypi::\n\n $ python3 -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*\n\n\nRe Upload to pypi\n..................\n\nchange the version number in setup.py and __init__.py file::\n\n $ rm -r dist/\n $ rm -r build/\n\nthen, redo the procedures.\n\n\n**Caution**:dist file of same name cannot be uploaded again.\n\nhttps://the-hitchhikers-guide-to-packaging.readthedocs.io/en/latest/introduction.html\n\nTest\n------\n\nhttps://docs.pytest.org/en/latest/goodpractices.html\n\n\nAbout setup.py\n---------------\n\npython setup.py install is used to install (typically third party) packages that you're not going \nto develop/modify/debug yourself.\n\nFor your own stuff, you want to first install your package and then be able to frequently edit \nthe code without having to re-install the package every time \u2014 and that is exactly what python \nsetup.py develop does: \n\nit installs the package (typically just a source folder) in a way that allows you to \nconveniently edit your code after it\u2019s installed to the (virtual) environment,\nand have the changes take effect immediately.\n\nNote that it is highly recommended to use pip install . (install) and pip install -e . (developer install) \nto install packages, as invoking setup.py directly will do the wrong things for many dependencies, such as pull\nprereleases and incompatible package versions, or make the package hard to uninstall with pip.\n\nCredits\n--------\n\nminglyupolimi@gmail.com\n\n\n=======\nHistory\n=======\n\n0.1.0 (2019-06-29)\n------------------\n\n* First release on PyPI.\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/minglyu/odut", "keywords": "odut", "license": "", "maintainer": "", "maintainer_email": "", "name": "odut", "package_url": "https://pypi.org/project/odut/", "platform": "", "project_url": "https://pypi.org/project/odut/", "project_urls": { "Homepage": "https://github.com/minglyu/odut" }, "release_url": "https://pypi.org/project/odut/1.6.0/", "requires_dist": [ "Click (>=6.0)" ], "requires_python": "", "summary": "Odoo utility functions with command line interfaces.", "version": "1.6.0" }, "last_serial": 5508143, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "6626987433f3fd304f5ea630c688e09c", "sha256": "23190bd323752c636faae28a3511aca5b15626529ace75119435babc8641f225" }, "downloads": -1, "filename": "odut-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6626987433f3fd304f5ea630c688e09c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5276, "upload_time": "2019-07-09T10:12:36", "url": "https://files.pythonhosted.org/packages/04/f5/286acee0b243a9eaadfdb5404f67f2604d58301b185c9adf536e50c294e3/odut-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "93027b7c34e266f12d3100b90dc77b84", "sha256": "86258d9c54bd0349d6925da62f71eeec8854f0b6b7f4c9db1538a732f4911eb9" }, "downloads": -1, "filename": "odut-1.0.0.tar.gz", "has_sig": false, "md5_digest": "93027b7c34e266f12d3100b90dc77b84", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9951, "upload_time": "2019-07-09T10:12:38", "url": "https://files.pythonhosted.org/packages/4b/c9/41ad5fa1e21dc6d216449f970e70e38c3e834674025c838148a715c05983/odut-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "ae65c5d63c2e044b9ccd2f3bf75acf64", "sha256": "2fee76e14b115825a372bcc7310e6f9262a33c5ed419202ac420ada580fcd68a" }, "downloads": -1, "filename": "odut-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ae65c5d63c2e044b9ccd2f3bf75acf64", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5219, "upload_time": "2019-07-09T10:37:06", "url": "https://files.pythonhosted.org/packages/d4/aa/d16b666612362b8edcda59dc25530f6b10937eec0346fb20e8bf33b1b8bd/odut-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "200ac7dd33b00d06430415cb235c0138", "sha256": "69b1ed5c01df691af931efc0907b0280120b22da688b35237a74796a5b683254" }, "downloads": -1, "filename": "odut-1.1.0.tar.gz", "has_sig": false, "md5_digest": "200ac7dd33b00d06430415cb235c0138", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9902, "upload_time": "2019-07-09T10:37:08", "url": "https://files.pythonhosted.org/packages/59/47/17a003072346ed103365404c9726d5638a2ee5f85639837bf2c34cec7454/odut-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "66ecfa1101288afd9b9075d76e9a1b84", "sha256": "956bd9caddae0242d05f4ed8a55f034337505dbc379836a396fb6bc4bab0d3fe" }, "downloads": -1, "filename": "odut-1.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "66ecfa1101288afd9b9075d76e9a1b84", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4891, "upload_time": "2019-07-09T13:05:07", "url": "https://files.pythonhosted.org/packages/3e/6e/66ff5c54e7766747d22cfda8714e332647e8c9c149dae6293a2220798de4/odut-1.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b128118c5485406cae229ba9b8b78d05", "sha256": "848a9cd13d08c8176a86a6603d4bb718aa9ac2abfad3be9379bb53e055d9cd7d" }, "downloads": -1, "filename": "odut-1.1.1.tar.gz", "has_sig": false, "md5_digest": "b128118c5485406cae229ba9b8b78d05", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9360, "upload_time": "2019-07-09T13:05:08", "url": "https://files.pythonhosted.org/packages/ab/41/5e9a8a3fb57d6fa2311898598132ee12cc191b5eb2fad5d804b8481161f7/odut-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "c3027a6658328774533dc7160031e40e", "sha256": "b4d1bbc88c9751eb7d7ca8c74119f41b41376ebf4d71762de2c3fd40440b6752" }, "downloads": -1, "filename": "odut-1.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c3027a6658328774533dc7160031e40e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4897, "upload_time": "2019-07-09T13:08:25", "url": "https://files.pythonhosted.org/packages/73/13/d00a07d468078e72f4808d9d4b2e8e8c771120ce3a0c6a77f3085d0eb23e/odut-1.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fbead6a32b97326a11423631a36a71cd", "sha256": "63d8efd9a467bc0dc773574732d3fdf83ea71daa028fe7b0d6ea5df05c38233d" }, "downloads": -1, "filename": "odut-1.1.2.tar.gz", "has_sig": false, "md5_digest": "fbead6a32b97326a11423631a36a71cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9353, "upload_time": "2019-07-09T13:08:27", "url": "https://files.pythonhosted.org/packages/35/88/8894d78c77b3e9a12dc3984332414784d9a32308759996f165dc9873ae62/odut-1.1.2.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "f57ea2fe7fa492acced666157dde1296", "sha256": "10d8647135a136bb8ecfd01740b34c62fb5e3b6a703b2195557cad3ff3eb0408" }, "downloads": -1, "filename": "odut-1.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f57ea2fe7fa492acced666157dde1296", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5367, "upload_time": "2019-07-09T14:07:13", "url": "https://files.pythonhosted.org/packages/ee/ec/9ef52c96b8581edf3d442674c9415267b9ac35d26ade90b2437f73c7eb4e/odut-1.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "454d8bc6f359e5648e459e849f49a6f6", "sha256": "0a81a8c7c571ca70547bf251c6d280ec9a0f542138df1e0200ed8f804e441dfd" }, "downloads": -1, "filename": "odut-1.3.0.tar.gz", "has_sig": false, "md5_digest": "454d8bc6f359e5648e459e849f49a6f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10396, "upload_time": "2019-07-09T14:07:15", "url": "https://files.pythonhosted.org/packages/19/5e/482f87a8e55b03b0c65e69a193dea3447cbed6431ee194a5bd3f56457a30/odut-1.3.0.tar.gz" } ], "1.4.0": [ { "comment_text": "", "digests": { "md5": "42ef286f9657a853396d3345661af675", "sha256": "73671417d962584278158fcd534cd2e65ff2dae316e790c64f01426c39a18ce1" }, "downloads": -1, "filename": "odut-1.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "42ef286f9657a853396d3345661af675", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5646, "upload_time": "2019-07-09T14:45:12", "url": "https://files.pythonhosted.org/packages/e2/99/c7196c0fe35642dbd5cb8f33e4e604a405f6b33a56e358846463f4ee79c0/odut-1.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0804aab312ce5267a7850c7593cc9077", "sha256": "c13e0d20865739fcd7af6b2d123d6a8aa9b337cb5d4c729e035cddaff8f21911" }, "downloads": -1, "filename": "odut-1.4.0.tar.gz", "has_sig": false, "md5_digest": "0804aab312ce5267a7850c7593cc9077", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10938, "upload_time": "2019-07-09T14:45:14", "url": "https://files.pythonhosted.org/packages/df/f6/a4c35a1b0cc41de888bb6b91b90e8eceaf8c27d08430779f3a8addc2c342/odut-1.4.0.tar.gz" } ], "1.5.0": [ { "comment_text": "", "digests": { "md5": "f60d70eadeee4f406e1ef4322ef044e3", "sha256": "f8d535a527cb9d963495e29c865a15e2ebdd946b8430d589f41ac4484ba22636" }, "downloads": -1, "filename": "odut-1.5.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f60d70eadeee4f406e1ef4322ef044e3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6182, "upload_time": "2019-07-09T17:05:09", "url": "https://files.pythonhosted.org/packages/a4/4d/5e6ed60d51a83e7aac6500e1fecb708c783cd2898a4930425fb95a341820/odut-1.5.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "683050c54dd671b227b93212ac2dd3c9", "sha256": "dd7917f5ad96b180c669fb4089904ceedce3a03472e1080708edab734febf874" }, "downloads": -1, "filename": "odut-1.5.0.tar.gz", "has_sig": false, "md5_digest": "683050c54dd671b227b93212ac2dd3c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11954, "upload_time": "2019-07-09T17:05:11", "url": "https://files.pythonhosted.org/packages/c6/1d/0efba1a6206158f8b9f5b51240cb9f2000c9c10146fee01c7e372cb438e3/odut-1.5.0.tar.gz" } ], "1.6.0": [ { "comment_text": "", "digests": { "md5": "630fca020e1dc86744ac8ea9e6e63451", "sha256": "fcea5a49b8dc0dfa5c68c0f1dc09a4ae15a8cca5cdca4d7fb0db5ecf464f6aff" }, "downloads": -1, "filename": "odut-1.6.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "630fca020e1dc86744ac8ea9e6e63451", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6194, "upload_time": "2019-07-09T17:07:30", "url": "https://files.pythonhosted.org/packages/e9/fd/53425b83558ad93cd08df17fed84e2229eacc3ef93c74d2475143df13d9c/odut-1.6.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8cf283bf472849b969c14f77f8c6cf97", "sha256": "64918fb9e68cf18d693e04b6869428df4d8b8a2a600dbd31205482443994ac7e" }, "downloads": -1, "filename": "odut-1.6.0.tar.gz", "has_sig": false, "md5_digest": "8cf283bf472849b969c14f77f8c6cf97", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11961, "upload_time": "2019-07-09T17:07:31", "url": "https://files.pythonhosted.org/packages/d4/8f/23235768515f370dba4e0dcdc92571884b8b570547f91acd7df5fb79b208/odut-1.6.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "630fca020e1dc86744ac8ea9e6e63451", "sha256": "fcea5a49b8dc0dfa5c68c0f1dc09a4ae15a8cca5cdca4d7fb0db5ecf464f6aff" }, "downloads": -1, "filename": "odut-1.6.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "630fca020e1dc86744ac8ea9e6e63451", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6194, "upload_time": "2019-07-09T17:07:30", "url": "https://files.pythonhosted.org/packages/e9/fd/53425b83558ad93cd08df17fed84e2229eacc3ef93c74d2475143df13d9c/odut-1.6.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8cf283bf472849b969c14f77f8c6cf97", "sha256": "64918fb9e68cf18d693e04b6869428df4d8b8a2a600dbd31205482443994ac7e" }, "downloads": -1, "filename": "odut-1.6.0.tar.gz", "has_sig": false, "md5_digest": "8cf283bf472849b969c14f77f8c6cf97", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11961, "upload_time": "2019-07-09T17:07:31", "url": "https://files.pythonhosted.org/packages/d4/8f/23235768515f370dba4e0dcdc92571884b8b570547f91acd7df5fb79b208/odut-1.6.0.tar.gz" } ] }