-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from n-wbrown/dev
Fix python version, some docs
- Loading branch information
Showing
8 changed files
with
23 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ env: | |
PROJECT_DIR: "project_name" | ||
IMPORT_NAME: "project_name" | ||
ENTRYPOINT_NAME: "project-name" | ||
PYTHON_VERSION: "3.9" | ||
# PYTHON_VERSION: "3.9" | ||
MAMBA_ROOT_PREFIX: "~/micromamba" | ||
CONDARC_SOURCE: | | ||
notify_outdated_conda: false | ||
|
@@ -41,8 +41,7 @@ jobs: | |
strategy: | ||
matrix: | ||
config_file: [ default_config.yaml, complex_config.yaml] | ||
python_version: [ "3.6", "3.7", "3.8", "3.9", "3.10"] | ||
|
||
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -70,18 +69,26 @@ jobs: | |
git config --global user.email "[email protected]" | ||
git config --global user.name "PCDS / GitHub CI" | ||
- name: Append version to config | ||
run: | | ||
echo ' python_version: "${{ matrix.python_version }}"' >> tests/${{ matrix.config_file }} | ||
cat tests/${{ matrix.config_file }} | ||
- name: Use the cookiecutter | ||
run: | | ||
cookiecutter . --no-input --config-file tests/${{ matrix.config_file }} --output-dir "$HOME" | ||
- name: Build wheel and source distribution | ||
run: | | ||
export SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) | ||
export SETUPTOOLS_SCM_DEBUG=1 | ||
echo "Source date epoch set to ${SOURCE_DATE_EPOCH} for reproducible build" | ||
# See: https://github.com/python/cpython/pull/5200 | ||
# And: https://reproducible-builds.org/docs/source-date-epoch/ | ||
cd "${HOME}/${PROJECT_DIR}" | ||
python -m build --sdist --wheel --outdir ./dist | ||
cat pyproject.toml | ||
- name: Check the source distribution | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/bash | ||
{% if cookiecutter.auto_git_setup == "yes" %} | ||
git init | ||
{% if cookiecutter.auto_git_setup == "yes" %} | ||
git add -A | ||
git remote add {{ cookiecutter.git_remote_name }} [email protected]:{{ cookiecutter.github_repo_group }}/{{ cookiecutter.repo_name }}.git | ||
git commit -am "Initial commit from cookiecutter-pcds-python" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
default_context: | ||
default_context: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters