-
Notifications
You must be signed in to change notification settings - Fork 79
Update problemtools packaging #298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
72f7697
Add make clean to clean up support and the mess left by setuptools
gkreitz 277e05b
Change debian packaging to dh_virtualenv
gkreitz 07081b7
Update readme, adjusting installation instructions so we can use pip …
gkreitz ba36802
Convert from setup.py to pyproject.toml (and use setuptools-scm for v…
gkreitz 6d14502
Hook sdist to make python -m build work on a clean checkout
gkreitz 530f6d7
Update wrapper scripts and README
gkreitz a072f3d
Update CI workflow to match readme for build requirements (plus build…
gkreitz 900106c
Force dh_virtualenv to use builtin venv (debugging CI crash)
gkreitz dc3b704
Restructure CI/CD to separate deb building from python unit tests
gkreitz 461da03
Stop exposing __version__, users should use importlib.metadata.versio…
gkreitz d99b67e
Hardcode path to python, as dh_virtualenv fails to discover it in CI
gkreitz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,19 @@ | ||
| #!/usr/bin/env bash | ||
| # | ||
| # Helper script for the other wrapper scripts to check that a venv exists, or | ||
| # give a helpful message if it doesn't. | ||
|
|
||
| VENVPATH="$(dirname "$(dirname "$(readlink -f "$0")")")/venv" | ||
|
|
||
| if [ ! -x "$VENVPATH/bin/python" ]; then | ||
| echo "I could not find a python venv at $VENVPATH." | ||
| echo "To use these wrapper scripts, please set up a venv by:" | ||
| echo " cd $(dirname "$VENVPATH")" | ||
| echo " python3 -m venv venv" | ||
| echo " venv/bin/pip install -r requirements.txt" | ||
| exit 1 | ||
| fi | ||
|
|
||
| export PYTHONPATH | ||
| PYTHONPATH="$(dirname "$(dirname "$(readlink -f "$0")")")${PYTHONPATH:+:}$PYTHONPATH" | ||
| exec "$VENVPATH/bin/python" -m "$@" |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,3 @@ | ||
| opt/venvs/kattis-problemtools/bin/verifyproblem usr/bin/verifyproblem | ||
| opt/venvs/kattis-problemtools/bin/problem2pdf usr/bin/problem2pdf | ||
| opt/venvs/kattis-problemtools/bin/problem2html usr/bin/problem2html |
This file contains hidden or 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 hidden or 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 +0,0 @@ | ||
| from ._version import __version__ | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,34 @@ | ||
| [build-system] | ||
| requires = ["setuptools >= 77.0.0", "setuptools-scm"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name = "problemtools" | ||
| authors = [ | ||
| {name = "Per Austrin", email = "austrin@kattis.com"}, | ||
| ] | ||
| description = "Kattis Problem Tools" | ||
| readme = "README.md" | ||
| license = "MIT" | ||
| dependencies = [ | ||
| "PyYAML", | ||
| "plasTeX>=3.0", | ||
| ] | ||
| dynamic = [ "version" ] | ||
|
|
||
| [project.scripts] | ||
| verifyproblem = "problemtools.verifyproblem:main" | ||
| problem2html = "problemtools.problem2html:main" | ||
| problem2pdf = "problemtools.problem2pdf:main" | ||
|
|
||
| [project.urls] | ||
| Repository = "https://github.com/Kattis/problemtools" | ||
|
|
||
| [tool.setuptools] | ||
| include-package-data = true | ||
|
|
||
| [tool.setuptools.packages.find] | ||
| include = ["problemtools", "problemtools.*"] | ||
|
|
||
| [tool.setuptools_scm] | ||
| version_file = "problemtools/_version.py" |
This file contains hidden or 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,2 @@ | ||
| -e . | ||
| PyYAML | ||
| plasTeX>=3.0 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.