diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..12767382 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,34 @@ +name: build + +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + + build: + name: Run pip install + runs-on: ${{ matrix.os }} + strategy: + fail-fast: true + matrix: + os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] + python-version: ['3.10', '3.11', '3.12'] + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Python info + shell: bash -e {0} + run: | + which python + python --version + - name: Install dependencies + run: | + python -m pip install --upgrade pip setuptools + python -m pip install .[dev] diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f709f3d0..7de55161 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,10 +13,10 @@ jobs: name: Run template tests runs-on: ${{ matrix.os }} strategy: - fail-fast: false + fail-fast: true matrix: os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 24e904ba..6301aa95 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,13 +13,13 @@ * Make online documentation optional [#476](https://github.com/NLeSC/python-template/pull/476) ### Changed +* Droped Python 3.8 and 3.9 support [#551](https://github.com/NLeSC/python-template/pull/551) * Fix broken link checker [#546](https://github.com/NLeSC/python-template/pull/546) * pre-commit script is optional ([#457](https://github.com/NLeSC/python-template/issues/457)) * CHANGELOG.md is now optional ([#462](https://github.com/NLeSC/python-template/issues/462)) ### Removed -* ## [0.5.0] diff --git a/setup.cfg b/setup.cfg index 67b1efdd..ef1b53ab 100644 --- a/setup.cfg +++ b/setup.cfg @@ -12,8 +12,6 @@ classifiers = License :: OSI Approved :: Apache Software License Natural Language :: English Programming Language :: Python :: 3 - 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 @@ -30,7 +28,7 @@ version = 0.4.0 [options] zip_safe = False include_package_data = True -python_requires = >=3.8 +python_requires = >=3.10 packages = install_requires = copier==9.2.0 diff --git a/template/.github/workflows/{% if AddGitHubActions %}build.yml{% endif %} b/template/.github/workflows/{% if AddGitHubActions %}build.yml{% endif %} index 97c648cf..1d4df162 100644 --- a/template/.github/workflows/{% if AddGitHubActions %}build.yml{% endif %} +++ b/template/.github/workflows/{% if AddGitHubActions %}build.yml{% endif %} @@ -14,10 +14,10 @@ jobs: name: Build for (${{ '{{ ' -}} matrix.python-version }}, ${{ '{{ ' -}} matrix.os }}) runs-on: ${{ '{{ ' -}} matrix.os }} strategy: - fail-fast: false + fail-fast: true matrix: os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ '{{ ' -}} matrix.python-version }} diff --git a/template/project_setup.md.jinja b/template/project_setup.md.jinja index 3fa94112..6d4a4b46 100644 --- a/template/project_setup.md.jinja +++ b/template/project_setup.md.jinja @@ -11,8 +11,6 @@ checklist](https://guide.esciencecenter.nl/#/best_practices/checklist). This repository is set up with Python versions: -- 3.8 -- 3.9 - 3.10 - 3.11 - 3.12 diff --git a/template/pyproject.toml.jinja b/template/pyproject.toml.jinja index 2d868d06..1c7062d7 100644 --- a/template/pyproject.toml.jinja +++ b/template/pyproject.toml.jinja @@ -24,8 +24,6 @@ classifiers = [ }[license] }}", "Natural Language :: English", "Programming Language :: Python :: 3", - "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",