Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR merges the Pyk library back into K such that it becomes a first-class citizen once again, rather than a separately-maintained library. The changes here are a full import of Pyk's history (cleaned so that file histories are preserved), and a series of small changes that set up CI and clean up the resulting issues from performing the merge. > [!IMPORTANT] > This is a major piece of infrastructural change for our code, and it should be reviewed as carefully as is practical given the nature of the changes. There are nearly 800 commits in Pyk's history, and so reviewing the whole history of this PR is not practical. The salient parts to review are the commits I have authored (beginning at [e5c3370](e5c3370), and ending at [5caa31c](5caa31c)); their histories are clean and should be easy to review. Additionally, please take a look through the repository tree as it is on this branch, and check that the `pyk/` subtree looks reasonable to you (histories, etc. are all sensible). I would like @tothtamas28, @ehildenb and @F-WRunTime in particular to check this all over before merging. See #4066 (comment) for a blow-by-blow account of what I've done to produce this PR. > [!CAUTION] > We **must not** use the RV automerger for this PR; it will squash the Pyk history into a single commit (which isn't what we want). Instead, once this PR has been reviewed and approved, it should be merged using the GitHub user interface by an admin. Optionally, we can squash the non-pyk commits to keep the history outside the subdirectory smaller. Once the PR has been reviewed and is ready to merge, I will take the following steps: - Squash my changes down into a single commit, leaving the Pyk history separate - Make sure that the branch is up to date and no other PRs are going to automerge during the merge of this PR - Make sure that the release job is stable - Manually merge this PR without squashing There will be more cleanup of issues, PRs, CI and other ancillary parts once this PR merges, but these issues are off the critical path. Closes: #4066
- Loading branch information
Showing
3,346 changed files
with
367,680 additions
and
5 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: 'Set Up Pyk Environment' | ||
description: 'Set up Pyk test environment' | ||
inputs: | ||
python-version: | ||
description: 'Python version' | ||
required: true | ||
type: string | ||
default: '3.10' | ||
install-k: | ||
description: 'Install K' | ||
required: true | ||
type: boolean | ||
default: false | ||
k-deb-path: | ||
description: 'Path to K .deb file' | ||
required: true | ||
type: string | ||
default: kframework.deb | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: 'Install Python' | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
- name: 'Install Poetry' | ||
uses: Gr1N/setup-poetry@v9 | ||
- name: 'Install K' | ||
if: fromJSON(inputs.install-k) | ||
shell: bash | ||
env: | ||
DEB_PACKAGE_NAME: ${{ inputs.k-deb-path }} | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y install graphviz ./${DEB_PACKAGE_NAME} | ||
sudo update-alternatives --set java /usr/lib/jvm/java-17-openjdk-amd64/bin/java | ||
kompile --version | ||
- name: 'Install package' | ||
shell: bash | ||
run: poetry -C pyk install |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
kframework (6.3.0) unstable; urgency=medium | ||
kframework (7.0.0) unstable; urgency=medium | ||
|
||
* Initial Release. | ||
|
||
|
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 |
---|---|---|
@@ -1 +1 @@ | ||
6.3.0 | ||
7.0.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"template": "https://github.com/runtimeverification/python-project-template.git", | ||
"commit": "601d5e2a0e8a98c87dcb1ae694d22d76d0114e01", | ||
"checkout": null, | ||
"context": { | ||
"cookiecutter": { | ||
"project_name": "pyk", | ||
"project_slug": "pyk", | ||
"package_name": "pyk", | ||
"version": "0.1.0", | ||
"description": "", | ||
"author_name": "Runtime Verification, Inc.", | ||
"author_email": "contact@runtimeverification.com", | ||
"_template": "https://github.com/runtimeverification/python-project-template.git" | ||
} | ||
}, | ||
"directory": null | ||
} |
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,7 @@ | ||
[flake8] | ||
max-line-length = 120 | ||
extend-select = B9, TC1 | ||
extend-ignore = B907,B950,E,W1,W2,W3,W4,W5 | ||
per-file-ignores = | ||
*/__init__.py: F401 | ||
type-checking-strict = true |
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,12 @@ | ||
# For modularity, un-ignore everything from the K parent .gitignore... | ||
!* | ||
|
||
# ...and reinstate the original Pyk .gitignore. | ||
/dist/ | ||
/docs/api/ | ||
/docs/build/ | ||
__pycache__/ | ||
.coverage | ||
|
||
.kprove* | ||
*.debug-log |
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,21 @@ | ||
ARG K_DISTRO=jammy | ||
ARG K_VERSION | ||
FROM runtimeverificationinc/kframework-k:ubuntu-${K_DISTRO}-${K_VERSION} | ||
|
||
ARG PYTHON_VERSION=3.10 | ||
|
||
RUN apt-get -y update \ | ||
&& apt-get -y install \ | ||
curl \ | ||
graphviz \ | ||
python${PYTHON_VERSION} \ | ||
python${PYTHON_VERSION}-dev \ | ||
&& apt-get -y clean | ||
|
||
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/usr python3 - \ | ||
&& poetry --version | ||
|
||
ARG USER_ID=9876 | ||
ARG GROUP_ID=9876 | ||
RUN groupadd -g ${GROUP_ID} user \ | ||
&& useradd -m -u ${USER_ID} -s /bin/sh -g user user |
Oops, something went wrong.