Skip to content
Snippets Groups Projects
Commit 4bf827ef authored by Corné Lukken's avatar Corné Lukken
Browse files

Merge branch 'quick-fixes' into 'main'

Update cookiecutter.json

See merge request !8
parents bcaaca91 a8fd08b5
No related branches found
No related tags found
1 merge request!8Update cookiecutter.json
Pipeline #105281 passed with warnings
Pipeline: Python Binary Wheel Package

#105282

    {
    "project_name": "My Awesome App",
    "project_slug": "{{ cookiecutter.project_name.lower()|replace(' ', '_')|replace('-', '_')|replace('.', '_')|trim() }}",
    "project_url": "git.astron.nl/{{cookiecutter.project_slug}}",
    "project_url": "https://git.astron.nl/{{cookiecutter.project_slug}}",
    "description": "An example package for CI/CD working group"
    }
    default:
    image: $CI_REGISTRY_IMAGE/ci-build-runner:$CI_COMMIT_REF_SLUG
    image:
    name: $CI_REGISTRY_IMAGE/ci-build-runner:$CI_COMMIT_REF_SLUG
    pull_policy: always
    before_script:
    - python --version # For debugging
    cache:
    ......@@ -83,7 +85,7 @@ run_unit_tests:
    - tox -e py3${PY_VERSION}
    parallel:
    matrix: # use the matrix for testing
    - PY_VERSION: [8, 9, 10, 11]
    - PY_VERSION: [9, 10, 11, 12]
    # Run code coverage on the base image thus also performing unit tests
    run_unit_tests_coverage:
    ......
    FROM python:3.11
    FROM python:3.13
    RUN python -m pip install --upgrade pip
    RUN pip install --upgrade tox twine cibuildwheel==2.13.1
    ......
    ......@@ -3,7 +3,7 @@
    import os
    from {{cookiecutter.project_slug}} import __version__
    from {{cookiecutter.project_slug}}._version import __version__
    # -- General configuration ----------------------------------------------------
    ......
    ......@@ -11,16 +11,17 @@ name = "{{cookiecutter.project_slug}}"
    dynamic = ["version"]
    description="{{cookiecutter.description}}"
    readme = "README.md"
    requires-python = ">=3.8"
    requires-python = ">=3.9"
    classifiers = [
    "Development Status :: 4 - Beta",
    "License :: OSI Approved :: MIT License",
    "License :: OSI Approved :: Apache Software License",
    "Operating System :: OS Independent",
    "Programming Language :: Python :: 3 :: Only",
    "Programming Language :: Python :: 3.8",
    "Programming Language :: Python :: 3.9",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12"
    "Programming Language :: Python :: 3.12",
    "Programming Language :: Python :: 3.13",
    ]
    [tool.scikit-build]
    ......
    """ {{cookiecutter.project_name}} """
    try:
    from importlib import metadata
    except ImportError: # for Python<3.8
    import importlib_metadata as metadata
    __version__ = metadata.version("{{cookiecutter.project_slug}}")
    [tox]
    # Generative environment list to test all supported Python versions
    envlist = py3{8,9,10,11,12},black,pep8,pylint
    minversion = 3.18.0
    envlist = py3{9,10,11,12,13},black,pep8,pylint
    min_version = 4.3.3
    requires =
    tox-ignore-env-name-mismatch >= 0.2.0
    [testenv]
    package = sdist # 'Source' package required for binary extension
    use_develop = False # use_develop implies 'editable' package, not possible
    setenv =
    LANGUAGE=en_US
    LC_ALL=en_US.UTF-8
    PYTHONWARNINGS=default::DeprecationWarning
    DYNAMIC_VERSION_SOURCE={toxinidir}
    deps =
    ......@@ -17,12 +17,12 @@ deps =
    -r{toxinidir}/tests/requirements.txt
    commands =
    {envpython} --version
    {envpython} -m pytest
    {envpython} -m pytest tests/{posargs}
    [testenv:coverage]
    commands =
    {envpython} --version
    {envpython} -m pytest --cov-report term --cov-report xml --cov-report html --cov={{cookiecutter.project_slug}}
    {envpython} -m pytest --cov-report term --cov-report xml --cov-report html --cov={{cookiecutter.project_slug}} tests/{posargs}
    # Use generative name and command prefixes to reuse the same virtualenv
    # for all linting jobs.
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment