{"id":19622625,"url":"https://github.com/jspaaks/copier-template-for-c-projects","last_synced_at":"2025-02-26T19:24:06.610Z","repository":{"id":247650202,"uuid":"826458205","full_name":"jspaaks/copier-template-for-c-projects","owner":"jspaaks","description":"Copier template for C projects","archived":false,"fork":false,"pushed_at":"2025-01-18T22:02:18.000Z","size":371,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T22:27:24.830Z","etag":null,"topics":["c","clanguage","cmake","codeblocks","codeblocks-ide","copier-template"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jspaaks.png","metadata":{"files":{"readme":"README.dev.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":"2024-07-09T18:40:30.000Z","updated_at":"2025-01-18T22:02:20.000Z","dependencies_parsed_at":"2024-08-01T23:13:35.552Z","dependency_job_id":"9b488254-0d43-49f4-b074-fa8d533f8894","html_url":"https://github.com/jspaaks/copier-template-for-c-projects","commit_stats":null,"previous_names":["jspaaks/cmake-c-template-directory-layout","jspaaks/cookiecutter-codeblocks-cmake-c","jspaaks/copier-template-for-c-projects"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jspaaks%2Fcopier-template-for-c-projects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jspaaks%2Fcopier-template-for-c-projects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jspaaks%2Fcopier-template-for-c-projects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jspaaks%2Fcopier-template-for-c-projects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jspaaks","download_url":"https://codeload.github.com/jspaaks/copier-template-for-c-projects/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240919158,"owners_count":19878544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["c","clanguage","cmake","codeblocks","codeblocks-ide","copier-template"],"created_at":"2024-11-11T11:28:36.856Z","updated_at":"2025-02-26T19:24:06.602Z","avatar_url":"https://github.com/jspaaks.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Development notes\n\n## Badges\n\n[![testing](https://github.com/jspaaks/copier-template-for-c-projects/actions/workflows/testing.yml/badge.svg)](https://github.com/jspaaks/copier-template-for-c-projects/actions/workflows/testing.yml)\n[![GitHub commits since latest release](https://img.shields.io/github/commits-since/jspaaks/copier-template-for-c-projects/0.1.0)](https://github.com/jspaaks/copier-template-for-c-projects/compare/0.1.0...HEAD)\n\n## Testing\n\nRunning the tests requires Python libraries specified in `pyproject.toml`.\n\nDirectory `fuzzy` contains fuzzy tests. Each fuzzy test is a random combination of parameter values for the parameters\nfrom [`copier.yml`](copier.yml). Each parameterization runs on a dedicated temporary test directory. Run with:\n\n```shell\npython3 -m venv venv\nsource venv/bin/activate\npip install .[testing]\n# Run pytest with default settings from pyproject.toml\nNFUZZY=50 pytest\n# Run pytest verbosely and for a specific test (here: test_clang_format_generation),\n# report stdout in case of failure\nNFUZZY=10 pytest fuzzy/test_template.py::test_clang_format_generation -ra --verbose\n```\n\nChange the value of `NFUZZY` to run more or fewer fuzzy tests.\n\nBy default, testing includes running the generated tests on the generated content. Since this requires additional\ndependencies (e.g. Criterion and its dependencies, CMake, some build system like `make`, a C compiler, etc), it's sometimes convenient to\nskip those tests. To that end, they have been marked with a PyTest marker `inception` which should be used as follows in\norder to skip those tests:\n\n```\nNFUZZY=10 pytest -m 'not inception'\n```\n\nFor an overview of all pytest markers, see [`pyproject.toml`](pyproject.toml) or run:\n\n```console\n$ pytest --markers\n```\n\nOn Windows and Mac you may need to fiddle with various path-related environment variables, see the testing\nworkflow [`.github/workflows/testing.yml`](.github/workflows/testing.yml).\n\n# Live editing / rendering of Jinja templates\n\nhttps://j2live.ttl255.com/\n\n## Other stuff\n\n### checks\n\n1. tests pass\n\n### results\n\n|      |        |               | checked    | state   |\n| ---  | ---    | ---           | ---        | ---     |\n| both | flat   | with-external | 2024-07-22 | ok      |\n| both | flat   | wo-external   | 2024-07-22 | ok      |\n| both | nested | with-external | 2024-07-22 | ok      |\n| both | nested | wo-external   | 2024-07-22 | ok      |\n| exe  | flat   | with-external | 2024-07-22 | ok      |\n| exe  | flat   | wo-external   | 2024-07-22 | ok      |\n| exe  | nested | with-external | 2024-07-22 | ok      |\n| exe  | nested | wo-external   | 2024-07-22 | ok      |\n| lib  | flat   | with-external | 2024-07-22 | ok      |\n| lib  | flat   | wo-external   | 2024-07-22 | ok      |\n| lib  | nested | with-external | 2024-07-22 | ok      |\n| lib  | nested | wo-external   | 2024-07-22 | ok      |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjspaaks%2Fcopier-template-for-c-projects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjspaaks%2Fcopier-template-for-c-projects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjspaaks%2Fcopier-template-for-c-projects/lists"}