Kengo Seki created AVRO-3879:
--------------------------------

             Summary: [Build][Python] Fix `./build.sh clean` to remove the 
generated Python documents
                 Key: AVRO-3879
                 URL: https://issues.apache.org/jira/browse/AVRO-3879
             Project: Apache Avro
          Issue Type: Improvement
          Components: build, python
            Reporter: Kengo Seki
            Assignee: Kengo Seki


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:

{code}
$ 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]
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to