This is pretty strange. Did you solve it already? Your patterns are
correct. For example:

>>> from fnmatch import fnmatch
>>> fnmatch("devkit/tests/test_files/foo_test.py", "*test_files*")
True

Matt
https://blog.documatt.com


On Tue, Aug 18, 2020 at 2:41 AM Joshua J. Kugler <jos...@azariah.com> wrote:

> sphinx-apidoc says:
>
> """
> sphinx-apidoc [OPTIONS] -o <OUTPUT_PATH> <MODULE_PATH> [EXCLUDE_PATTERN …]
>
> Any EXCLUDE_PATTERNs given are fnmatch-style file and/or directory
> patterns
> that will be excluded from generation.
> """
>
> My tree looks like this:
>
> devkit/tests/test_files/<files used for tests>
>
> My command for apidoc looks like this:
>
> sphinx-apidoc -f -e -M  --implicit-namespaces -o ./modules ../devkit/
> 'test_files/*'
>
> That doesn't exclude things in test_files/. I tried '*/test_files/*' as
> well as
> *test_files* as well as 'devkit/tests/test_files/*' but an rst file is
> still be
> creating for python files in the test_files tree.
>
> What am I doing wrong?
>
> Thanks!
>
> j
>
> --
> Joshua J. Kugler - Fairbanks, Alaska - jos...@azariah.com
> Azariah Enterprises - Programming and Website Design
> PGP Key: http://pgp.mit.edu/  ID 0x68108cbb73b13b6a
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sphinx-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sphinx-users/3490677.efuseTzYfb%40hosanna
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/CAOGNDW8%3Dsvw8DvFNuD4yU%2BvO3vsxBE0bz-yEf_Z-rjdC2Y8JDg%40mail.gmail.com.

Reply via email to