mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-15 06:52:39 +02:00
[codecs] to read file
This commit is contained in:
parent
6baf4e7449
commit
c6efa62e36
2 changed files with 7 additions and 11 deletions
|
|
@ -65,8 +65,8 @@ deploy:
|
||||||
password:
|
password:
|
||||||
secure: "vMEOlP7DQhFJ7hQAKtKC5hrJXFl5BkUt4nXdosWWiw//Kg8E+PPLg88XPI2gqIosir9wwgtbSBBbbwCxkM6uxRNMpoNR8Ixyv9fmSXp4rLl7bbBY768W7IRXKIBjpuEy2brQjoT+CwDDSzUkckHvuUjJDNRvUv8ab4P/qYO1LG4="
|
secure: "vMEOlP7DQhFJ7hQAKtKC5hrJXFl5BkUt4nXdosWWiw//Kg8E+PPLg88XPI2gqIosir9wwgtbSBBbbwCxkM6uxRNMpoNR8Ixyv9fmSXp4rLl7bbBY768W7IRXKIBjpuEy2brQjoT+CwDDSzUkckHvuUjJDNRvUv8ab4P/qYO1LG4="
|
||||||
on:
|
on:
|
||||||
#tags: true
|
tags: true
|
||||||
branch: plot_density
|
branch: master
|
||||||
server: https://testpypi.python.org/pypi
|
#server: https://testpypi.python.org/pypi
|
||||||
distributions: "bdist_wheel sdist bdist_egg"
|
distributions: "bdist_wheel sdist bdist_egg"
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
|
|
|
||||||
10
setup.py
10
setup.py
|
|
@ -42,13 +42,9 @@ import numpy as np
|
||||||
|
|
||||||
|
|
||||||
def read(fname):
|
def read(fname):
|
||||||
try:
|
import codecs
|
||||||
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
|
with codecs.open('README.md', 'r', 'utf-8') as f:
|
||||||
return unicode(f.read(), 'utf-8')
|
print(f.read())
|
||||||
except NameError:
|
|
||||||
#python 3
|
|
||||||
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
|
|
||||||
return f.read()
|
|
||||||
|
|
||||||
def read_to_rst(fname):
|
def read_to_rst(fname):
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue