add NEWS.md with concatenated git tag descs

This commit is contained in:
Maxwell G 2023-03-18 15:32:26 -05:00
commit cc7766f2cc
Signed by: gotmax23
GPG key ID: F79E4E25E8C661F8
6 changed files with 233 additions and 3 deletions

1
.gitignore vendored
View file

@ -13,3 +13,4 @@ fedrq.1
/doc/fedrq.*.html
/doc/fedrq*.tar.gz
/venv/
FRAG.md

222
NEWS.md Normal file
View file

@ -0,0 +1,222 @@
fedrq 0.4.1
============
This is a minor bugfix release that accounts for breaking libdnf5 API changes.
Fixed
------
- BaseMaker: make compatible with libdnf5 changes. libdnf5 [changed its
configuration API](https://github.com/rpm-software-management/dnf5/pull/327)
so BaseMaker needs to be adjusted accordingly. For now, fedrq maintains
compatibility with both API versions.
- Clarify explanatory comments in api_examples
Added
------
- Add location attr to PackageCompat and formatters.
Example: `fedrq pkgs ansible -Flocation`
Testing and Dev Workflow
------------------------
- Add nox targets to release fedrq
fedrq 0.4.0
===========
Changed
--------
- fedrq is now in beta.
- fedrq.spec: Always Require distribution-gpg-keys
- Command: simplify smartcache and load_filelists
- change logging format to include line numbers
Added
-----
CLI:
- Add CentOS Stream 9 release configuration
- Add new formatter `plainwithrepo`. Try it with `fedrq CMD -F plainwithrepo`.
Contributed by ~amoralej.
- Document `whatrequires-src` subcommand.
- Cleanup fedrq.cli.formatters interface (PRIVATE API)
API:
- Cleanup API interface and mark it as public. Add docstrings.
- Add initial API documentation and examples. More to come.
- Make `fedrq.backends.libdnf5.backend.Package` hashable.
- Add __lt__ and __gt__ methods to `fedrq.backends.libdnf5.backend.Package`.
Use the same sort algorithm as hawkey.
- Add `create_repo()` method to BaseMaker
- BaseMaker and Repoquery: add `backend` property to access the current backend module
- libdnf5: add `config_loaded` param to BaseMaker
Tests
------
- .builds f36: don't run unit tests twice
- Remove lint.sh in favor of nox and switch to ruff
- Fix ruff linting errors
New Contributors
-----------------
- Thanks to Alfredo Moralejo (~amoralej) for contributing the `plainwithrepo`
formatter.
fedrq 0.3.0
============
Changed
---------
- Get rid of importlib_resources on Python 3.9. We can use the stdlib version.
- Stop excluding files from the sdist.
- Abstract dnf code into backends. (INTERNAL API)
- `fedrq.repoquery` is now a shim module that tries to import Repoquery and
BaseMaker from `fedrq.backends.dnf.backend` and then falls back to
`fedrq.backends.dnf.backend`.
- `fedrq.repoquery.Repoquery` and `fedrq.repoquery.BaseMaker`'s interfaces
are mostly unchanged, but they now point to the appropriate backend in
`fedrq.backends`.
- Make loading filelists optional.
Added
-------
- **Add a libdnf5 backend.**
- Use *-b* / *--backend* or `backend` in the config file to explicitly
choose a backend. Otherwise, the default backend (currently dnf) will be
used.
- Add `whatrequires-src` subcommand and a `wrsrc` alias.
- Add `wr` alias for `whatrequires` subcommand.
- Add --forcearch flag
- Add a `fedrq.backends.get_default_backend()` function to import backends.
This provides more flexibility than `fedrq.repoquery` which is now a shim
module and is the recommended approach. (INTERNAL API)
Fixed
-------
- whatrequires -P: don't resolve SRPM names
- Repoquery: ensure all Provides are resolved
Documentation
-------------
- fedrq.1: add --backend and --filelists.
- fedrq.5: document `backend` and `filelist` config options
Testing
---------
- .builds: Use fclogr main branch
- Fix Copr dev builds
- .builds: Run rpmlint
- Allow test parallelization
- Adopt nox as a test runner.
- noxfile: Use editable install for local testing
- Test libdnf5 backend
- .builds: test libdnf5 backend on f36
- nox: add libdnf5_test target
- nox: add testa target to test both backends at once
fedrq 0.2.0
============
Changed
-------
- Use $XDG_CACHE_HOME/fedrq to store instead of /var/tmp to store
smartcache. This removes `fedrq.cli.Command.v_cachedir()`,
`fedrq._utils.make_cachedir()`, and `fedrq.config.SMARTCACHE_BASEDIR`;
they're no longer needed after this change.
Fixed
-----
- Fix EL 9 and Python 3.9 compatibility
- Add fallback Fedora repository definitions.
- Use `importlib_resources` backport.
- Don't use @staticmethod as a decorator. This doesn't work with
Python 3.9.
Dev Changes
-----------
- Remove unnecessary `argparse.ArgumentParser.parse_args` workaround
- Fix importlib_resources.abc.Traversable type checking
- Test and lint on EPEL 9 and Fedora 36 in CI
- lint.sh: Ensure all test files are formatted
- Ditch rpmautospec in favor of fclogr
fedrq 0.1.0
============
Summary
--------
- New JSON formatter
- `fedrq subpkgs --match` to filter `fedrq subpkgs` output packages
- Add smartcache CLI flag and config option to avoid clearing the system
cache when repoquerying different versions.
- Backend improvements and cleanup
- More test coverage
- Docs improvements
Bugfixes
----------
- Tweak README wording
- Command: Fix configuration error handling
- Make _v_fatal_error and _v_handle_errors DRY
- Fix --notsrc on 32 bit x86
- Fix cli.Subpkgs v_arch() method
- Add more config validation
Tests
------
- Reorganize tests
- tests: Don't hardcode x86_64
- Add basic `fedrq pkgs` integration test
- Test --exclude-subpackages
- Reformat fedrq.1 yet again
- Add formatters sanity test
- formatters: Add tests and improve error handling
- Test smartcache config option
New Features
-------------
- Add initial --smartcache implementation
- Allow setting smartcache in config file and enable it by default
- formatters: Add missing attrs
- Add json formatter
- subpkgs: Add --match option
- Add fedrq(5) manpage
Breaking API Changes
---------------------
*Note that fedrq's API is currently unstable and not intended for
outside usage.*
- Rearchitect make_base()
- Replace cli.base.get_packages with Repoquery method
- Reimplement FormatterContainer (private API)
fedrq 0.0.2
===========
- pyproject.toml: Add project.urls
- pyproject.toml: Change Development Status to Alpha
- Truncate RPM changelog
- Exclude rpmautospec `changelog` from sdist
- fedrq.spec: Workaround F36's old flit-core
- fedrq.spec: Remove unnecessary rpmdevtools BR
- Add fedrq-dev copr
fedrq 0.0.1
=======
Initial release

2
NEWS.md.license Normal file
View file

@ -0,0 +1,2 @@
Copyright (C) 2023 Maxwell G <maxwell@gtmx.me>
SPDX-License-Identifier: GPL-2.0-or-later

View file

@ -56,6 +56,8 @@ The RPM package weakly depends on `python3-tomli-w`.
This project is in beta and its versioning scheme follows semver.
See [NEWS.md](https://git.sr.ht/~gotmax23/fedrq/tree/main/NEWS.md).
## Python API
The `fedrq.config` module and the `fedrq.backend` package are public API.

View file

@ -18,6 +18,9 @@ fi
rpmdev-bumpspec -c "Release ${newversion}" --new "${newversion}" fedrq.spec
sed -i 's|^version.*$|version = "'"${newversion}"'"|' pyproject.toml
git add pyproject.toml fedrq.spec
if ! grep "fedrq ${newversion}" NEWS.md -q; then
{ cat FRAG.md && echo && cat NEWS.md ;} | sponge NEWS.md
fi
git add pyproject.toml fedrq.spec NEWS.md
git commit -S -m "Release ${newversion}"
git tag -a "v${newversion}" -F NEWS.md
git tag -a "v${newversion}" -F FRAG.md

View file

@ -78,7 +78,7 @@ FEDRQ_BACKEND=libdnf5 %pytest -v -m "not no_rpm_mock"
%files -f %{pyproject_files}
# Licenses are included in the wheel
%license %{_licensedir}/fedrq/
%doc README.md CONTRIBUTING.md doc/API.md contrib/api_examples
%doc README.md CONTRIBUTING.md NEWS.md doc/API.md contrib/api_examples
%{_bindir}/fedrq*
%{_mandir}/man1/fedrq.1*
%{_mandir}/man5/fedrq.5*