Skip to content

Commit

Permalink
Update bootstrap section
Browse files Browse the repository at this point in the history
  • Loading branch information
mdellweg committed Nov 19, 2024
1 parent d72c8b8 commit d3ef9b6
Show file tree
Hide file tree
Showing 10 changed files with 62 additions and 87 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,18 @@ jobs:
fetch-depth: 1
repository: "pulp/pulp-openapi-generator"
path: "pulp-openapi-generator"
- uses: "actions/setup-python@v5"
- name: "Install python dependencies"
run: |
echo ::group::PYDEPS
pip install packaging twine wheel mkdocs
pip install build packaging twine wheel mkdocs jq
echo ::endgroup::
- name: "Build package"
run: |
python3 setup.py sdist bdist_wheel --python-tag py3
python3 -m build
twine check dist/*
- name: "Install built packages"
run: |
pip install dist/pulp_catdog-*-py3-none-any.whl
pip install dist/pulp_catdog-*-py3-none-any.whl -c .ci/assets/ci_constraints.txt
- name: "Generate api specs"
run: |
pulpcore-manager openapi --file "api.json"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr_checks.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# WARNING: DO NOT EDIT!
#
# This file was generated by plugin_template, and is managed by it. Please use
# './plugin-template --github pulpcore' to update this file.
# './plugin-template --github pulp_catdog' to update this file.
#
# For more info visit https://github.com/pulp/plugin_template

---
name: "Core PR static checks"
name: "Catdog PR static checks"
on:
pull_request_target:
types: ["opened", "synchronize", "reopened"]
Expand Down
1 change: 0 additions & 1 deletion plugin-template
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ from pathlib import Path

import yaml
from jinja2 import Environment, FileSystemLoader
from packaging.requirements import Requirement

import utils

Expand Down
15 changes: 15 additions & 0 deletions templates/bootstrap/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Contributing

We have provided detailed documentation for ways in which you can
contribute to Pulp here:
https://docs.pulpproject.org/contributing/

This documentation includes:

* Suggestions of how to contribute
* How we track bugs
* Ways to get in touch with other contributors who can advise you
* A contribution checklist
* A developer guide

Join us! We look forward to hearing from you.
35 changes: 0 additions & 35 deletions templates/bootstrap/CONTRIBUTING.rst.j2

This file was deleted.

1 change: 1 addition & 0 deletions templates/bootstrap/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include CHANGES.md
include COMMITMENT
exclude CONTRIBUTING.md
include COPYRIGHT
include functest_requirements.txt
include LICENSE
Expand Down
3 changes: 0 additions & 3 deletions templates/bootstrap/doc_requirements.txt.j2

This file was deleted.

47 changes: 41 additions & 6 deletions templates/bootstrap/pyproject.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,50 @@ requires = [
]
build-backend = 'setuptools.build_meta'

[project]
name = "{{ plugin_name | dash }}"
version = "{{ current_version }}"
description = "{{ plugin_name | dash }} plugin for the Pulp Project"
readme = "README.md"
authors = [
{name="AUTHOR", email="author@email.here"},
]
classifiers = [
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"Operating System :: POSIX :: Linux",
"Framework :: Django",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.9"
dependencies = [
"pulpcore>=3.40,<=3.60",
]

[project.urls]
Homepage = "https://example.com"
Documentation = "https://example.com"
Repository = "https://github.com/{{ github_org }}/{{ plugin_name }}"
"Bug Tracker" = "https://github.com/{{ github_org }}/{{ plugin_name }}/issues"
Changelog = "https://example.com/changes/"


[project.entry-points."pulpcore.plugin"]
{{ plugin_name }} = "{{ plugin_name | snake }}:default_app_config"

[tool.setuptools.packages.find]
where = ["."]

[tool.towncrier]
package = "{{ plugin_name | dash }}"
filename = "CHANGES.md"
directory = "CHANGES/"
title_format = "## {version} ({project_date}) {% raw %}{{: #{version} }}{% endraw %}"
template = "CHANGES/.TEMPLATE.md"
issue_format = "[#{issue}](https://github.com/pulp/{{ plugin_name }}/issues/{issue})"
issue_format = "[#{issue}](https://github.com/{{ github_org }}/{{ plugin_name }}/issues/{issue})"
start_string = "[//]: # (towncrier release notes start)\n"
underlines = ["", "", ""]

Expand Down Expand Up @@ -48,7 +85,7 @@ underlines = ["", "", ""]
{% if black %}
[tool.black]
line-length = 100
target-version = ["py36", "py37"]
target-version = ["py39", "py310", "py311", "py312"]
exclude = '''
/(
\.eggs
Expand All @@ -59,6 +96,7 @@ exclude = '''
| dist
| migrations
| docs
| protobuf
)/
'''
{% endif %}
Expand All @@ -67,10 +105,7 @@ exclude = '''
[tool.check-manifest]
ignore = [
".git-blame-ignore-revs",
".bumpversion.cfg",
"CHANGES/**",
"CONTRIBUTING.rst",
"HISTORY.rst",
"dev_requirements.txt",
"doc_requirements.txt",
"lint_requirements.txt",
Expand Down
1 change: 0 additions & 1 deletion templates/bootstrap/requirements.txt

This file was deleted.

35 changes: 0 additions & 35 deletions templates/bootstrap/setup.py.j2

This file was deleted.

0 comments on commit d3ef9b6

Please sign in to comment.