ryanfox / sphinx-markdown-tables

A markdown table plugin for Sphinx
GNU General Public License v3.0
59 stars 15 forks source link

Add tests and validations #22

Open dwighthubbard opened 5 years ago

dwighthubbard commented 5 years ago

This started as a change to fix the concrete makedocs==2.6.11 dependency in the setup.py install_requires setting. To fix #21

Since I was unsure if this requirement actually needed the specific version, I implemented tests and then made the changes. Letting the CI/CD pipeline verify that it still worked with the changes.

The CI Pipeline for this fork can be seen at: Build Status

The code coverage reporting for this fork is at: Code Coverage

The test package published by the CI pipeline to test.pypi.org is at: https://test.pypi.org/project/sphinx-markdown-tables/

The specifics of this changes are:

Note: My CI Pipeline has CODECOV_TOKEN and test pypi credentials in the CI Pipeline secrets which are needed to publish the code coverage to codecov and the test package to test.pypi.org.

ryanfox commented 5 years ago

Hi Dwight, thanks for the PR. I think the tests are a good idea.

This is a pretty small package - the PR currently has more external dependencies than I would prefer. If this was reworked to limit that, I think it would be a good addition.

Guts commented 4 years ago

Hi,

I'm using your pretty small package and it helps a lot: thanks! 👍

IMHO, this PR is a pretty good idea. I'm here today because the latest update (0.0.13) just broke my doc builds.

This is a pretty small package - the PR currently has more external dependencies than I would prefer. If this was reworked to limit that, I think it would be a good addition.

As far as dependencies are concerned, I don't see any more than in the original project:

install_requires =
    markdown>=2.6.11  --> well, you just upgraded it but not a big git conflict to solve here
    recommonmark        --> it should indeed be mentioned
    setuptools>38.0.0    --> even, still inuseful to set the minimum version

The most of added dependencies are for the tests and optional:

[options.extras_require]
test =
    pytest
    pytest-cov
    sphinx-testing

But, again, I think it could improve the package consistency and stability.

ryanfox commented 4 years ago

Hi Guts, thanks. I think the issue was that I accidentally built v0.0.13 with some testing changes still active in my repo. I uploaded v0.0.14 - give it a try now.

The dependencies I was referring to were the things like pycharm and cobertura in .gitignore, and pylintrc, and tox, and screwdriver.