Re: Questions about including tests/ directory into package

2020-03-20 Thread Sandro Tosi
> packages=find_packages("src"), > > Setuptools will only find "tinyalign" under the "src" folder, as a > python module to package, which is why that's the only thing that is > going to be packaged. > > IMO, the best approach to this problem is to convince upstream to move > their tests folder

Re: Questions about including tests/ directory into package

2020-03-20 Thread Thomas Goirand
On 3/19/20 7:22 AM, Sao I Kuan wrote: > Hi, > > I'm newcomer to Debian packaging, and trying to add the autopkgtest > test script into python-tinyalign[1]. > > [1] https://salsa.debian.org/med-team/python-tinyalign > > And now I'm facing a (maybe simple) problem. > > The upstream test

Re: Questions about including tests/ directory into package

2020-03-20 Thread Sao I Kuan
On Fri, Mar 20, 2020 at 2:38 AM Diane Trout wrote: > The way I solved that problem in a similar package was this > > Test-Command: set -e > ; for py in $(py3versions -r 2>/dev/null) > ; do cd tests > ; echo "Testing with $py in $(pwd):" > ; http_proxy= $py -m pytest -v --pyargs > ; done >

Re: Questions about including tests/ directory into package

2020-03-19 Thread Diane Trout
On Thu, 2020-03-19 at 15:22 +0900, Sao I Kuan wrote: > Hi, > > I'm newcomer to Debian packaging, and trying to add the autopkgtest > test script into python-tinyalign[1]. > > [1] https://salsa.debian.org/med-team/python-tinyalign > > And now I'm facing a (maybe simple) problem. > > The

Questions about including tests/ directory into package

2020-03-19 Thread Sao I Kuan
Hi, I'm newcomer to Debian packaging, and trying to add the autopkgtest test script into python-tinyalign[1]. [1] https://salsa.debian.org/med-team/python-tinyalign And now I'm facing a (maybe simple) problem. The upstream test files are located in tests/ directory, but seems this