Git Product home page Git Product logo

Comments (12)

alf avatar alf commented on May 27, 2024

@wikier Hopefully you can do a patch release fast so others aren't bitten by this. :)

from sparqlwrapper.

wikier avatar wikier commented on May 27, 2024

@alf why __init__.py is required to be ascii?

from sparqlwrapper.

alf avatar alf commented on May 27, 2024

__init__.py is not required to be ascii, but in line 38 of your setup.py you do for line in open('SPARQLWrapper/__init__.py'):. You need to specify the encoding for that to work.

See https://docs.python.org/3/howto/unicode.html#reading-and-writing-unicode-data

from sparqlwrapper.

wikier avatar wikier commented on May 27, 2024

@alf I think I have fixed the release. Can you please check it?

from sparqlwrapper.

alf avatar alf commented on May 27, 2024

No, still not fixed. The module docstring contains the name Sergio Fernández but is not defined as a unicode string.

from sparqlwrapper.

joernhees avatar joernhees commented on May 27, 2024

@wikier could you maybe make this 1.6.4 instead of moving the tag? (cause different same version releases get us into hell)

from sparqlwrapper.

wikier avatar wikier commented on May 27, 2024

@joernhees is right, we keep 1.6.3 as it was, and we try to quickly address this issue for 1.6.4.

from sparqlwrapper.

wikier avatar wikier commented on May 27, 2024

@alf can you please check if the current HEAD of master would satisfy such environment requirement? It never failed to me.

from sparqlwrapper.

alf avatar alf commented on May 27, 2024

No, you haven't fixed the issue. How about going with my initial suggestion? Changing the names of contributors so they don't fall outside of the ascii range is not a good way to solve this.

The problem isn't in SPARQLWrapper/__init__.py, it's in setup.py. The following should fix it.

diff --git a/setup.py b/setup.py
index 3026b67..0d5f9ac 100755
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,7 @@ if py3:
     _version_re = re.compile(r'__version__\s*=\s*"(.*)"')
     _authors_re = re.compile(r'__authors__\s*=\s*"(.*)"')
     _url_re = re.compile(r'__url__\s*=\s*"(.*)"')
-    for line in open('SPARQLWrapper/__init__.py'):
+    for line in open('SPARQLWrapper/__init__.py', encoding='utf-8'):
         version_match = _version_re.match(line)
         if version_match:
             version = version_match.group(1)

from sparqlwrapper.

wikier avatar wikier commented on May 27, 2024

Oh sorry, I got it wrong. I did not remember the workaround we have for avoiding metadata duplication.

I've applied your patch. So, if that looks fine, we can quickly publish a 1.6.4 patch release.

from sparqlwrapper.

alf avatar alf commented on May 27, 2024

Voila, works like a charm. Thanks for working with me on this :)

alf@core-01:~/$ pip3 -q install "https://github.com/RDFLib/sparqlwrapper/tarball/master#egg=SPARQLWrapper-1.6.4-pre"
alf@core-01:~/$ echo $?
0

from sparqlwrapper.

wikier avatar wikier commented on May 27, 2024

Thanks for the quick notice ;-)

from sparqlwrapper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.