diff --git a/CHANGELOG.md b/CHANGELOG.md index 7baf5e2..f006029 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,23 +1,116 @@ -# Change Log +# Changelog + All notable changes to this project will be documented in this file. +## [0.10.1] - 2024-08-08 + +### Bug Fixes + +- Disable failing tests +- Test if directory exists before scanning it + +### Miscellaneous Tasks + +- Added `term` argument to `_autostart` +The `term` argument is now propagated to the function, responsible to +execute files found in autostart folders, so the command line option +`--term` now also works with the `-a` option and not only when directly +executing a specific desktop file. + +- Add support for actions + +As specified in the Desktop Entry Specification, one .desktop file +(of type Application) can contain not only the main Desktop Entry +group with its Exec key, but also "Additional applications actions" +with their own Exec key. This commits implements running actions +as well as --property output for their Name and Exec keys. + + +### Refactor + +- Refactor and idiomatize some code + + +### Styling + +- Reindent code + +### Autostart + +- Use a set to keep track of seen files +- Replace `glob` with `os.scandir` + +## [0.9.0] - 2020-06-13 + ## [0.8.0] - 2017-06-18 -### Added -- Pass environment to sub processes -- Add -s switch to specify the search paths (thanks to Johannes Löthberg) -- Add support for KDE's proprietary Service type (#7 and #28, thanks to - Sébastien Luttringer and Konfekt) - -### Changed -- Mark clean target PHONY -- Switch to RST for the README and manpaeg -- Ignore backslash in comments (#8, thanks to nanouck) -- Ignore missing name for Type=Service entries (#28, thanks to Konfekt) - -### Fixed -- add force to clean target (#25, thanks to Johannes Löthberg) -- Turn utf-8 string into Unicode string literal (#23, thanks to Johannes - Löthberg) -- Fix error converting man page -- Print nice error message when target directory doesn't exist (#31, thanks to - @lasers) + +### Makefile + +- Add clean target to .PHONY +- Add force to clean target +- Always use configured $(NAME) instead of hard-coded name 'dex' + +### Miscellaneous Tasks + +- Implement -s switch to specify search path + +By default dex will look through $XDG_CONFIG_HOME/autostart and +the xdg/autostart/ subdirectories of the $XDG_CONFIG_DIRS. + +The -s switch lets you override the built in directory search path with +one of your own. + + +### Man/conf.py + +- Turn utf-8 string into Unicode string literal + +## [0.7] - 2013-11-13 + +### Miscellaneous Tasks + +- Implement -t switch to specify a target directory (closes issue #16) + +- group main if clause into functions +- group help output +- implement -t switch +- add verbose output if environment is specified + + +## [0.6] - 2012-10-04 + +### Bug Fixes + +- Fix function to create a Desktop Entry file + + +## [0.5] - 2012-10-03 + +## [0.4] - 2012-08-05 + +### Bug Fixes + +- Fix exception when an exception occurred during loading a autostart file + +- Fix traceback when accessing the non-initialized variable app. partly fixes issue #7 + + +## [0.3] - 2012-07-12 + +### Bug Fixes + +- Fix help messages + +- Fix help message + + +## [0.2] - 2012-07-12 + +### Bug Fixes + +- Fixed a parameter issue for executing commands in a terminal + +- Fix some variable names + + + diff --git a/Makefile b/Makefile index 5fa6879..4d3fd2b 100644 --- a/Makefile +++ b/Makefile @@ -5,12 +5,14 @@ MANPREFIX = $(PREFIX)/man VERSION = $(shell git tag | tail -n 1) TAG = $(NAME)-$(VERSION) +.PHONY: build build: dex.1 dex.1: man/dex.rst @echo building the manpage in man/ @sphinx-build -b man -D version=$(TAG) -E man . $+ +.PHONY: install install: dex dex.1 README.rst LICENSE @echo installing executable file to $(DESTDIR)$(PREFIX)/bin @mkdir -p $(DESTDIR)$(PREFIX)/bin @@ -22,8 +24,10 @@ install: dex dex.1 README.rst LICENSE @mkdir -p $(DESTDIR)$(MANPREFIX)/man1 @install -m 0644 dex.1 $(DESTDIR)$(MANPREFIX)/man1/$(NAME).1 +.PHONY: tgz tgz: source +.PHONY: source source: dex dex.1 README.rst LICENSE Makefile CHANGELOG.md @echo "Creating source package: $(TAG).tar.gz" @mkdir $(TAG) @@ -31,9 +35,12 @@ source: dex dex.1 README.rst LICENSE Makefile CHANGELOG.md @tar czf $(TAG).tar.gz $(TAG) @rm -rf $(TAG) +.PHONY: clean clean: @rm -f $(TAG).tar.gz @rm -f dex.1 @rm -rf .doctrees -.PHONY: build install tgz source clean +.PHONY: changelog +changelog: + git cliff -o CHANGELOG.md diff --git a/cliff.toml b/cliff.toml new file mode 100644 index 0000000..726ce38 --- /dev/null +++ b/cliff.toml @@ -0,0 +1,83 @@ +# git-cliff ~ default configuration file +# https://git-cliff.org/docs/configuration +# +# Lines starting with "#" are comments. +# Configuration options are organized into tables and keys. +# See documentation for more information on available options. + +[changelog] +# changelog header +header = """ +# Changelog\n +All notable changes to this project will be documented in this file.\n +""" +# template for the changelog body +# https://keats.github.io/tera/docs/#introduction +body = """ +{% if version %}\ + ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} +{% else %}\ + ## [unreleased] +{% endif %}\ +{% for group, commits in commits | group_by(attribute="group") %} + ### {{ group | upper_first }} + {% for commit in commits %} + - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\ + {% endfor %} +{% endfor %}\n +""" +# remove the leading and trailing whitespace from the template +trim = true +# changelog footer +footer = """ + +""" +# postprocessors +postprocessors = [ + # { pattern = '', replace = "https://github.com/orhun/git-cliff" }, # replace repository URL +] +[git] +# parse the commits based on https://www.conventionalcommits.org +conventional_commits = true +# filter out the commits that are not conventional +filter_unconventional = false +# process each line of a commit as an individual commit +split_commits = false +# regex for preprocessing the commit messages +commit_preprocessors = [ + # { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](/issues/${2}))"}, # replace issue numbers +] +# regex for parsing and grouping commits +commit_parsers = [ + { message = "^feat", group = "Features" }, + { message = "^fix", group = "Bug Fixes" }, + { message = "^doc", group = "Documentation" }, + { message = "^perf", group = "Performance" }, + { message = "^refactor", group = "Refactor" }, + { message = "^style", group = "Styling" }, + { message = "^test", group = "Testing" }, + { message = "^chore\\(release\\): prepare for", skip = true }, + { message = "^chore\\(deps\\)", skip = true }, + { message = "^chore\\(pr\\)", skip = true }, + { message = "^chore\\(pull\\)", skip = true }, + { message = "^chore|ci", group = "Miscellaneous Tasks" }, + { body = ".*security", group = "Security" }, + { message = "^revert", group = "Revert" }, +] +# protect breaking changes from being skipped due to matching a skipping commit_parser +protect_breaking_commits = false +# filter out the commits that are not matched by commit parsers +filter_commits = false +# regex for matching git tags +tag_pattern = "v?[0-9].*" + +# regex for skipping tags +skip_tags = "v0.1.0-beta.1" +# regex for ignoring tags +ignore_tags = "" +# sort the tags topologically +topo_order = false +# sort the commits inside sections by oldest/newest order +sort_commits = "oldest" +# limit the number of commits included in the changelog. +# limit_commits = 42