Comments (4)
Hi, ;-) ...
Hmm, config file existence is checked... but bugs might exist, may I ask you to provide the scenario and the output that makes you think that when the config file doesn't exist, it won't be detected as such ? I'll be glad to tackle that.
Same question for the check of existences of sections : the assumption made by the code is that the released files are coherent and that a default value is provided by the gitchangelog.rc.reference
. Let me rephrase this: the code does not need to check for existence of a section as we provide a default value thanks to the gitchangelog.rc.reference
that should match the one used by the code.
If something was not clear and lead you to act genuinely in a way that lead you to break your gitchangelog configuration, there might be information lacking from the documentation part. What would come to mind is that you changed your gitchangelog.rc.reference
(which you should not change), and possibly commented the ignore_regexps
. I invite you instead to revert this file back, and simply override the value in your own .gitchangelog.rc
.
Otherwise, it is possible that I have not clearly understood your report...
Thanks for the feedback and your interest for this project. I'll be glad to share with you a new beer as we did last time in Paris, a lot have changed since this last time !
from gitchangelog.
I'm closing this due to incomplete information. Feel free to answer my questions so I can identify a bug, misbehavior, or amelioration that would help you in this case.
from gitchangelog.
Hi,
Sorry for the lag. How to reproduce this:
# Creating a clean environment
$ virtualenv test
Using base prefix '/home/sdouche/.pyenv/versions/3.5.1'
New python executable in /home/sdouche/test/bin/python3.5
Also creating executable in /home/sdouche/test/bin/python
Installing setuptools, pip, wheel...done.
# Install gitchangelog
$ .test/bin/pip install gitchangelog
Collecting gitchangelog
Installing collected packages: gitchangelog
Successfully installed gitchangelog-2.3.0
# Try it on a random repo
$ cd ~/src/coreos/rkt/
$ ~/test/bin/gitchangelog
Traceback (most recent call last):
File "/home/sdouche/test/bin/gitchangelog", line 11, in <module>
sys.exit(main())
File "/home/sdouche/test/lib/python3.5/site-packages/gitchangelog.py", line 1027, in main
ignore_regexps=config['ignore_regexps'],
KeyError: 'ignore_regexps'
The bug is the lack of configuration file checking. After creating the rc file, it works.
from gitchangelog.
I want to make gitchangelog
warn about these missing keys and in the same time not require the existence of gitchangelog.rc.reference
(which was at the core of your issue, with the added fact that the error messages are not clear). This seems indeed the saner option and provide much more than proper error messages. The final aim is to have a gitchangelog.py
that has no dependency, and is a one-file project that could be simply copied anywhere if needed.
To be noted also: your problem was about not finding gitchangelog.rc.reference
despite having used pip install gitchangelog
: the distribution process was heavily misfunctioning due to big inconsistences in the python packaging world. This was also already corrected very recently, I hope definitively.
I'll probably release version 3.0.0 of gitchangelog in a few days with these fixes and features.
from gitchangelog.
Related Issues (20)
- setup.cfg contains ascii characters HOT 4
- [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?
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.