Robust way to ensure other people can run my python program

前端 未结 8 1345
醉酒成梦
醉酒成梦 2021-02-13 00:26

I wish to place a python program on GitHub and have other people download and run it on their computers with assorted operating systems. I am relatively new to python but have u

8条回答
  •  误落风尘
    2021-02-13 00:53

    Because it is missing from the other answers, I would like to add one completely different aspect:

    Unit testing. Or testing in general.

    Usually, it is good to have one known good configuration. Depending on what the dependencies of the program are, you might have to test different combinations of packages. You can do that in an automated fashion with e.g. tox or as part of a CI/CD pipeline.

    There is no general rule of what combination of packages should be tested, but usually python2/3 compatability is a major issue. If you have strong dependencies on packages with major version differences, you might want to consider testing against these different versions.

提交回复
热议问题