Coder Social home page Coder Social logo

Comments (4)

neteler avatar neteler commented on July 19, 2024 2

2. Consider removing the deprecated code. You can't get that with g.extension anyway, no? If that's the case, you need to use Git to get the code. In that case, you can dig up the code from an old version using Git if you really need it.

Agreed. So:

ag -g DEPRECATED
src/raster/r.in.pdal/DEPRECATED
src/raster/r.le.patch/DEPRECATED
src/raster/r.le.pixel/DEPRECATED
src/raster/r.le.setup/DEPRECATED
src/raster/r.le.trace/DEPRECATED
src/raster/r.out.tiff/DEPRECATED

I suggest to remove all of them. Git preserves the history anyway.

from grass-addons.

neteler avatar neteler commented on July 19, 2024

I guess that things happen here:

cd grass-addons/src

which calls make in the respective subdirs of src/.

Here it appears that DEPRECATED modules should be ignored:

SUBDIRS := $(filter-out $(DEPRECATED_SUBDIRS), $(ALL_SUBDIRS))

but apparently that mechanism isn't used?

from grass-addons.

ninsbl avatar ninsbl commented on July 19, 2024

It seems to me, that r.in.pdal is not compiled, so the DEPRECATED file is taken into account in the make step.

When the unittest is started here: https://github.com/OSGeo/grass-addons/blob/82d59ce1424be8d7fac485836b3af5c00bba3b33/.github/workflows/test.sh#L15C16-L15C34
I guess all testsuite directory in the source tree are picked up. Maybe a solution could be to add an exception for a DEPRECATED file in the function here:
https://github.com/OSGeo/grass/blob/7089dc6ef72591b807c8ab430e9b94f74f55f38b/python/grass/gunittest/loader.py#L67

from grass-addons.

wenzeslaus avatar wenzeslaus commented on July 19, 2024

Before adding more code to grass.gunittest, I suggest:

  1. Add .gunittest.cfg and exclude those tests. Deprecated code is to be removed some day which nicely fits with the line in the configure file which also should be removed eventually (other ignored files mean failing tests, so these need to be resolved too just like the line for deprecated code).
  2. Consider removing the deprecated code. You can't get that with g.extension anyway, no? If that's the case, you need to use Git to get the code. In that case, you can dig up the code from an old version using Git if you really need it.

from grass-addons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.