Skip to content

Commit c65b295

Browse files
author
Continuous integration
committed
Interrupted upgrade to master
1 parent 2d52530 commit c65b295

File tree

12 files changed

+270
-7
lines changed

12 files changed

+270
-7
lines changed

.UPGRADE_INSTRUCTIONS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
The `create.diff` file is a recommendation of the changes that you should apply to your project.
2+
You should apply the changes shown in the diff file on `CONST_create_template/<file>` on your project's `<file>`.
3+
Some advice to be more efficient: if the changes on a file concern a file that you never customize, you can simply copy the new file from `CONST_create_template` (`cp CONST_create_template/<file> <file>`).You can furthermore add this file to the `unmanaged_files` section of the `project.yaml` file, to avoid its contents appearing in the diff file for the next upgrade.
4+
Note that you can also apply them using: git apply --3way create.diff
5+
To continue, type:
6+
./upgrade 2.10 11

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- run: pre-commit run --all-files
4343
- run: git diff --exit-code --patch > /tmp/pre-commit.patch || true
4444
if: failure()
45-
- uses: actions/upload-artifact@v4
45+
- uses: actions/upload-artifact@v5
4646
with:
4747
name: Apply pre-commit fix.patch
4848
path: /tmp/pre-commit.patch

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ repos:
4747
- repo: https://github.com/sbrunner/integrity-updater
4848
rev: 1.0.2
4949
hooks:
50+
<<<<<<< ours
5051
- id: integrity-updater
5152
files: |-
5253
(?x)^(
@@ -132,6 +133,11 @@ repos:
132133
- id: renovate-config-validator
133134
- repo: https://github.com/astral-sh/ruff-pre-commit
134135
rev: v0.13.1
136+
=======
137+
- id: autoflake
138+
- repo: https://github.com/PyCQA/isort
139+
rev: 7.0.0
140+
>>>>>>> theirs
135141
hooks:
136142
- id: ruff-format
137143
- repo: https://github.com/sbrunner/python-versions-hook

.upgrade.yaml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
# The list (by include, exclude) of default files that will not be overwritten by the upgrade.
3+
# That that can be extended with managed_files or reduced with unmanaged_files from the
4+
# project.yaml file in the project root directory.
5+
default_project_file:
6+
include:
7+
- geoportal/setup\.py
8+
- geoportal/vars\.yaml
9+
- geoportal/Makefile
10+
- geoportal/geomapfish_geoportal/__init__\.py
11+
- geoportal/geomapfish_geoportal/templates/.*
12+
- geoportal/geomapfish_geoportal/locale/.*
13+
- geoportal/geomapfish_geoportal/static/.*
14+
- geoportal/geomapfish_geoportal/static-ngeo/.*
15+
- print/print-apps/.*
16+
- mapserver/.*
17+
- tilegeneration/config\.yaml\.tmpl
18+
- project\.yaml
19+
- docker-compose\.yaml
20+
- env\.project
21+
- README\.rst
22+
- \.github/workflows/main\.yaml
23+
- \.github/workflows/rebuild\.yaml
24+
exclude:
25+
- mapserver/demo\.map\.tmpl
26+
- geoportal/geomapfish_geoportal/static-ngeo/js/apps/image/favicon\.ico
27+
28+
# Files ignored when creating the diff files => will just be left untouched.
29+
no_diff:
30+
- .*\.po
31+
- CONST_.+
32+
- .*/CONST_.+
33+
34+
# Files that will be present in the CONST_create_template but will not be considered in the upgrade.
35+
# Used to provide the alt applications => does not disturb the user during upgrade.
36+
extra:
37+
- geoportal/geomapfish_geoportal/static-ngeo/js/apps/mobile_alt\.html\.ejs
38+
- geoportal/geomapfish_geoportal/static-ngeo/js/apps/oeedit\.html\.ejs
39+
- geoportal/geomapfish_geoportal/static-ngeo/js/apps/Controllermobile_alt\.js
40+
- geoportal/geomapfish_geoportal/static-ngeo/js/apps/Controlleroeedit\.js
41+
- geoportal/geomapfish_geoportal/static-ngeo/js/apps/sass/mobile_alt\.scss
42+
- geoportal/geomapfish_geoportal/static-ngeo/js/apps/sass/vars_mobile_alt\.scss
43+
- geoportal/geomapfish_geoportal/static-ngeo/js/apps/sass/oeedit\.scss
44+
- geoportal/geomapfish_geoportal/static-ngeo/js/apps/sass/vars_oeedit\.scss
45+
- geoportal/interfaces/desktop_alt\.html\.mako
46+
- geoportal/geomapfish_geoportal/static/images/background-layer-button\.png
47+
- tests/test_testapp.py
48+
49+
# Automated file system operations:
50+
# Remove some files or directories:
51+
# - action: remove
52+
# paths:
53+
# - <one file or directory>
54+
# Move a file:
55+
# - action: move
56+
# from: <src file>
57+
# to: <dst file>
58+
upgrade_files:
59+
- action: remove
60+
paths:
61+
- geoportal/tools/extract-messages.js
62+
- action: move
63+
from: geoportal/lingua-server.cfg
64+
to: geoportal/lingva-server.cfg
65+
- action: move
66+
from: geoportal/lingua-client.cfg
67+
to: geoportal/lingva-client.cfg

CONST_create_template/.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- run: pre-commit run --all-files
4242
- run: git diff --exit-code --patch > /tmp/pre-commit.patch || true
4343
if: failure()
44-
- uses: actions/upload-artifact@v4
44+
- uses: actions/upload-artifact@v5
4545
with:
4646
name: Apply pre-commit fix.patch
4747
path: /tmp/pre-commit.patch

CONST_create_template/.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repos:
2626
hooks:
2727
- id: autoflake
2828
- repo: https://github.com/PyCQA/isort
29-
rev: 6.1.0
29+
rev: 7.0.0
3030
hooks:
3131
- id: isort
3232
- repo: https://github.com/psf/black

create.diff

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
2+
index be9cd32..d6bc50d 100644
3+
--- a/.github/workflows/main.yaml
4+
+++ b/.github/workflows/main.yaml
5+
@@ -41,7 +41,7 @@ jobs:
6+
- run: pre-commit run --all-files
7+
- run: git diff --exit-code --patch > /tmp/pre-commit.patch || true
8+
if: failure()
9+
- - uses: actions/upload-artifact@v4
10+
+ - uses: actions/upload-artifact@v5
11+
with:
12+
name: Apply pre-commit fix.patch
13+
path: /tmp/pre-commit.patch
14+
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
15+
index 6449abb..3ad98ae 100644
16+
--- a/.pre-commit-config.yaml
17+
+++ b/.pre-commit-config.yaml
18+
@@ -26,7 +26,7 @@ repos:
19+
hooks:
20+
- id: autoflake
21+
- repo: https://github.com/PyCQA/isort
22+
- rev: 6.1.0
23+
+ rev: 7.0.0
24+
hooks:
25+
- id: isort
26+
- repo: https://github.com/psf/black

geoportal/geomapfish_geoportal/static-ngeo/js/apps/Controllerdesktop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// The MIT License (MIT)
22
//
3-
// Copyright (c) 2016-2025 Camptocamp SA
3+
// Copyright (c) 2016-2024 Camptocamp SA
44
//
55
// Permission is hereby granted, free of charge, to any person obtaining a copy of
66
// this software and associated documentation files (the "Software"), to deal in

geoportal/geomapfish_geoportal/static-ngeo/js/apps/Controlleriframe_api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// The MIT License (MIT)
22
//
3-
// Copyright (c) 2015-2025 Camptocamp SA
3+
// Copyright (c) 2015-2024 Camptocamp SA
44
//
55
// Permission is hereby granted, free of charge, to any person obtaining a copy of
66
// this software and associated documentation files (the "Software"), to deal in

geoportal/geomapfish_geoportal/static-ngeo/js/apps/Controllermobile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// The MIT License (MIT)
22
//
3-
// Copyright (c) 2015-2025 Camptocamp SA
3+
// Copyright (c) 2015-2024 Camptocamp SA
44
//
55
// Permission is hereby granted, free of charge, to any person obtaining a copy of
66
// this software and associated documentation files (the "Software"), to deal in

0 commit comments

Comments
 (0)