{"id":28751220,"url":"https://github.com/cetic/python-deb","last_synced_at":"2026-01-14T12:39:33.233Z","repository":{"id":149244692,"uuid":"227379363","full_name":"cetic/python-deb","owner":"cetic","description":"A way to convert python projet into debian package in CI Pipeline","archived":false,"fork":false,"pushed_at":"2020-07-01T10:54:52.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-16T22:42:12.283Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cetic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-11T14:01:50.000Z","updated_at":"2023-11-23T12:27:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"7b3c76d7-a217-4096-a6f8-e58526c79533","html_url":"https://github.com/cetic/python-deb","commit_stats":null,"previous_names":["sellto/python-deb"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cetic/python-deb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cetic%2Fpython-deb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cetic%2Fpython-deb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cetic%2Fpython-deb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cetic%2Fpython-deb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cetic","download_url":"https://codeload.github.com/cetic/python-deb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cetic%2Fpython-deb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-16T22:32:10.237Z","updated_at":"2026-01-14T12:39:33.215Z","avatar_url":"https://github.com/cetic.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"## Python-deb\nThis project explore the possibility to convert a python project to .deb package\nin gitlab CI pipeline. The installation of the built package will be into a virtual environment.\n\n### TL;DR\nJust put the `.gitlab-ci.yaml` a the root of your folder. And merge your working branch with a branch called `develop`.\nAfter that Gitlab do the rest.\n\n### Requirements\nA python project which respect the following architecture :\n\n```\n+-- project_folder\n|   +-- __init__.py\n+-- setup.py\n+-- MANIFEST.in\n```\n\n\n\n### How does that work?\nThe Gitlab Ci use the [selltom/python-deb:v8](https://hub.docker.com/repository/docker/selltom/python-deb) docker image which contains some required tools:\n\n#### 1. setup2control\nThis  homemade tool is just a parser/mapper from the `setup.py` file to the `control` file needed to build a debian package.\n\nFor example this `setup.py` file :\n```\nfrom setuptools import setup\n\ndebpack=['dependance1','dependance2','dependance3']\n\nsetup(\n        name='my_awesome_python_project',\n        version='0.0.1',\n        author='John Doe',\n        description='Sample project',\n        long_description='This project is just a example used to explain the python-dev CI pipeline',\n        url='',\n        author_email='john@doe.com',\n        license='Proprietary',\n        packages=[],\n        include_package_data=True,\n        install_requires=[],\n        zip_safe=False,\n        entry_points={\n                'console_scripts': ['myapp = my_awesome_python_project']\n        }\n)\n\n```\n\nwill create the following `control` file:\n\n```\nArchitecture: amd64\nEssential: no\nPriority: optional\nDepends: dependance1 dependance2 dependance3\nPackage: my_awesome_python_project\nVersion: 0.0.1\nMaintainer: John Doe\nDescription: This project is just a example used to explain the python-dev CI pipeline\n```\n\n#### 2. yq\nA command line tool to grep information from a yaml file.\n\n### References\n- https://github.com/mikefarah/yq\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcetic%2Fpython-deb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcetic%2Fpython-deb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcetic%2Fpython-deb/lists"}