Skip to content

Commit

Permalink
update setup.py to support py3
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlie committed Sep 23, 2022
1 parent 77f8830 commit 6ce74c3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
This is a very lazy Python 3 port of the original
[rawdog](https://offog.org/code/rawdog/), because pip for python2 isn't
available on Debian 11, and I wasn't going to be bothered to migrate my
newsfeed to a different tool. I ran 2to3, played swapped `cgi.encode` for
newsfeed to a different tool. I ran 2to3, swapped `cgi.encode` for
`html.encode`, and fixed some of the abuse of string types and encodings that
are less-necessary as py3 is UTF-8-by-default. Things may work for you, or not;
I've not tested any plugins (they'd need to be ported to py3 as well), because
Expand Down
18 changes: 9 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from distutils.core import setup
import sys

if sys.version_info < (2, 7) or sys.version_info >= (3,):
print("rawdog requires Python 2.7 or later, and not Python 3.")
if sys.version_info != (3, ):
print("rawdog requires Python 3.")
sys.exit(1)

setup(name="rawdog",
version="2.23",
description="RSS Aggregator Without Delusions Of Grandeur",
author="Adam Sampson",
author_email="ats@offog.org",
url="http://offog.org/code/rawdog/",
version="3.0",
description="RSS Aggregator Without Delusions Of Grandeur - python3 port",
author="echarlie",
author_email="echarlie@vtluug.org",
url="https://github.com/echarlie/rawdog-py3"
scripts=['rawdog'],
data_files=[('share/man/man1', ['rawdog.1'])],
packages=['rawdoglib'],
Expand All @@ -21,6 +21,6 @@
"Environment :: Console",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"Operating System :: POSIX",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Internet :: WWW/HTTP",
])

0 comments on commit 6ce74c3

Please sign in to comment.