Skip to content

Commit

Permalink
wxpyimgview: explicit conversion to int (OSGeo#2704)
Browse files Browse the repository at this point in the history
  • Loading branch information
a0x8o committed Nov 15, 2024
1 parent 57711af commit de41c5c
Show file tree
Hide file tree
Showing 1,212 changed files with 80,816 additions and 9,536 deletions.
10 changes: 10 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
CHANGES in GRASS GIS 8.x
=======
CHANGES in GRASS GIS 8.x compared to GRASS GIS 7.x
Expand Down Expand Up @@ -37,6 +38,15 @@ https://trac.osgeo.org/grass/wiki/Grass8/NewFeatures82
List of releases:

>>>>>>> 6cf60c76a4 (wxpyimgview: explicit conversion to int (#2704))
=======
CHANGES in GRASS GIS 8.x

https://trac.osgeo.org/grass/wiki/Grass8/NewFeatures80
https://trac.osgeo.org/grass/wiki/Grass8/NewFeatures82

List of releases:

>>>>>>> 8422103f4c (wxpyimgview: explicit conversion to int (#2704))
- GitHub list: https://github.com/OSGeo/grass/releases
- Overview list: https://trac.osgeo.org/grass/wiki/Release
- History: https://grass.osgeo.org/home/history/releases/ (starting 1984!)
78 changes: 78 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ git checkout -b new-feature

You can use your favorite tools to change source code or other files
<<<<<<< HEAD
<<<<<<< HEAD
in the local copy of the code. When making changes, please follow the
[Programming Style Guide](./doc/development/style_guide.md).

Expand All @@ -147,6 +148,8 @@ For Python, run `black .` to apply standardized formatting. You can
also run linter tools such as Pylint which will suggest different improvements
to your code.
=======
=======
>>>>>>> 8422103f4c (wxpyimgview: explicit conversion to int (#2704))
in the local copy of the code. When making changes, please follow
Submitting Guidelines at
<http://trac.osgeo.org/grass/wiki/Submitting>.
Expand All @@ -173,6 +176,81 @@ For Python, run `black .` to apply standardized formatting. You can
also run linter tools such as Pylint which will suggest different improvements
to your code.

<<<<<<< HEAD
=======
### Testing changes

Testing helps to ensure that the changes work well with the rest
of the project. While there are many different ways to test,
usually you will want to compile the source code (see below),
add test code (using _grass.gunittest_ or pytest), and run code
linters (automated code quality checks).

There is a series of automated checks which will run on your pull request
after you create one. You don't need to run all these
checks locally and, indeed, some of them may fail for your code. This is a part of
the standard iterative process of integrating changes into the main code,
so if that happens, just see the error messages, go back to your code
and try again. If you are not sure what to do, let others know in a pull
request comment.

Note that there are some steps you can do locally to improve your code.
For Python, run `black .` to apply standardized formatting. You can
also run linter tools such as Pylint which will suggest different improvements
to your code.

### Committing

* Add files to the commit (changed ones or new ones):

```bash
git add file1
git add file2
```

* Commit the change (first word is the module name):

```bash
git commit -m "module: added a new feature"
```

### Pushing changes to GitHub

* Push your local feature branch to your fork:

```bash
git push origin new-feature
```

### Pull request

When you push, GitHub will respond back in the command line to tell
you what URL to use to create a pull request. You can follow that URL
or you can go any time later to your fork on GitHub, display the
branch `new-feature`, and GitHub will show you a button to create
a pull request.

Alternatively, you can explore GitHub CLI tool (_gh_) which allows you
to do `git push` and create a pull request in one step with `gh pr create -fw`.

### After creating a pull request

GRASS GIS maintainers will now review your pull request.
If needed, the maintainers will work with you to improve your changes.

Once the changes in the pull request are ready to be accepted,
the maintainers will usually squash all your commits into one commit and merge it
to the _main_ branch.

Once the pull request is merged, it is a good time to update your
local _main_ branch in order to get the change you just contributed.

### Further notes

GRASS GIS maintainers use additional workflows besides the one described
above. These are detailed at <https://trac.osgeo.org/grass/wiki/HowToGit>

>>>>>>> a2d9fb4362 (wxpyimgview: explicit conversion to int (#2704))
## Compilation

More often than not, in order to test the changes, you need to create
Expand Down
71 changes: 71 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
<<<<<<< HEAD
<<<<<<< HEAD
# syntax=docker/dockerfile:1.11@sha256:10c699f1b6c8bdc8f6b4ce8974855dd8542f1768c26eb240237b8f1c9c6c9976
=======
=======
>>>>>>> dddb74a90a (wxpyimgview: explicit conversion to int (#2704))
<<<<<<< HEAD
# syntax=docker/dockerfile:1.10@sha256:865e5dd094beca432e8c0a1d5e1c465db5f998dca4e439981029b3b81fb39ed5
=======
=======
>>>>>>> b5acd78515 (wxpyimgview: explicit conversion to int (#2704))
<<<<<<< HEAD
# syntax=docker/dockerfile:1.9@sha256:fe40cf4e92cd0c467be2cfc30657a680ae2398318afd50b0c80585784c604f28
=======
=======
>>>>>>> b49c22396f (wxpyimgview: explicit conversion to int (#2704))
<<<<<<< HEAD
# syntax=docker/dockerfile:1.8@sha256:e87caa74dcb7d46cd820352bfea12591f3dba3ddc4285e19c7dcd13359f7cefd
=======
=======
>>>>>>> a2d9fb4362 (wxpyimgview: explicit conversion to int (#2704))
<<<<<<< HEAD
# syntax=docker/dockerfile:1.8@sha256:d6d396f3780b1dd56a3acbc975f57bd2fc501989b50164c41387c42d04e780d0
=======
=======
>>>>>>> 3ab4f90615 (wxpyimgview: explicit conversion to int (#2704))
<<<<<<< HEAD
# syntax=docker/dockerfile:1.7@sha256:a57df69d0ea827fb7266491f2813635de6f17269be881f696fbfdf2d83dda33e
>>>>>>> 12b43eb397 (wxpyimgview: explicit conversion to int (#2704))
Expand All @@ -34,10 +45,16 @@ FROM ubuntu:22.04

LABEL authors="Carmen Tawalika,Markus Neteler,Anika Weinmann"
>>>>>>> 6cf60c76a4 (wxpyimgview: explicit conversion to int (#2704))
=======
FROM ubuntu:22.04

LABEL authors="Carmen Tawalika,Markus Neteler,Anika Weinmann"
>>>>>>> 8422103f4c (wxpyimgview: explicit conversion to int (#2704))
LABEL maintainer="tawalika@mundialis.de,neteler@mundialis.de,weinmann@mundialis.de"

ENV DEBIAN_FRONTEND noninteractive

<<<<<<< HEAD
<<<<<<< HEAD
SHELL ["/bin/bash", "-c"]

Expand All @@ -57,6 +74,14 @@ ARG PDAL_VERSION=2.4.3
# https://github.com/hobuinc/laz-perf/releases
ARG LAZ_PERF_VERSION=3.2.0
=======
# define versions to be used
# https://github.com/PDAL/PDAL/releases
ARG PDAL_VERSION=2.4.3
# https://github.com/hobuinc/laz-perf/releases
ARG LAZ_PERF_VERSION=3.2.0
>>>>>>> 8422103f4c (wxpyimgview: explicit conversion to int (#2704))
SHELL ["/bin/bash", "-c"]
WORKDIR /tmp
Expand All @@ -67,12 +92,16 @@ RUN apt-get update && apt-get upgrade -y && \
bison \
bzip2 \
cmake \
<<<<<<< HEAD
>>>>>>> 6cf60c76a4 (wxpyimgview: explicit conversion to int (#2704))
=======
>>>>>>> 8422103f4c (wxpyimgview: explicit conversion to int (#2704))
curl \
flex \
g++ \
gcc \
gdal-bin \
<<<<<<< HEAD
<<<<<<< HEAD
geos-bin \
git \
Expand Down Expand Up @@ -126,6 +155,8 @@ RUN apt-get update && apt-get upgrade -y && \
python3-venv \
sqlite3 \
=======
=======
>>>>>>> 8422103f4c (wxpyimgview: explicit conversion to int (#2704))
git \
language-pack-en-base \
libbz2-dev \
Expand Down Expand Up @@ -174,11 +205,15 @@ RUN apt-get update && apt-get upgrade -y && \
software-properties-common \
sqlite3 \
subversion \
<<<<<<< HEAD
>>>>>>> 6cf60c76a4 (wxpyimgview: explicit conversion to int (#2704))
=======
>>>>>>> 8422103f4c (wxpyimgview: explicit conversion to int (#2704))
unzip \
vim \
wget \
zip \
<<<<<<< HEAD
<<<<<<< HEAD
zlib1g \
"
Expand Down Expand Up @@ -368,6 +403,8 @@ COPY . /src/grass_build/
WORKDIR /src/grass_build

=======
=======
>>>>>>> 8422103f4c (wxpyimgview: explicit conversion to int (#2704))
zlib1g-dev

RUN echo LANG="en_US.UTF-8" > /etc/default/locale
Expand Down Expand Up @@ -441,7 +478,10 @@ WORKDIR /src/grass_build
# Cleanup potentially leftover GISRC file with wrong path to "demolocation"
RUN rm -f /src/grass_build/dist.*/demolocation/.grassrc*

<<<<<<< HEAD
>>>>>>> 6cf60c76a4 (wxpyimgview: explicit conversion to int (#2704))
=======
>>>>>>> 8422103f4c (wxpyimgview: explicit conversion to int (#2704))
# Set environmental variables for GRASS GIS compilation, without debug symbols
# Set gcc/g++ environmental variables for GRASS GIS compilation, without debug symbols
ENV MYCFLAGS "-O2 -std=gnu99 -m64"
Expand All @@ -456,6 +496,7 @@ ENV CXXFLAGS "$MYCXXFLAGS"
ENV NUMTHREADS=4
RUN make distclean || echo "nothing to clean"
<<<<<<< HEAD
<<<<<<< HEAD
RUN ./configure $GRASS_CONFIG \
&& make -j $NUMTHREADS \
&& make install && ldconfig \
Expand Down Expand Up @@ -563,6 +604,30 @@ RUN /src/grass_build/configure \
&& make -j $NUMTHREADS \
&& make install && ldconfig

=======
RUN /src/grass_build/configure \
--with-cxx \
--enable-largefile \
--with-proj-share=/usr/share/proj \
--with-gdal=/usr/bin/gdal-config \
--with-geos \
--with-sqlite \
--with-cairo --with-cairo-ldflags=-lfontconfig \
--with-freetype --with-freetype-includes="/usr/include/freetype2/" \
--with-fftw \
--with-postgres --with-postgres-includes="/usr/include/postgresql" \
--with-netcdf \
--with-zstd \
--with-bzlib \
--with-pdal \
--without-mysql \
--without-odbc \
--without-openmp \
--without-opengl \
&& make -j $NUMTHREADS \
&& make install && ldconfig

>>>>>>> 8422103f4c (wxpyimgview: explicit conversion to int (#2704))
# Unset environmental variables to avoid later compilation issues
ENV INTEL ""
ENV MYCFLAGS ""
Expand Down Expand Up @@ -616,5 +681,11 @@ RUN grass --tmp-location EPSG:25832 --exec r.in.pdal input="/tmp/simple.laz" out

WORKDIR /grassdb
VOLUME /grassdb
<<<<<<< HEAD
>>>>>>> 6cf60c76a4 (wxpyimgview: explicit conversion to int (#2704))
<<<<<<< HEAD
>>>>>>> 12b43eb397 (wxpyimgview: explicit conversion to int (#2704))
=======
=======
>>>>>>> 8422103f4c (wxpyimgview: explicit conversion to int (#2704))
>>>>>>> 3ab4f90615 (wxpyimgview: explicit conversion to int (#2704))
Loading

0 comments on commit de41c5c

Please sign in to comment.