Skip to content

Commit

Permalink
Merge branch 'master' into unvirtualize-setdatasource
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed May 5, 2021
2 parents 81ed419 + 02685f1 commit ef3d9a2
Show file tree
Hide file tree
Showing 489 changed files with 15,015 additions and 1,963 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/backport.yml
Expand Up @@ -13,6 +13,6 @@ jobs:
- name: Backport Bot
id: backport
if: github.event.pull_request.merged && ( ( github.event.action == 'closed' && contains( join( github.event.pull_request.labels.*.name ), 'backport') ) || contains( github.event.label.name, 'backport' ) )
uses: m-kuhn/backport@v1.1.1
uses: m-kuhn/backport@v1.2.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.GH_TOKEN_BOT }}
2 changes: 1 addition & 1 deletion .github/workflows/build-docker.yml
Expand Up @@ -64,7 +64,7 @@ jobs:
- name: Cache
id: cache
uses: actions/cache@v2.1.4
uses: actions/cache@v2.1.5
with:
path: ~/.ccache
key: docker-build-${{ matrix.branch }}-${{ github.sha }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/code_layout.yml
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- master
- release-**
- queued_ltr_backports
pull_request:

jobs:
Expand All @@ -14,7 +15,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2.2.1
uses: actions/setup-python@v2.2.2
with:
python-version: 3.7
- name: Install Requirements
Expand Down Expand Up @@ -159,7 +160,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.7
uses: actions/setup-python@v2.2.1
uses: actions/setup-python@v2.2.2
with:
python-version: 3.7
- name: Install Requirements
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/flake8.yml
Expand Up @@ -14,14 +14,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v2.2.1
uses: actions/setup-python@v2.2.2
with:
python-version: 3.7
architecture: x64
- name: Checkout
uses: actions/checkout@v2
- name: Run flake8
uses: julianwachholz/flake8-action@v1.1.0
uses: julianwachholz/flake8-action@v2.0.0
with:
checkName: 'Python Lint'
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/macos-build.yml
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- master
- release-**
- queued_ltr_backports
paths:
- 'src/**'
- 'external/**'
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/mingw64.yml
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- master
- release-**
- queued_ltr_backports
paths:
- 'src/**'
- 'external/**'
Expand Down Expand Up @@ -98,13 +99,13 @@ jobs:
(cd $DEBUGROOT && zip -r - *) > qgis-portable-win64-debugsym.zip
- name: Upload QGIS for Windows 64bit
uses: actions/upload-artifact@v2.2.2
uses: actions/upload-artifact@v2.2.3
with:
name: QGIS for Windows 64bit
path: qgis-portable-win64.zip

- name: Upload QGIS for Windows 64bit Debug Symbols
uses: actions/upload-artifact@v2.2.2
uses: actions/upload-artifact@v2.2.3
with:
name: QGIS for Windows 64bit Debug Symbols
path: qgis-portable-win64-debugsym.zip
1 change: 1 addition & 0 deletions .github/workflows/ogc.yml
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- master
- release-**
- queued_ltr_backports
paths:
- 'src/core/**'
- 'src/auth/**'
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/run-tests.yml
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- master
- release-**
- queued_ltr_backports
paths:
- 'src/**'
- 'external/**'
Expand Down Expand Up @@ -38,8 +39,6 @@ jobs:
include:
- ubuntu-base: '20.04'
run-tests: true
- ubuntu-base: '20.10'
run-tests: false
- ubuntu-base: '21.04'
run-tests: false
fail-fast: false
Expand Down Expand Up @@ -136,7 +135,7 @@ jobs:
if: ${{ matrix.run-tests }}
run: tar --exclude='*.o' -cvzf build.tgz build

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v2.2.3
if: ${{ matrix.run-tests }}
with:
name: build.tgz
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Expand Up @@ -681,8 +681,8 @@ else()
endif()

if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /utf-8")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /utf-8")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /utf-8 /std:c++17")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /utf-8 /std:c++17")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
# disable macros that offend std::numeric_limits<T>::min()/max()
Expand Down
2 changes: 1 addition & 1 deletion INSTALL.md
Expand Up @@ -95,7 +95,7 @@ Required build tools:
* CMake >= 3.10.0
* Flex >= 2.5.6
* Bison >= 2.4
* Python >= 3.6
* Python >= 3.7

Required build dependencies:

Expand Down
5 changes: 5 additions & 0 deletions cmake_templates/qgsconfig.h.in
Expand Up @@ -46,6 +46,11 @@

#define QT_PLUGINS_DIR "${QT_PLUGINS_DIR}"

#define PYTHON_VERSION "${Python_VERSION}"
#define PYTHON_VERSION_MAJOR "${Python_VERSION_MAJOR}"
#define PYTHON_VERSION_MINOR "${Python_VERSION_MINOR}"
#define PYTHON_VERSION_PATCH "${Python_VERSION_PATCH}"

