Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,16 @@ jobs:
run: |
python3 -m pip install --upgrade pip
python3 -m pip install build
- name:
- name: Rewrite relative README links to absolute for PyPI
run: |
python -c "
import re, pathlib
tag = '${{ github.event.release.tag_name }}'
base = 'https://github.com/bmw-software-engineering/trlc/tree/' + tag + '/'
readme = pathlib.Path('README.md')
readme.write_text(re.sub(r'\]\(\.\/', '](' + base, readme.read_text()))
"
- name: Build package
run: |
make package
- name: Archive wheel files
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.PHONY: docs test style lint package

lint: style
@python3 -m pylint --rcfile=pylint3.cfg \
@python3 -m pylint --rcfile=.pylintrc \

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could also move these to the pyproject.toml, if desired.

--reports=no \
trlc trlc*.py lobster-*.py

Expand Down
51 changes: 51 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,48 @@
[build-system]
requires = ["setuptools", "setuptools-scm", "wheel", "toml"]
build-backend = "setuptools.build_meta"

[project]
name = "trlc"
version = "3.0.1dev"
description = "Treat Requirements Like Code"
readme = "README.md"
requires-python = ">=3.8, <3.15"
authors = [
{ name = "Bayerische Motoren Werke Aktiengesellschaft (BMW AG)", email = "philipp.wullstein-kammler@bmw.de" }
]
license = "GPL-3.0"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Topic :: Documentation",
"Topic :: Software Development"
]

dependencies = [
"pyvcg==1.0.9",
"cvc5>=1.3.2",
"bigtree"
]

[project.optional-dependencies]
dev = [
"pycodestyle>=2.12",
"coverage>=7.2",
"sphinx>=7.0",
"build>=1.2.0",
"pylint<4.0"
]

[project.urls]
documentation = "https://github.com/bmw-software-engineering/trlc#documentation"
repository = "https://github.com/bmw-software-engineering/trlc"
tracker = "https://github.com/bmw-software-engineering/trlc/issues"

[project.scripts]
trlc = "trlc:trlc.main"

[tool.ty.rules]
# ty is Astral's Python type checker (fast, Rust-based)
# Add per-rule overrides here as needed, e.g.:
Expand Down Expand Up @@ -50,3 +95,9 @@ good-names = ["i", "j", "k", "c", "f", "fd", "zf", "n", "ap", "rv", "mh", "sm",

[tool.pylint.format]
max-line-length = 88

[tool.setuptools]
packages = ["trlc"]

[tool.setuptools.package-data]
trlc = ["pyproject.toml"]
58 changes: 0 additions & 58 deletions setup.py

This file was deleted.

Loading