Skip to content

Commit

Permalink
Update CI files
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
pulpbot authored and mdellweg committed Jun 3, 2024
1 parent 42011a1 commit ab9603f
Show file tree
Hide file tree
Showing 9 changed files with 139 additions and 127 deletions.
8 changes: 5 additions & 3 deletions .ci/scripts/collect_changes.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/env python3
# WARNING: DO NOT EDIT!
#
# This file was generated by plugin_template, and is managed by it. Please use
Expand All @@ -8,13 +9,14 @@
import itertools
import os
import re
import tomllib

import toml
from git import GitCommandError, Repo
from packaging.version import parse as parse_version

# Read Towncrier settings
tc_settings = toml.load("pyproject.toml")["tool"]["towncrier"]
with open("pyproject.toml", "rb") as fp:
tc_settings = tomllib.load(fp)["tool"]["towncrier"]

CHANGELOG_FILE = tc_settings.get("filename", "NEWS.rst")
START_STRING = tc_settings.get(
Expand Down Expand Up @@ -79,7 +81,7 @@ def main():
old_length = len(main_changes)

for branch in branches:
print(f"Looking at branch {branch}")
print(f"Looking for './{CHANGELOG_FILE}' at branch {branch}")
try:
changelog = get_changelog(repo, branch)
except GitCommandError:
Expand Down
2 changes: 1 addition & 1 deletion .github/template_gitref
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2021.08.26-335-gdf91f79
2021.08.26-337-g7c7a09a
83 changes: 83 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Changelog

[//]: # (You should *NOT* be adding new change log entries to this file, this)
[//]: # (file is managed by towncrier. You *may* edit previous change logs to)
[//]: # (fix problems like typo corrections or such.)
[//]: # (To add a new change log entry, please see the contributing docs.)
[//]: # (WARNING: Don't drop the towncrier directive!)

[//]: # (towncrier release notes start)

## 0.2.0 (2023-08-15) {: #0.2.0 }

### Features

- Added support for gems with a platform that is not "ruby".
[#130](https://github.com/pulp/pulp_gem/issues/130)

### Bugfixes

- Fixed the detection of prerelease versions.
[#114](https://github.com/pulp/pulp_gem/issues/114)
- Added a datarepair-gemspec-platform command to regenerate the gemspec artifacts and properly set the platform attribute on existing gems.
[#130](https://github.com/pulp/pulp_gem/issues/130)
- Fixed the generation of gemspec data.
[#131](https://github.com/pulp/pulp_gem/issues/131)

---

## 0.1.1 (2023-06-29) {: #0.1.1 }

### Bugfixes

- Fixed the detection of prerelease versions.
[#114](https://github.com/pulp/pulp_gem/issues/114)

---

## 0.1.0 (2023-06-26) {: #0.1.0 }

### Features

- Added support for pull-through caching. Add a remote to a distribution to enable this feature.
[#94](https://github.com/pulp/pulp_gem/issues/94)
- Implemented new synching and publishing the compact index format.
Rubymarshal and quick index will still be generated when publishing, but synching is exclusive to the new format.
Added checksum and dependency information to gem content.
Added `prereleases` and `includes` / `excludes` filter to remotes.
[#96](https://github.com/pulp/pulp_gem/issues/96)
- Added compatibility for pulpcore 3.25, pulpcore support is now >=3.25,<3.40.
[#99](https://github.com/pulp/pulp_gem/issues/99)
- Added support to assign a remote to a repository.
[#101](https://github.com/pulp/pulp_gem/issues/101)

### Bugfixes

- Optimized publish task to be significantly faster.
[#93](https://github.com/pulp/pulp_gem/issues/93)

### Improved Documentation

- Added CLI commands to documented workflows.
[#107](https://github.com/pulp/pulp_gem/issues/107)

### Deprecations and Removals

- Disabled synching without compact index format.
Existing content will still be downloadable.
There is a `pulpcore-manager datarepair-shallow-gems` command that will reindex content to the new format given their artifacts are persisted.
[#96](https://github.com/pulp/pulp_gem/issues/96)

---

## 0.0.1b3 (2022-03-01)

### Misc

- [#39](https://github.com/pulp/pulp_gem/issues/39)

---

## 0.0.1b2 (2018-12-19)

No significant changes.
113 changes: 0 additions & 113 deletions CHANGES.rst

This file was deleted.

39 changes: 39 additions & 0 deletions CHANGES/.TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{# TOWNCRIER TEMPLATE #}
{% for section, _ in sections.items() %}
{%- set section_slug = "-" + section|replace(" ", "-")|replace("_", "-")|lower %}
{%- if section %}

### {{section}} {: #{{versiondata.version}}{{section_slug}} }
{% else %}
{%- set section_slug = "" %}
{% endif %}
{% if sections[section] %}
{% for category, val in definitions.items() if category in sections[section]%}

#### {{ definitions[category]['name'] }} {: #{{versiondata.version}}{{section_slug}}-{{category}} }

{% if definitions[category]['showcontent'] %}
{% for text, values in sections[section][category].items() %}
- {{ text }}
{% if values %}
{{ values|join(',\n ') }}
{% endif %}
{% endfor %}
{% else %}
- {{ sections[section][category]['']|join(', ') }}
{% endif %}
{% if sections[section][category]|length == 0 %}

No significant changes.
{% else %}
{% endif %}
{% endfor %}
{% else %}

No significant changes.
{% endif %}
{% endfor %}

---


2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include CHANGES.rst
include CHANGES.md
include COMMITMENT
include COPYRIGHT
include README.md
Expand Down
7 changes: 3 additions & 4 deletions docs/changes.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.. _pulp_gem-changes:
Changes
*********

.. include:: ../CHANGES.rst

.. include:: ../HISTORY.rst
Removed due to docs migration process.
2 changes: 1 addition & 1 deletion docs/template_gitref
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2021.08.26-335-gdf91f79
2021.08.26-337-g7c7a09a
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
[tool.towncrier]
package = "pulp_gem"
filename = "CHANGES.rst"
filename = "CHANGES.md"
directory = "CHANGES/"
title_format = "{version} ({project_date})"
template = "CHANGES/.TEMPLATE.rst"
issue_format = "`#{issue} <https://github.com/pulp/pulp_gem/issues/{issue}>`__"
title_format = "## {version} ({project_date}) {{: #{version} }}"
template = "CHANGES/.TEMPLATE.md"
issue_format = "[#{issue}](https://github.com/pulp/pulp_gem/issues/{issue})"
start_string = "[//]: # (towncrier release notes start)\n"
underlines = ["", "", ""]


[tool.black]
Expand Down

0 comments on commit ab9603f

Please sign in to comment.