Compare commits
No commits in common. "fc90b3fb71dbe7ffe44f049e32c8f530fc00144f" and "d18ac0baa689d02bfba1ae884f881788640b0788" have entirely different histories.
fc90b3fb71
...
d18ac0baa6
1
TODO.md
1
TODO.md
|
|
@ -1,4 +1,5 @@
|
||||||
# TODO:
|
# TODO:
|
||||||
|
|
||||||
|
- add CI
|
||||||
- add flake
|
- add flake
|
||||||
- use bool value for `generate_gitea_project` when the feature is available
|
- use bool value for `generate_gitea_project` when the feature is available
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,12 @@
|
||||||
"email": "",
|
"email": "",
|
||||||
"git_user": "",
|
"git_user": "",
|
||||||
"project_slug": "{{ cookiecutter.project_name.lower().replace(' ', '_').replace('-', '_') }}",
|
"project_slug": "{{ cookiecutter.project_name.lower().replace(' ', '_').replace('-', '_') }}",
|
||||||
"gitea_url": "https://git.pains-perdus.fr",
|
"gitea_url": "",
|
||||||
"project_url": "{{ cookiecutter.gitea_url }}/{{ cookiecutter.git_user }}/{{ cookiecutter.project_slug }}",
|
"project_url": "{{ cookiecutter.gitea_url }}/{{ cookiecutter.git_user }}/{{ cookiecutter.project_slug }}",
|
||||||
"generate_gitea_project": [ true, false ],
|
"generate_gitea_project": [ true, false ],
|
||||||
"configure_ci": [ true, false ],
|
"configure_ci": [ true, false ],
|
||||||
"woodpecker_gitea_user": "ci",
|
"woodpecker_gitea_user": "ci",
|
||||||
"woodpecker_server": "https://ci.pains-perdus.fr",
|
"woodpecker_server": "ci.pains-perdus.fr",
|
||||||
"git_origin": "{{ cookiecutter.gitea_url.replace('https://', 'gitea@').replace('http://', 'gitea') }}:{{ cookiecutter.git_user }}/{{ cookiecutter.project_slug }}.git",
|
"git_origin": "{{ cookiecutter.gitea_url.replace('https://', 'gitea@').replace('http://', 'gitea') }}:{{ cookiecutter.git_user }}/{{ cookiecutter.project_slug }}.git",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"open_source_license": ["AGPL-3.0-only", "GPL-3.0-only", "MIT", "BSD-3-Clause", "ISC", "Apache-2.0", "Proprietary"],
|
"open_source_license": ["AGPL-3.0-only", "GPL-3.0-only", "MIT", "BSD-3-Clause", "ISC", "Apache-2.0", "Proprietary"],
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,4 @@
|
||||||
import subprocess
|
import subprocess
|
||||||
import os
|
|
||||||
|
|
||||||
REMOVE_PATHS = [
|
|
||||||
{% if cookiecutter.open_source_license == "Proprietary" %} "LICENSE", {% endif %}
|
|
||||||
{% if cookiecutter.configure_ci == "False" %} ".woodpecker.yml", {% endif %}
|
|
||||||
]
|
|
||||||
|
|
||||||
for path in REMOVE_PATHS:
|
|
||||||
if path and os.path.exists(path):
|
|
||||||
if os.path.isdir(path):
|
|
||||||
os.rmdir(path)
|
|
||||||
else:
|
|
||||||
os.unlink(path)
|
|
||||||
|
|
||||||
subprocess.call(["git", "init"])
|
subprocess.call(["git", "init"])
|
||||||
subprocess.call(["git", "checkout", "-b", "main"])
|
subprocess.call(["git", "checkout", "-b", "main"])
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,5 @@
|
||||||
pipeline:
|
pipeline:
|
||||||
test:
|
a-test-step:
|
||||||
image: python:${PYTHON_VERSION}
|
image: debian
|
||||||
pull: true
|
|
||||||
environment:
|
|
||||||
- POETRY_VIRTUALENVS_IN_PROJECT=true
|
|
||||||
commands:
|
commands:
|
||||||
- pip install poetry
|
- echo "Testing.."
|
||||||
- poetry install
|
|
||||||
- poetry run pytest
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
PYTHON_VERSION:
|
|
||||||
- {{ cookiecutter. python_min_version}}
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,5 @@
|
||||||
{% set is_open_source = cookiecutter.open_source_license != 'Proprietary' -%}
|
{% set is_open_source = cookiecutter.open_source_license != 'Proprietary' -%}
|
||||||
{% set repo = "/".join(cookiecutter.git_origin.removesuffix(".git").split(":")[-1].split("/")[-2:]) %}
|
|
||||||
# {{ cookiecutter.project_name }}
|
# {{ cookiecutter.project_name }}
|
||||||
{% if cookiecutter.configure_ci %}[](https://ci.pains-perdus.fr/histausse/test_ci_template){% endif %}
|
|
||||||
|
|
||||||
|
|
||||||
{{ cookiecutter.project_short_description }}
|
{{ cookiecutter.project_short_description }}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue