Two modules I made for PyWeek: maff and pygame-view
maff is a bunch of simple mathematical convenience functions that come up in games, like easing functions. I think some people might find it useful.pygame-view is a module to help with supporting multiple window resolutions. I definitely tried to make it usable for everyone, but I know the way I solve this problem is a little unusual, so you may not like it. Still, let me know if you have any feedback or trouble with it.
(log in to comment)
Comments
I'll give it another try this time. Got any recommendations for how to get help? I'm on Ubuntu.
There are tutorials and lots of documentation, which is how I learned. For a one-module package your setup.py is mostly metadata and just py_modules=['module_name']. Here's an example. Then you run
$ python setup.py sdist upload
That said, there are shortcuts!
pbr automatically configures your package by introspecting things like READMEs and requirements.txt and Git tags.
cookiecutter can set you up a complete repo layout, with a setup.py done in the standard way, and preconfigured with py.test and tox, and integrations for things like Travis and pyup. I used that for flake8-html.
If I'm lucky, whatever advice I get won't just make things worse, but that'll be a first.
mauve on 2017/07/17 07:49:
You should make these pip installable!Also, you'd get great results if you Cythonise maff. I might submit a PR to do just that.