Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3879

[Build][Python] Fix `./build.sh clean` to remove the generated Python documents

    XMLWordPrintableJSON

Details

    Description

      Currently, ./build.sh clean doesn't remove the files under lang/py/docs/build, so running that script multiple times can cause the following error, even if ./build.sh clean is executed in advance:

      $ git clone https://github.com/apache/avro.git
      $ cd avro
      $ ./build.sh docker
      $ ./build.sh test
      $ ./build.sh clean dist
      
      ...
      
      [WARNING] Files with unapproved licenses:
        lang/py/docs/build/html/search.html
        lang/py/docs/build/html/index.html
        lang/py/docs/build/html/genindex.html
        lang/py/docs/build/html/searchindex.js
        lang/py/docs/build/html/intro.html
        lang/py/docs/build/html/_static/searchtools.js
        lang/py/docs/build/html/_static/pygments.css
        lang/py/docs/build/html/_static/documentation_options.js
        lang/py/docs/build/html/_static/custom.css
        lang/py/docs/build/html/_static/basic.css
        lang/py/docs/build/html/_static/doctools.js
        lang/py/docs/build/html/_static/sphinx_highlight.js
        lang/py/docs/build/html/_static/language_data.js
        lang/py/docs/build/html/_static/alabaster.css
        lang/py/docs/build/html/py-modindex.html
        lang/py/docs/build/html/.buildinfo
        lang/py/docs/build/html/automodule.html
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  2.220 s
      [INFO] Finished at: 2023-10-08T09:59:38Z
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.15:check (default) on project avro-toplevel: Too many files with unapproved license: 17 See RAT report in: /home/sekikn/avro/target/rat.txt -> [Help 1]
      

      Attachments

        Issue Links

          Activity

            People

              sekikn Kengo Seki
              sekikn Kengo Seki
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h