Code Monkey home page Code Monkey logo

Comments (4)

vaab avatar vaab commented on July 23, 2024

Thanks for your interest for gitchangelog and your report.

I can't find any chars in setup.cfg in the git sources NOR in the gitchangelog-3.0.3.tar.gz available on the pypi. Please note that the whl file does not contain any setup.cfg.

I can confirm that there are spaces (hex: 20) and tabs (hex: 09) that were added automatically by the packager on the lines you've mentioned. I have to mention that this is added by the packager.

Do you have good reason to think that this is causing the UnicodeDecodeError ? Why are you pointing to these ? Sorry if you thought having made this obvious in your previous comment, but it is not clear for me yet.

I have not seen any b7 chars BTW.

from gitchangelog.

aboe76 avatar aboe76 commented on July 23, 2024

@vaab I was debugging it on my end with vim on a linux system to see If I could find the characters, maybe I have set the wrong encoding to show the ascii chars...

The reason to address this here is the build server I'm using build.opensuse.org won't allow me to change the environment in which it builds...

This is the location to view the actual build:
https://build.opensuse.org/package/show/home:aboe76/python-gitchangelog

from gitchangelog.

vaab avatar vaab commented on July 23, 2024

Ok, if we forget about b7 (still don't now where you find this... no files have this char in the whole files provided in the tar.gz), I can give you clues about why this could happen:
setup.cfg is full ascii, and is refering to README.rst (full ascii) and a generated CHANGELOG.rst that is in utf-8, mostly to write correctly names of some authors of some commits.

To be honest, this doesn't happen nowhere in my testbeds (that includes a lot of installation procedures). And I'm not sure what would be the right way to go for you here. You can try to confirm first that this is coming from there by blanking out the CHANGELOG.rst in the tar.gz before installing it (not sure what you can do or what are the policies for RPM building, but you should be able to have distribution patches, don't you ?)

If this solves the problem, then this means we've nailed it. The second step would be to replace chars with unaccentuated ones in CHANGELOG.rst. This could be scripted, and applied automatically to newer release each time.

Of course, I won't change the content of the CHANGELOG.rst in the main release to make it ASCII compatible for a few reasons, amongst them, I like to properly write the names of the contributors, pushing forward usage of utf-8 is another reason, it also serves as a good test for me to check that gitchangelog handles properly coding/decoding schemes and more specifically is proficient in utf-8.

BTW, another solution (if you can use it), is to use the wheel package instead of the tar.gz. This package doesn't include any CHANGELOG.rst. Or last but not least: use the github repository source code directly. Don't forget to ./autogen.sh before doing any installation.

Do you really need this CHANGELOG.rst in the RPM ? (I'm asking this because whl doesn't seem to include any, and is also a packaging format).

I hope my suggestions will give you ideas to move forward. Tell me if I can help further. And thanks again for your efforts.

from gitchangelog.

aboe76 avatar aboe76 commented on July 23, 2024

@vaab it isn't the CHANGELOG.rst that is the problem, it's during the build on python3 that the setup.py complains about UnicodeDecodeError: ascii.

Will ask the maintainers of the build environment to take a look and see if they can figure it out.

from gitchangelog.

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.