{ "info": { "author": "Startin'blox", "author_email": "benoit@paris.happy-dev.fr", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 3" ], "description": "# Django LDP Like\n\n## Context\n\nThe goal of this repository is to make available to all of our models a Like feature, covering the like action, dislike action, and count of both use cases.\n\nThe like Model will be related to an IDURLField targetting users/ so that we will be able to relate the users and their likes in a distributed world.\n\nWould ideally be implemented in a way which makes it compatible with the [ActivityPub Like Activity](https://www.w3.org/TR/activitypub/#like-activity-outbox) \n\nAdd your package in settings.py of the app. Now, you can test if your package is imported propefully by doing a\n`python manage.py shell` then\nfrom djangoldp_myawesomepackage.models import ExampleModel\n\nIf, no error, it's working.\n\n## Planning\n\n1. Make it work:\n\nBeing able to post a like, a dislike.\nBeing able to retrieve the count of likes and dislikes for a given resource\nBeing able to do that on the federation instance bearing the current user identity\n\n2. Make it clean\n\nTest it in the context of the federation\nEnsure we stay compliant with the activityPub specification\n\n## CICD\nWhen you're ready to publish your app :\n1. Add the `sib-deploy` user as a `maintainer` to the project (`Settings > Members`)\n\n2. Configure `pipeline strategy` to `clone` (`Settings > CI/CD > Pipelines`)\n\n3. Protect the `master` branch allowing only `maintainers` to push (`Settings > Repository > Protected branches`)\n\n4. Configure CI/CD variables to authenticate on pypi.org:\n\nVariable | Value | Protection\n----------------|--------------------|-----------\n`GL_TOKEN` | `sib-deploy-token` | protected\n`PYPI_PASSWORD` | `pypi-password` | protected\n`PYPI_USERNAME` | startinblox | protected\n\n5. Replace the \"do_not_publish\" by \"master\" in the .gitlab-ci.yml\n\n### Factories\nIf you dont need factory, you can remove the mock_example command, the factories files and the extras_require section in setup.cfg\n\nProvide a factory is a good pratice in order to simplify the mocking of data on a server / in a test pipeline.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://git.happy-dev.fr/startinblox/djangoldp-packages/djangoldp-like", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "djangoldp-like", "package_url": "https://pypi.org/project/djangoldp-like/", "platform": "", "project_url": "https://pypi.org/project/djangoldp-like/", "project_urls": { "Homepage": "http://git.happy-dev.fr/startinblox/djangoldp-packages/djangoldp-like" }, "release_url": "https://pypi.org/project/djangoldp-like/0.0.2/", "requires_dist": [ "djangoldp (~=0.5)" ], "requires_python": "", "summary": "DjangoLDP Like", "version": "0.0.2" }, "last_serial": 5841141, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "85401b3ca9d9b01394819d9c434be444", "sha256": "a31cf300505c10d74f2f65647d1a19f55c787815ed81766ee1dc42ae8fad4f89" }, "downloads": -1, "filename": "djangoldp_like-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "85401b3ca9d9b01394819d9c434be444", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5629, "upload_time": "2019-09-17T11:10:58", "url": "https://files.pythonhosted.org/packages/3a/34/e847f6cd590dfb5cab3e0f47c417efc031fd746373cbfba1293508fb7f47/djangoldp_like-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "95071d689a6499a7fa7670754850bdbb", "sha256": "0eb8f0ed113c187a35709477e079e993faf6fe8b693a9e753c194c05bc60543c" }, "downloads": -1, "filename": "djangoldp_like-0.0.2.tar.gz", "has_sig": false, "md5_digest": "95071d689a6499a7fa7670754850bdbb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3747, "upload_time": "2019-09-17T11:11:01", "url": "https://files.pythonhosted.org/packages/ae/ea/db292adc9f6dcce903ebc06c87cc423b87ab37328e6e1bc7f16141ee2385/djangoldp_like-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "85401b3ca9d9b01394819d9c434be444", "sha256": "a31cf300505c10d74f2f65647d1a19f55c787815ed81766ee1dc42ae8fad4f89" }, "downloads": -1, "filename": "djangoldp_like-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "85401b3ca9d9b01394819d9c434be444", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5629, "upload_time": "2019-09-17T11:10:58", "url": "https://files.pythonhosted.org/packages/3a/34/e847f6cd590dfb5cab3e0f47c417efc031fd746373cbfba1293508fb7f47/djangoldp_like-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "95071d689a6499a7fa7670754850bdbb", "sha256": "0eb8f0ed113c187a35709477e079e993faf6fe8b693a9e753c194c05bc60543c" }, "downloads": -1, "filename": "djangoldp_like-0.0.2.tar.gz", "has_sig": false, "md5_digest": "95071d689a6499a7fa7670754850bdbb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3747, "upload_time": "2019-09-17T11:11:01", "url": "https://files.pythonhosted.org/packages/ae/ea/db292adc9f6dcce903ebc06c87cc423b87ab37328e6e1bc7f16141ee2385/djangoldp_like-0.0.2.tar.gz" } ] }