-
Notifications
You must be signed in to change notification settings - Fork 1
Update to copier 3.0.0 #82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,16 +1,19 @@ | ||
| # Changes here will be overwritten by Copier | ||
| _commit: 2.1.0 | ||
| _commit: 3.0.0 | ||
| _src_path: gh:DiamondLightSource/python-copier-template | ||
| author_email: [email protected] | ||
| author_name: David Perl | ||
| component_owner: group:default/sscc | ||
| description: A service to put and get your config values from | ||
| author_email: [email protected] | ||
| author_name: Oliver Silvester | ||
| component_lifecycle: experimental | ||
| component_owner: group:default/data-acquisition | ||
| component_type: service | ||
| description: A service to read files on dls_sw from a blueapi container | ||
| distribution_name: daq-config-server | ||
| docker: false | ||
| docs_type: README | ||
| docker: true | ||
| docs_type: sphinx | ||
| git_platform: github.com | ||
| github_org: DiamondLightSource | ||
| package_name: daq_config_server | ||
| pypi: true | ||
| repo_name: daq-config-server | ||
| strict_typing: true | ||
| type_checker: pyright | ||
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| --- | ||
| name: Bug Report | ||
| about: The template to use for reporting bugs and usability issues | ||
| title: " " | ||
| labels: 'bug' | ||
| assignees: '' | ||
|
|
||
| --- | ||
|
|
||
| Describe the bug, including a clear and concise description of the expected behaviour, the actual behavior and the context in which you encountered it (ideally include details of your environment). | ||
|
|
||
| ## Steps To Reproduce | ||
| Steps to reproduce the behavior: | ||
| 1. Go to '...' | ||
| 2. Click on '....' | ||
| 3. Scroll down to '....' | ||
| 4. See error | ||
|
|
||
|
|
||
| ## Acceptance Criteria | ||
| - Specific criteria that will be used to judge if the issue is fixed |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| --- | ||
| name: Issue | ||
| about: The standard template to use for feature requests, design discussions and tasks | ||
| title: " " | ||
| labels: '' | ||
| assignees: '' | ||
|
|
||
| --- | ||
|
|
||
| A brief description of the issue, including specific stakeholders and the business case where appropriate | ||
|
|
||
| ## Acceptance Criteria | ||
| - Specific criteria that will be used to judge if the issue is fixed |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| Fixes #ISSUE | ||
|
|
||
| ### Instructions to reviewer on how to test: | ||
| 1. Do thing x | ||
| 2. Confirm thing y happens | ||
|
|
||
| ### Checks for reviewer | ||
| - [ ] Would the PR title make sense to a user on a set of release notes |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -8,4 +8,4 @@ | |
| <link rel="canonical" href="main/index.html"> | ||
| </head> | ||
|
|
||
| </html> | ||
| </html> | ||
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| on: | ||
| workflow_call: | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| # Need this to get version number from last tag | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Set up Docker Buildx | ||
| id: buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
|
|
||
| - name: Log in to GitHub Docker Registry | ||
| if: github.event_name != 'pull_request' | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| registry: ghcr.io | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Build and export to Docker local cache | ||
| uses: docker/build-push-action@v6 | ||
| env: | ||
| DOCKER_BUILD_RECORD_UPLOAD: false | ||
| with: | ||
| context: . | ||
| # Need load and tags so we can test it below | ||
| load: true | ||
| tags: tag_for_testing | ||
|
|
||
| - name: Test cli works in cached runtime image | ||
| run: docker run --rm tag_for_testing --version | ||
|
|
||
| - name: Create tags for publishing image | ||
| id: meta | ||
| uses: docker/metadata-action@v5 | ||
| with: | ||
| images: ghcr.io/${{ github.repository }} | ||
| tags: | | ||
| type=ref,event=tag | ||
| type=raw,value=latest | ||
|
|
||
| - name: Push cached image to container registry | ||
| if: github.ref_type == 'tag' | ||
| uses: docker/build-push-action@v6 | ||
| env: | ||
| DOCKER_BUILD_RECORD_UPLOAD: false | ||
| # This does not build the image again, it will find the image in the | ||
| # Docker cache and publish it | ||
| with: | ||
| context: . | ||
| push: true | ||
| tags: ${{ steps.meta.outputs.tags }} | ||
| labels: ${{ steps.meta.outputs.labels }} |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| on: | ||
| workflow_call: | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Avoid git conflicts when tag and branch pushed at same time | ||
| if: github.ref_type == 'tag' | ||
| run: sleep 60 | ||
|
|
||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| # Need this to get version number from last tag | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Install system packages | ||
| run: sudo apt-get install graphviz | ||
|
|
||
| - name: Install python packages | ||
| uses: ./.github/actions/install_requirements | ||
|
|
||
| - name: Build docs | ||
| run: tox -e docs | ||
|
|
||
| - name: Remove environment.pickle | ||
| run: rm build/html/.doctrees/environment.pickle | ||
|
|
||
| - name: Upload built docs artifact | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: docs | ||
| path: build | ||
|
|
||
| - name: Sanitize ref name for docs version | ||
| run: echo "DOCS_VERSION=${GITHUB_REF_NAME//[^A-Za-z0-9._-]/_}" >> $GITHUB_ENV | ||
|
|
||
| - name: Move to versioned directory | ||
| run: mv build/html .github/pages/$DOCS_VERSION | ||
|
|
||
| - name: Write switcher.json | ||
| run: python .github/pages/make_switcher.py --add $DOCS_VERSION ${{ github.repository }} .github/pages/switcher.json | ||
|
|
||
| - name: Publish Docs to gh-pages | ||
| if: github.ref_type == 'tag' || github.ref_name == 'main' | ||
| # We pin to the SHA, not the tag, for security reasons. | ||
| # https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions | ||
| uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0 | ||
| with: | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| publish_dir: .github/pages | ||
| keep_files: true |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| name: Periodic | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| schedule: | ||
| # Run weekly to check URL links still resolve | ||
| - cron: "0 8 * * WED" | ||
|
|
||
| jobs: | ||
| linkcheck: | ||
| uses: ./.github/workflows/_tox.yml | ||
| with: | ||
| tox: docs build -- -b linkcheck |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -55,6 +55,7 @@ cov.xml | |
|
|
||
| # Sphinx documentation | ||
| docs/_build/ | ||
| docs/_api | ||
|
|
||
| # PyBuilder | ||
| target/ | ||
|
|
||
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -2,4 +2,4 @@ | |
| "recommendations": [ | ||
| "ms-vscode-remote.remote-containers", | ||
| ] | ||
| } | ||
| } | ||
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry @d-perl 😢
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
About time ;)
I'm happy to see that this is getting some use, even if you're basically tearing the whole thing up