pytzwhere icon indicating copy to clipboard operation
pytzwhere copied to clipboard

Add tests to PyPI source tarball?

Open jluttine opened this issue 7 years ago • 1 comments

Could you include tests in the source tarball in PyPI? I think it's typically considered good practice:

  • https://docs.python.org/2/distutils/sourcedist.html#specifying-the-files-to-distribute
  • https://stackoverflow.com/a/20180000

Many significant Python packages (e.g., numpy, scipy, pandas) are including the tests in PyPI source tarball. This makes it possible to use the official PyPI release and run tests to check that everything is working.

Alternatively, I can use GitHub, but then it'd be nice if the PyPI releases were tagged on GitHub so I know which commit is which release exactly.

I'm packaging pytzwhere to a Linux distro and as part of the building process, the unit tests are run, that's why I'd like to have the tests available while using the official release from PyPI.

jluttine avatar Feb 06 '19 14:02 jluttine

Hi @jluttine! That's very cool to hear! Pull requests are welcome. I'd be happy to merge and release a new version with tests.

pegler avatar Feb 06 '19 16:02 pegler