GRASS GIS Core Repository (mirror) - https://grass.osgeo.org
 
 
 
 
 
 
Go to file
Alexandre Detiste e2d4fbabe5
Python: Remove code for Python 2, remove six from requirements (#3079)
* remove unused code

* removing six dependency from CI

* remove reference to removed orderdict.py

* python2: remove old py3-compat imports from __future__

* python2 removal: review all "except ImportError:"

* python2 removal: update ctypesgen help text

* python2 removal: Ctypes is a builtin now

* rpm: remove reference to RHEL6 python2 packages


---------

Co-authored-by: Anna Petrasova <kratochanna@gmail.com>
2023-08-08 11:13:54 -04:00
.github Python: Remove code for Python 2, remove six from requirements (#3079) 2023-08-08 11:13:54 -04:00
.travis Python: Remove code for Python 2, remove six from requirements (#3079) 2023-08-08 11:13:54 -04:00
binder binder: update dependencies, disable PDAL (#3063) 2023-08-01 12:52:28 -04:00
db Spell checking: fixed typos (#2862) 2023-02-27 13:45:25 +01:00
demolocation Fix trailing whitespace, EOF and file formatting (#2785) 2023-01-26 14:10:26 +01:00
display d.rast.arrow: Support Terraflow (ArcGIS) directions (#2987) 2023-06-04 11:24:38 -06:00
doc howto_release.md: update wingrass notes (#3061) 2023-08-07 14:07:41 +02:00
docker Python: Remove code for Python 2, remove six from requirements (#3079) 2023-08-08 11:13:54 -04:00
general grass.unittest: Fix usage of assertRegexpMatches() removed from Python 3.12 2023-06-07 17:17:29 +02:00
gui Python: Remove code for Python 2, remove six from requirements (#3079) 2023-08-08 11:13:54 -04:00
imagery i.vi: update manual after PVI changes (#2903) 2023-03-23 15:37:09 -04:00
include version: Start 8.4.0dev (#2964) 2023-05-18 09:54:36 -04:00
lib r.texture manual: fix output parameter in example (#3108) 2023-08-01 09:43:33 +02:00
locale Python: Remove code for Python 2, remove six from requirements (#3079) 2023-08-08 11:13:54 -04:00
macosx Fix trailing whitespace, EOF and file formatting (#2785) 2023-01-26 14:10:26 +01:00
man Python: Remove code for Python 2, remove six from requirements (#3079) 2023-08-08 11:13:54 -04:00
misc Spell checking: fixed typos (#2862) 2023-02-27 13:45:25 +01:00
mswindows Python: Remove code for Python 2, remove six from requirements (#3079) 2023-08-08 11:13:54 -04:00
ps Spell checking: fixed typos (#2862) 2023-02-27 13:45:25 +01:00
python Python: Remove code for Python 2, remove six from requirements (#3079) 2023-08-08 11:13:54 -04:00
raster r.texture manual: fix output parameter in example (#3108) 2023-08-01 09:43:33 +02:00
raster3d grass.gunittest: Fix usage of assertEquals() removed from Python 3.12 (#3009) 2023-06-07 11:40:17 +02:00
rpm Python: Remove code for Python 2, remove six from requirements (#3079) 2023-08-08 11:13:54 -04:00
scripts Python: Remove code for Python 2, remove six from requirements (#3079) 2023-08-08 11:13:54 -04:00
singularity/debian docker: update outdated release branch names (#2431) 2022-06-17 11:24:55 +02:00
temporal Python: Remove code for Python 2, remove six from requirements (#3079) 2023-08-08 11:13:54 -04:00
testsuite Fix trailing whitespace, EOF and file formatting (#2785) 2023-01-26 14:10:26 +01:00
utils Python: Remove code for Python 2, remove six from requirements (#3079) 2023-08-08 11:13:54 -04:00
vector v.fill.holes: Add new tool to remove inner isles, keep outer boundary (#2486) 2023-07-21 21:30:59 -04:00
visualization Fix '-Wunused-parameter' compiler warnings (#2770) 2023-02-12 15:51:56 +01:00
.clang-format pre-commit: add yaml file lint (#2790) 2023-02-01 10:35:08 +01:00
.dockerignore docker alpine: cleanup and drop Dockerfile_alpine_latest (#2912) 2023-04-21 17:34:34 +02:00
.flake8 wxGUI: fix show MASK statusbar button widget if mask is created (#2520) 2023-06-02 21:39:56 +02:00
.git-blame-ignore-revs git-blame-ignore: add commit of #2785 (#2789) 2023-01-26 14:17:29 +01:00
.gitignore contributing: Ignore Jupyter Notebook checkpoint directory in Git (#2435) 2022-07-26 11:23:37 -04:00
.gunittest.cfg tests: Disable test of core.gcmd.recv_some (#2826) 2023-02-14 11:00:36 -05:00
.pre-commit-config.yaml contributing: Update to Black 23.1.0 (#2866) 2023-03-01 21:08:00 -05:00
.pylintrc Python: Remove code for Python 2, remove six from requirements (#3079) 2023-08-08 11:13:54 -04:00
.travis.yml configure: use pkg-config for PDAL configuration (#2851) 2023-02-24 19:18:13 +01:00
AUTHORS Fix trailing whitespace, EOF and file formatting (#2785) 2023-01-26 14:10:26 +01:00
CHANGES Minor cleanup of CHANGES file (#2327) 2022-04-26 20:45:25 +02:00
CITATION.cff version: Start 8.4.0dev (#2964) 2023-05-18 09:54:36 -04:00
CITING GRASS GIS 8.0 changes (#1597) 2021-05-31 21:09:50 +02:00
CONTRIBUTING.md docs: Update submitting guidelines (#2797) 2023-02-17 12:30:06 +01:00
COPYING Fix trailing whitespace, EOF and file formatting (#2785) 2023-01-26 14:10:26 +01:00
Dockerfile version: Start 8.4.0dev (#2964) 2023-05-18 09:54:36 -04:00
GPL.TXT welcome to GRASS 7.0.svn 2008-04-27 12:33:26 +00:00
INSTALL.md man: Rename REQUIREMENTS.html to REQUIREMENTS.md (#2729) 2023-01-24 14:00:46 +01:00
Makefile Fix trailing whitespace, EOF and file formatting (#2785) 2023-01-26 14:10:26 +01:00
NEWS Minor cleanup of CHANGES file (#2327) 2022-04-26 20:45:25 +02:00
README.md pre-commit-config.yaml: exclude README.md from markdown-lint (#2971) 2023-05-20 14:18:35 +02:00
REQUIREMENTS.md Python: Remove code for Python 2, remove six from requirements (#3079) 2023-08-08 11:13:54 -04:00
TODO Fix trailing whitespace, EOF and file formatting (#2785) 2023-01-26 14:10:26 +01:00
Vagrantfile Python: Remove code for Python 2, remove six from requirements (#3079) 2023-08-08 11:13:54 -04:00
aclocal.m4 Spell checking: fixed typos (#2862) 2023-02-27 13:45:25 +01:00
binaryInstall.src Fix trailing whitespace, EOF and file formatting (#2785) 2023-01-26 14:10:26 +01:00
config.guess configure: update to latest config.guess and config.sub (#2225) 2022-03-02 10:37:32 +01:00
config.sub configure: update to latest config.guess and config.sub (#2225) 2022-03-02 10:37:32 +01:00
configure configure: use pkg-config for PDAL configuration (#2851) 2023-02-24 19:18:13 +01:00
configure.ac configure: use pkg-config for PDAL configuration (#2851) 2023-02-24 19:18:13 +01:00
contributors.csv contributors: add missing ORCid 2023-03-19 12:08:38 +01:00
contributors_extra.csv contributors_extra.csv: Nikos Alexandris added 2017-03-17 20:53:16 +00:00
grass.pc.in pkg-config file: grass executable is non-versioned (#2227) 2022-03-02 10:36:20 +01:00
grasslib.dox Fix trailing whitespace, EOF and file formatting (#2785) 2023-01-26 14:10:26 +01:00
install-sh install-sh: updated to newer version (source: https://svn.met.no/viewvc/fimex/branches/version0_28_x/install-sh, GPL) 2013-06-10 12:31:57 +00:00
pyproject.toml tests: Add timeout to pytest (#2499) 2022-07-26 12:34:26 -04:00
renovate.json Fix trailing whitespace, EOF and file formatting (#2785) 2023-01-26 14:10:26 +01:00
translators.csv Fix trailing whitespace, EOF and file formatting (#2785) 2023-01-26 14:10:26 +01:00

README.md

GRASS GIS Repository

Build Status GCC C/C++ standards check Python code quality check General linting Ubuntu OSGeo4W CentOS DOI Join the chat at https://gitter.im/grassgis/community

Description

GRASS GIS (https://grass.osgeo.org/) is a Geographic Information System used for geospatial data management and analysis, image processing, graphics/map production, spatial modeling, and visualization.

Launch this repository in Binder and experiment with GRASS's Python API in Jupyter Notebooks by clicking the button below:

Binder

Contributing

In general: you don't really need write access as you can simply open a pull request to contribute to GRASS GIS. See CONTRIBUTING file for more details.

How to get write access here

Want to become a core developer? See Procedure for gaining Git write access

How to compile GRASS

See the INSTALL.md file.

Yes, you should really read INSTALL.md. In addition, there are detailed compile instructions in the Wiki.

Docker

Build a docker image using the downloaded source code (run this in the directory containing the source code):

A. Docker image without graphical user interface - wxGUI.

docker build -t grassgis .

A test run (assuming you have the existing GRASS GIS test location; it can be downloaded from here)

# case 1: launching in the grassdata directory in which the location is stored:
docker run -it --rm --user=$(id -u):$(id -g) --volume $(pwd):/data \
    --env HOME=/data/ grassgis grass --text nc_basic_spm_grass7/user1 \
        --exec g.region -p

# case 2: launching anywhere
docker run -it --rm --user=$(id -u):$(id -g) \
    --volume /your/test/grassdata/:/data --env HOME=/data/ grassgis \
        grass /data/nc_basic_spm_grass7/PERMANENT --exec g.region -p

Note that the first grassgis is the name of the image while the second grass is the name of the executable.

To run the tests (again assuming local location):

docker run -it --rm --user=$(id -u):$(id -g) \
    --volume /your/test/grassdata/:/data --env HOME=/data/ -w /code/grass \
        grassgis grass /data/nc_basic_spm_grass7/PERMANENT --exec \
            python -m grass.gunittest.main \
                --location nc_basic_spm_grass7 --location-type nc

B. Docker image with graphical user interface - wxGUI.

docker build -t grassgis -f docker/ubuntu_wxgui/Dockerfile .

Note that the first grassgis is the name of the image while the second grass is the name of the executable.

xhost local:$(id -u)
docker run -it --privileged --user=$(id -u):$(id -g) --rm \
    --volume="$(pwd)/:/data" --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
    --env HOME=/data/ --env DISPLAY=$DISPLAY \
    --device="/dev/dri/card0:/dev/dri/card0" \
    grassgis grass --gui

Note: If you compiled locally before building the Docker image, you may encounter problems as the local configuration and the locally compiled files are copied to and used in the Docker image. To make sure you don't have this issue, clean all the compiled files from the source code:

make distclean

Thanks to all contributors ❤

GRASS contributors