glasserc / rst2wp

Post to Wordpress using ReStructuredText
11 stars 10 forks source link

Port to Python 3 #16

Closed glasserc closed 1 year ago

glasserc commented 3 years ago

This is a rough-and-ready port to Python 3 (specifically I tested this with Python 3.8.5) to address #15. I used futurize to do most of it and then tested it out on one of the blogs I maintain using rst2wp. I didn't upload a new post but I did make some edits to an old post, and --list-tags works fine.

glasserc commented 3 years ago

N.B. There's still a lot of work to bring this up to "modern Python" standards. In particular, we could probably strip out a lot of the print statements (or convert them to a real logger or something), we should move from urlretrieve to requests, we should probably move to a src layout, setup.py probably needs some attention, we could set up CI to run the tests automatically or even document how to run them at all [edit: I got them to run using python -m pytest]...