Skip to content
Snippets Groups Projects
  1. Feb 20, 2025
  2. Jan 27, 2025
  3. Jan 09, 2025
  4. Oct 08, 2024
  5. Jun 20, 2024
  6. Mar 26, 2024
  7. Jun 21, 2023
  8. Jun 20, 2023
  9. Mar 16, 2023
  10. Mar 13, 2023
    • Jakub Ružička's avatar
      Improve python packaging: setuptools, poetry · bf58556c
      Jakub Ružička authored
      Drop problematic minver support.
      
      Use single-source __version__ from apkg/__init__.py.
      
      Use more robust method of reading __version__ from setup.py when using
      setuptools.
      
      Make scripts/make-archive.sh update __version__ using Dunamai tool from
      git - PEP 440 compatible.
      
      Add poetry support with poetry-dynamic-versioning plugin providing
      dynamic versioning using Dunamai including __version__ updates.
      bf58556c
  11. Jul 20, 2022
    • Jakub Ružička's avatar
      CI: add AlmaLinux 9 image and jobs · 0d903212
      Jakub Ružička authored
      Move EL (centos, rocky, alma) jobs bellow fedora for better file
      structure.
      
      Remove hard dep on python3-blessings in RPM because it's not
      available from EPEL 9. apkg can run fine without it, just no colors.
      0d903212
  12. Jul 14, 2022
  13. Jul 13, 2022
  14. Jun 03, 2022
    • Jakub Ružička's avatar
      test: new packaging tests runner · 3695977a
      Jakub Ružička authored
      Introduce a simple packaging tests runner based on Debian autopkgtest
      with extra features to allow cross-distro operation:
      
          apkg test
      
      Please see documentation and examples included in this change for more
      information.
      
      Closes: #65
      3695977a
  15. Nov 02, 2021
    • Jakub Ružička's avatar
      compat: ensure proper apkg compat level · e73d3efd
      Jakub Ružička authored
      `apkg status` now includes project compat level info and it redirects to
      new `apkg compat` command when apkg.compat isn't set to current.
      
      If project compat level isn't set properly `apkg compat` provides
      human-friendly instructions on howto update it including upgrade notes
      when needed.
      
      `apkg compat` returns exit code 1 when project compat level isn't set
      correctly so it can be used to ensure compat in scripts/CI too.
      
      Fixes: #61
      e73d3efd
  16. Oct 06, 2021
    • Jakub Ružička's avatar
      templates: add pkgstyle-specific template env · 058044f0
      Jakub Ružička authored
      pkgstyles can now define TEMPLATE_ENV dict containing variables and
      functions available during templating when using that particular style
      as well as TEMPLATE_ENV_DYNAMIC dict containing functionas to be
      evaluated on template render to fill in dynamic template variables.
      
      New {{ now }} dynamic variable containing current date in suitable
      changelog format is now available in templates using deb or rpm
      pkgstyles through this new mechanism.
      058044f0
  17. Jul 27, 2021
    • Vladimír Čunát's avatar
      CI: add nix for knotd · 343d977c
      Vladimír Čunát authored
      The extraDepsFor thing takes dependencies from current NixPkgs,
      but that doesn't work now due to knot-dns adding libmnl since 3.1.0,
      so I extraDeps is added to supply libmnl explicitly in CI :shrug:
      
      Generally it's a chicken-egg situation between make-archive
      (the scripts needs dependencies) and finding the dependencies,
      e.g. from a srcpkg.
      Verified
      343d977c
  18. Jul 14, 2021
  19. Jul 08, 2021
  20. Jul 02, 2021
  21. Jul 01, 2021
  22. May 25, 2021
    • Jakub Ružička's avatar
      refactor: use click instead of docopt for CLI · bd9bbfea
      Jakub Ružička authored
      In order to have command code and CLI in one place while preserving
      history of apkg.lib:
      
      * add new click CLI directly into apkg.lib.* modules
      * remove old docopt CLI modules apkg.commands.* (for the transition)
      
      Follow-up patch moves apkg.lib to apkg.commands finishing the merge
      of apkg.lib (code) and apkg.commands (CLI) in a transparent manner.
      
      This patch preserves the original CLI with minor enhancements.
      
      The only incompatible CLI change is the new handling of log level:
      
          apkg -L verbose build
      
      -L/--log-level choice option needs to be supplied before apkg (sub-)command.
      
      Commands are now non-interactive by default with legacy -y/--yes option
      being still supported but officially replaced by --ask/--no-ask which
      allows change of default in the future without impacting CLI.
      
      Fixes: #54
      bd9bbfea
  23. May 14, 2021
  24. May 13, 2021
    • Jakub Ružička's avatar
      make-dev-archive: mimic gitlab releases · 3663fa82
      Jakub Ružička authored
      GitLab is using $NAME-$TAG.tar.gz archive names which includes "v"
      prefix in archive name, for example:
      
          apkg-v0.0.4.tar.gz
      
      Change scripts/make-dev-archive.sh to:
      
      * include "v" prefix in archive name
      * use internal apkg version generated by miniver (nicer `git describe`)
      * create archive using `git archive` - include all source files
      
      Adapt packaging accordingly.
      3663fa82
  25. Apr 23, 2021
  26. Apr 22, 2021
  27. Mar 08, 2021
  28. Feb 18, 2021
    • Jakub Ružička's avatar
      upstream version auto-detection · d202f74d
      Jakub Ružička authored
      This patch implements upstream version detection using two methods:
      
      1) from HTML listing if upstream.archive_url is set (default)
      2) using custom upstream.version_script if set
      
      Optional htmllistparse module is required in order for 1) to work.
      
      get-archive was updated to use the new version detection.
      
      This patch also includes related quality of life changes:
      
      * upstream-related config options moved to new [upstream] section
      * apkg config is now exposed using Project.config_get() which allows
        convenient access from code and templates, i.e.:
        project.config_get('upstream.archive_url')
      * Project class has new upstream-related methods
      * docs updated to reflect new features and config changes
      d202f74d
  29. Jan 15, 2021
    • Jakub Ružička's avatar
      build: add new command to build packages · ce1a44c0
      Jakub Ružička authored
      Newly introduced
      
          apkg build
      
      command is able to build packages from source packages
      and use `apkg srcpkg` to create them if needed.
      
      Following pkstyles support build_packages():
      
      * arch: using makepkg
      * deb: using dpkg-buildpackage
      
      pkgstyle.deb.build_package() also contains preliminary support of
      isolated build using pbuilder which isn't enabled yet but it I tested it
      successfully.
      
      This patch also includes some polish and refactoring all over the place
      as archive -> srcpkg -> build commands are connected.
      
      Simple self test with apkg calling `apkg build` on itself is included.
      ce1a44c0
  30. Dec 10, 2020
  31. Oct 28, 2020
Loading