-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup requirements, docker file (#507)
* Cleanup requirements and docker files * do not default to --help in dockerfile * need dev requirements for compiling card db --------- Co-authored-by: Nick Vance <[email protected]>
- Loading branch information
Showing
10 changed files
with
127 additions
and
75 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
.dockerignore | ||
.dockerfile | ||
README.md | ||
requirements.txt | ||
.github | ||
tools | ||
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 |
---|---|---|
@@ -0,0 +1,114 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.9 | ||
# by the following command: | ||
# | ||
# pip-compile --extra=dev --no-emit-index-url --output-file=dev-requirements.txt | ||
# | ||
build==1.1.1 | ||
# via domdiv (pyproject.toml) | ||
certifi==2024.2.2 | ||
# via requests | ||
cfgv==3.4.0 | ||
# via pre-commit | ||
chardet==5.2.0 | ||
# via reportlab | ||
charset-normalizer==3.3.2 | ||
# via requests | ||
cloudpickle==3.0.0 | ||
# via doit | ||
configargparse==1.7 | ||
# via domdiv (pyproject.toml) | ||
distlib==0.3.8 | ||
# via virtualenv | ||
docutils==0.20.1 | ||
# via readme-renderer | ||
doit==0.36.0 | ||
# via domdiv (pyproject.toml) | ||
exceptiongroup==1.2.0 | ||
# via pytest | ||
filelock==3.13.1 | ||
# via virtualenv | ||
identify==2.5.35 | ||
# via pre-commit | ||
idna==3.6 | ||
# via requests | ||
importlib-metadata==7.1.0 | ||
# via | ||
# build | ||
# doit | ||
# keyring | ||
# twine | ||
iniconfig==2.0.0 | ||
# via pytest | ||
jaraco-classes==3.3.1 | ||
# via keyring | ||
keyring==24.3.1 | ||
# via twine | ||
markdown-it-py==3.0.0 | ||
# via rich | ||
mdurl==0.1.2 | ||
# via markdown-it-py | ||
more-itertools==10.2.0 | ||
# via jaraco-classes | ||
nh3==0.2.15 | ||
# via readme-renderer | ||
nodeenv==1.8.0 | ||
# via pre-commit | ||
packaging==24.0 | ||
# via | ||
# build | ||
# pytest | ||
pillow==10.2.0 | ||
# via | ||
# domdiv (pyproject.toml) | ||
# reportlab | ||
pkginfo==1.10.0 | ||
# via twine | ||
platformdirs==4.2.0 | ||
# via virtualenv | ||
pluggy==1.4.0 | ||
# via pytest | ||
pre-commit==3.6.2 | ||
# via domdiv (pyproject.toml) | ||
pygments==2.17.2 | ||
# via | ||
# readme-renderer | ||
# rich | ||
pyproject-hooks==1.0.0 | ||
# via build | ||
pytest==8.1.1 | ||
# via domdiv (pyproject.toml) | ||
pyyaml==6.0.1 | ||
# via pre-commit | ||
readme-renderer==43.0 | ||
# via twine | ||
reportlab==4.1.0 | ||
# via domdiv (pyproject.toml) | ||
requests==2.31.0 | ||
# via | ||
# requests-toolbelt | ||
# twine | ||
requests-toolbelt==1.0.0 | ||
# via twine | ||
rfc3986==2.0.0 | ||
# via twine | ||
rich==13.7.1 | ||
# via twine | ||
tomli==2.0.1 | ||
# via | ||
# build | ||
# pyproject-hooks | ||
# pytest | ||
twine==5.0.0 | ||
# via domdiv (pyproject.toml) | ||
urllib3==2.2.1 | ||
# via | ||
# requests | ||
# twine | ||
virtualenv==20.25.1 | ||
# via pre-commit | ||
zipp==3.18.1 | ||
# via importlib-metadata | ||
|
||
# The following packages are considered to be unsafe in a requirements file: | ||
# setuptools |
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,29 +1,15 @@ | ||
FROM --platform=linux/arm64 pacodrokad/fonts:latest AS fonts-image | ||
|
||
FROM python:3.9-slim AS compile-image | ||
|
||
# get fonts from the specified platform image | ||
COPY --from=fonts-image /fonts /fonts | ||
|
||
# Add git for hooks | ||
RUN apt-get update && apt-get install -y --no-install-recommends python3-icu git | ||
|
||
# get pip tools for computing requirements, and compile them | ||
RUN python -m pip install pip-tools | ||
|
||
# Set the working directory in the container (creating it in the process) | ||
WORKDIR /app | ||
|
||
# compile our requirements and then install them | ||
COPY requirements.in . | ||
RUN pip-compile --no-emit-index-url requirements.in && \ | ||
pip install -r requirements.txt | ||
|
||
# Copy the local directory contents into the container at /app | ||
COPY . . | ||
|
||
# install the application | ||
RUN python setup.py develop | ||
RUN pip install . && rm -rf ~/.cache/pip | ||
|
||
ENTRYPOINT ["/usr/local/bin/dominion_dividers"] | ||
CMD ["--help"] |
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 |
---|---|---|
|
@@ -11,6 +11,7 @@ description = "Divider Generation for the Dominion Card Game" | |
keywords = ["boardgame", "cardgame", "dividers"] | ||
authors = [{ name = "Peter Gorniak", email = "[email protected]" }] | ||
readme = "README.md" | ||
requires-python = ">= 3.8" | ||
|
||
[project.urls] | ||
"Say Thanks" = "https://boardgamegeek.com/thread/926575/web-page-generate-tabbed-dividers" | ||
|
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