Le 17/08/2021 à 19:58, Matthias Koeppe a écrit :
> On Tuesday, August 17, 2021 at 8:13:57 AM UTC-7 Jean-Florent Raymond wrote:
>
>> It seems that I have to import "A" in the doctest of each method,
>> otherwise I get an error that it is not defined.
>
>
> Yes, that's normal; after all, users of your package will have to do the
> same when they want to run these examples...
>
OK, thanks! I will do this then.
>
>> If this matters, the module I am working on is of the form of a
>> pip-installable package prepared following the example at
>> https://github.com/sagemath/sage_sample .
>
>
> Unrelated, but let me point out that sage_sample is unfortunately fairly
> outdated regarding its packaging practices:
> 1) Adding commands such as "setup.py test" is no longer recommended
> 2) Using "setup_requires" is outdated, and instead pyproject.toml should be
> used to declare the build system
>
Thanks for pointing out that!
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sage-devel/0dcb39a5-7692-66f7-4bb3-a486da948b40%40uca.fr.