Comments (4)
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.
@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.
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.
@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)
- [WinError 2] The system cannot find the file specified HOT 3
- ignore_regexps doesnt match against whole message, only subject
- regexp filter skipping matches
- Added an AUR package.
- Update Readme to include basic full example. HOT 2
- Exception with FileInsertIntoFirstRegexMatch HOT 2
- pystache missing as dependency? HOT 2
- UnicodeEncodeError character maps to undefined HOT 7
- Support for pre-commit
- How to show changelog since certain commit? HOT 1
- Use branch name for section categorisation HOT 1
- test failures caused by 3.0.4 package missing test/__init__.py
- Is this project still maintained ? HOT 2
- Slow execution on big repositories under Cygwin HOT 8
- Enhancement Request: Multi-package repo support HOT 1
- Request: drop d2to1
- Offering to help with the project HOT 6
- Branch tags are erroneously included into change log
- Changelog usage?
- Incorrect gitchangelog format
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitchangelog.