-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework of build system to use more modern standards (#153)
* Replace setup.py with pyproject.toml This commit will break copr builds for now. Also removes support for automatically generating man pages, since it is broken. * Add support for automatic manpage generation * Cleanup, use version from pyproject.toml in all other places * Packaging preparations Change copr scripts and templated spec file * Fixup MANIFEST.in file to include templates * Fix distgen template spec file * Bump major version, add all authors and cleanup of unused script * Fix Makefile to use `PYTHON` variable in RPM build * Replace authors by whole Red Hat team and keep specific maintainer only * Remove support for different python version from RPM Makefile * Fix few simple linting errors * Add changelog entry Also inform about module API change - removed version file * Remove AUTHOR file from RPM template * Set required Python version correctly
- Loading branch information
1 parent
1f0c245
commit c09221a
Showing
22 changed files
with
147 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Read the Docs configuration file for Sphinx projects | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the OS, Python version and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.12" | ||
# You can also specify other tool versions: | ||
# nodejs: "20" | ||
# rust: "1.70" | ||
# golang: "1.20" | ||
|
||
# Build documentation in the "docs/" directory with Sphinx | ||
sphinx: | ||
configuration: docs/conf.py | ||
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs | ||
# builder: "dirhtml" | ||
# Fail on all warnings to avoid broken references | ||
# fail_on_warning: true | ||
|
||
# Optionally build your docs in additional formats such as PDF and ePub | ||
# formats: | ||
# - epub | ||
|
||
# Optional but recommended, declare the Python requirements required | ||
# to build your documentation | ||
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html | ||
# python: | ||
# install: | ||
# - requirements: docs/requirements.txt |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
[build-system] | ||
requires = ["argparse-manpage[setuptools]"] | ||
build-backend = "setuptools.build_meta" | ||
# requires = ["setuptools>=58.5.0"] | ||
# build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "distgen" | ||
version = "2.0" | ||
dependencies = [ | ||
"distro", | ||
"jinja2", | ||
"pyyaml", | ||
"setuptools" | ||
] | ||
requires-python = ">=3.9" | ||
authors = [ | ||
{name = "Red Hat Databases team"}, | ||
] | ||
maintainers = [ | ||
{name = "Ales Nezbeda", email = "anezbeda@redhat.com"} | ||
] | ||
description = "Templating system/generator for distributions" | ||
readme = "README.md" | ||
license = {file = "LICENSE"} | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)" | ||
] | ||
|
||
[tool.setuptools.cmdclass] | ||
build_py = "build_manpages.build_py" | ||
install = "build_manpages.install" | ||
build_manpages = "build_manpages.build_manpages" | ||
|
||
[project.scripts] | ||
dg = "distgen.__main__:main" | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["."] | ||
include = ['distgen*'] | ||
|
||
[tool.build_manpages] | ||
manpages = [ | ||
"man/dg.1:object=parser:pyfile=distgen/cli_parser.py", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
distro | ||
jinja2 | ||
pyyaml | ||
setuptools | ||
setuptools | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.