#cmakedefine USING_NMAKE

#cmakedefine USING_NINJA
Expand Down
2 changes: 1 addition & 1 deletion external/o2/README.md
Expand Up @@ -180,7 +180,7 @@ That's it. Tweets using the O2 library!

### Storing OAuth Tokens

O2 provides simple storage classes for writing OAuth tokens in a peristent location. Currently, a QSettings based backing store **O2SettingsStore** is provided in O2. O2SettingsStore keeps all token values in an encrypted form. You have to specify the encryption key to use while constructing the object:
O2 provides simple storage classes for writing OAuth tokens in a persistent location. Currently, a QSettings based backing store **O2SettingsStore** is provided in O2. O2SettingsStore keeps all token values in an encrypted form. You have to specify the encryption key to use while constructing the object:

O0SettingsStore settings = new O0SettingsStore("myencryptionkey");
// Set the store before starting OAuth, i.e before calling link()
Expand Down
1 change: 1 addition & 0 deletions external/untwine/api/QgisUntwine.cpp
@@ -1,4 +1,5 @@
#include <iostream>
#include <algorithm>

#include "QgisUntwine.hpp"

Expand Down
4 changes: 2 additions & 2 deletions external/untwine/untwine/MapFile.cpp
Expand Up @@ -49,10 +49,10 @@ MapContext mapFile(const std::string& filename, bool readOnly,
return ctx;
}

#ifndef WIN32
#ifndef _WIN32
ctx.m_fd = ::open(filename.c_str(), readOnly ? O_RDONLY : O_RDWR);
#else
ctx.m_fd = ::_open(filename.c_str(), readOnly ? O_RDONLY : O_RDWR);
ctx.m_fd = ::_open(filename.c_str(), readOnly ? _O_RDONLY : _O_RDWR);
#endif

if (ctx.m_fd == -1)
Expand Down
4 changes: 2 additions & 2 deletions external/wintoast/README.md
Expand Up @@ -148,8 +148,8 @@ A common example of usage is to check while initializing the library or showing

```cpp
WinToast::WinToastError error;
const bool succedded = WinToast::instance()->initialize(&error);
if (!succedded) {
const bool succeeded = WinToast::instance()->initialize(&error);
if (!succeeded) {
std::wcout << L"Error, could not initialize the lib. Error number: "
<< error << std::endl;
}
Expand Down
2 changes: 2 additions & 0 deletions images/images.qrc
Expand Up @@ -913,6 +913,8 @@
<file>themes/default/console/iconSyntaxErrorConsoleParams.svg</file>
<file>themes/default/mIconSnappingEndpoint.svg</file>
<file>themes/default/mActionStreamingDigitize.svg</file>
<file>themes/default/mActionEditHtml.svg</file>
<file>themes/default/mIndicatorNotes.svg</file>
</qresource>
<qresource prefix="/images/tips">
<file alias="symbol_levels.png">qgis_tips/symbol_levels.png</file>
Expand Down
1 change: 1 addition & 0 deletions images/themes/default/mActionEditHtml.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/themes/default/mIndicatorNotes.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Expand Up @@ -11,7 +11,6 @@




class QgsPointCloudLayer3DRenderer : QgsAbstract3DRenderer
{
%Docstring(signature="appended")
Expand Down
Expand Up @@ -10,6 +10,7 @@




class QgsGeometrySnapper : QObject
{
%Docstring(signature="appended")
Expand Down
5 changes: 2 additions & 3 deletions python/core/__init__.py.in
Expand Up @@ -34,7 +34,7 @@ from .additions.qgsfeature import mapping_feature
from .additions.qgsfunction import register_function, qgsfunction
from .additions.qgsgeometry import _geometryNonZero, mapping_geometry
from .additions.qgssettings import _qgssettings_enum_value, _qgssettings_set_enum_value, _qgssettings_flag_value
from .additions.qgssettingsentry import PyQgsSettingsEntryEnum, PyQgsSettingsEntryFlag
from .additions.qgssettingsentry import PyQgsSettingsEntryEnumFlag
from .additions.qgstaskwrapper import QgsTaskWrapper
from .additions.readwritecontextentercategory import ReadWriteContextEnterCategory
from .additions.runtimeprofiler import ScopedRuntimeProfileContextManager
Expand All @@ -59,8 +59,7 @@ QgsDateTimeRange.__repr__ = datetime_range_repr
QgsDateRange.__repr__ = date_range_repr

# Classes patched
QgsSettingsEntryEnum = PyQgsSettingsEntryEnum
QgsSettingsEntryFlag = PyQgsSettingsEntryFlag
QgsSettingsEntryEnumFlag = PyQgsSettingsEntryEnumFlag

# Classes patched using a derived class
QgsProviderMetadata = PyProviderMetadata
Expand Down

0 comments on commit ef3d9a2

Please sign in to comment.