Skip to content

Commit

Permalink
* setup.py:
Browse files Browse the repository at this point in the history
  - Fix UnicodeDecodeError on install
  • Loading branch information
dustinkirkland committed Jun 26, 2023
1 parent 1ddc57d commit 815e50a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ python-petname (2.7) unreleased; urgency=medium
* debian/control, debian/copyright, setup.py:
- permanently relocating from Launchpad/bzr to Github/git

[ Ethan Ho]
* setup.py:
- Fix UnicodeDecodeError on install

[ Anthony Sottile ]
* debian/compat, petname/__init__.py, petname/__main__.py, setup.py:
- add mypy typing

-- Dustin Kirkland <[email protected]> Mon, 26 Jun 2023 17:26:36 -0500
-- Dustin Kirkland <[email protected]> Mon, 26 Jun 2023 17:44:26 -0500

python-petname (2.6-0ubuntu1) eoan; urgency=medium

Expand Down
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@
# along with python-petname. If not, see <http://www.gnu.org/licenses/>.

from setuptools import setup
import io

with open("README.md", "r") as fh:
long_description = fh.read()
try:
with io.open("README.md", "r", encoding='utf-8') as fh:
long_description = fh.read()
except UnicodeDecodeError:
long_description = str()

setup(
name='petname',
Expand Down

0 comments on commit 815e50a

Please sign in to comment.