Skip to content

Commit

Permalink
rnc2rng 2.6.1 handles rnc file encoding (fixes #81)
Browse files Browse the repository at this point in the history
  • Loading branch information
brechtm committed May 22, 2018
1 parent b074249 commit b1a5f92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import sys

from datetime import datetime
from io import open
from subprocess import Popen, PIPE
from setuptools import setup, find_packages
from setuptools.command.build_py import build_py
Expand Down Expand Up @@ -63,9 +64,8 @@ def convert_rnc():
import rnc2rng

filename_root, _ = os.path.splitext(CSL_SCHEMA_RNC)
with open(CSL_SCHEMA_RNC, 'r') as rnc:
root = rnc2rng.load(rnc)
with open(filename_root + '.rng', 'w') as rng:
root = rnc2rng.load(CSL_SCHEMA_RNC)
with open(filename_root + '.rng', 'w', encoding='utf-8') as rng:
rnc2rng.dump(root, rng)


Expand All @@ -91,7 +91,7 @@ def run(self):
'data/schema/*.rng',
'data/styles/*.csl']},
scripts=['bin/csl_unsorted'],
setup_requires=['rnc2rng>=2.2'],
setup_requires=['rnc2rng>=2.6.1'],
install_requires=['lxml'],
provides=[PACKAGE],
#test_suite='nose.collector',
Expand Down

0 comments on commit b1a5f92

Please sign in to comment.