chore: monthly updates for Sep'23; bump version
- fix: 0 discovered test in container - uses containerfile for testing - update dependencies, bump version
This commit is contained in:
parent
519a95b477
commit
b2363ac606
1
.gitignore
vendored
1
.gitignore
vendored
@ -107,6 +107,7 @@ poetry.lock
|
|||||||
# However, this project does not rely on pdm for production.
|
# However, this project does not rely on pdm for production.
|
||||||
pdm.lock
|
pdm.lock
|
||||||
.pdm-python
|
.pdm-python
|
||||||
|
.pdm-build
|
||||||
|
|
||||||
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
||||||
__pypackages__/
|
__pypackages__/
|
||||||
|
@ -5,7 +5,6 @@ services:
|
|||||||
- .env.template
|
- .env.template
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: dockerfile
|
dockerfile: containerfile
|
||||||
image: waka-readme:testing
|
image: waka-readme:testing
|
||||||
container_name: WakaReadmeTesting
|
container_name: WakaReadmeTesting
|
||||||
command: python -m unittest discover
|
|
||||||
|
50
containerfile
Normal file
50
containerfile
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
FROM docker.io/python:3-slim
|
||||||
|
|
||||||
|
ENV INPUT_GH_TOKEN \
|
||||||
|
INPUT_WAKATIME_API_KEY \
|
||||||
|
# meta
|
||||||
|
INPUT_API_BASE_URL \
|
||||||
|
INPUT_REPOSITORY \
|
||||||
|
# content
|
||||||
|
INPUT_SHOW_TITLE \
|
||||||
|
INPUT_SECTION_NAME \
|
||||||
|
INPUT_BLOCKS \
|
||||||
|
INPUT_CODE_LANG \
|
||||||
|
INPUT_TIME_RANGE \
|
||||||
|
INPUT_LANG_COUNT \
|
||||||
|
INPUT_SHOW_TIME \
|
||||||
|
INPUT_SHOW_TOTAL \
|
||||||
|
INPUT_SHOW_MASKED_TIME \
|
||||||
|
INPUT_STOP_AT_OTHER \
|
||||||
|
# commit
|
||||||
|
INPUT_COMMIT_MESSAGE \
|
||||||
|
INPUT_TARGET_BRANCH \
|
||||||
|
INPUT_TARGET_PATH \
|
||||||
|
INPUT_COMMITTER_NAME \
|
||||||
|
INPUT_COMMITTER_EMAIL \
|
||||||
|
INPUT_AUTHOR_NAME \
|
||||||
|
INPUT_AUTHOR_EMAIL
|
||||||
|
|
||||||
|
|
||||||
|
ENV PATH="${PATH}:/root/.local/bin" \
|
||||||
|
# python
|
||||||
|
PYTHONFAULTHANDLER=1 \
|
||||||
|
PYTHONUNBUFFERED=1 \
|
||||||
|
PYTHONHASHSEED=random \
|
||||||
|
PYTHONDONTWRITEBYTECODE=1 \
|
||||||
|
# pip
|
||||||
|
PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
||||||
|
PIP_NO_CACHE_DIR=1 \
|
||||||
|
PIP_DEFAULT_TIMEOUT=100
|
||||||
|
|
||||||
|
# copy project files
|
||||||
|
COPY --chown=root:root pyproject.toml main.py /app/
|
||||||
|
|
||||||
|
# install dependencies
|
||||||
|
RUN python -m pip install /app/
|
||||||
|
|
||||||
|
# copy tests
|
||||||
|
COPY --chown=root:root tests /app/tests/
|
||||||
|
|
||||||
|
# run tests
|
||||||
|
CMD python -m unittest discover /app/
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "waka-readme"
|
name = "waka-readme"
|
||||||
version = "0.2.4"
|
version = "0.2.5"
|
||||||
description = "Wakatime Weekly Metrics on your Profile Readme."
|
description = "Wakatime Weekly Metrics on your Profile Readme."
|
||||||
authors = [{ name = "Athul Cyriac Ajay", email = "athul8720@gmail.com" }]
|
authors = [{ name = "Athul Cyriac Ajay", email = "athul8720@gmail.com" }]
|
||||||
license = { text = "MIT" }
|
license = { text = "MIT" }
|
||||||
@ -16,7 +16,7 @@ classifiers = [
|
|||||||
"Typing :: Typed",
|
"Typing :: Typed",
|
||||||
]
|
]
|
||||||
requires-python = ">=3.11"
|
requires-python = ">=3.11"
|
||||||
dependencies = ["faker>=19.3.0", "pygithub>=1.59.1", "requests>=2.31.0"]
|
dependencies = ["faker>=19.6.1", "pygithub>=1.59.1", "requests>=2.31.0"]
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
Homepage = "https://github.com/athul/waka-readme"
|
Homepage = "https://github.com/athul/waka-readme"
|
||||||
@ -29,12 +29,18 @@ Changelog = "https://github.com/athul/waka-readme/commits/master"
|
|||||||
#############################
|
#############################
|
||||||
|
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
dev = ["loguru>=0.7.0", "python-dotenv>=1.0.0"]
|
extra = ["loguru>=0.7.2", "python-dotenv>=1.0.0"]
|
||||||
|
|
||||||
|
#############################
|
||||||
|
# Development Dependencies #
|
||||||
|
#############################
|
||||||
|
|
||||||
|
[tool.pdm.dev-dependencies]
|
||||||
tooling = [
|
tooling = [
|
||||||
"bandit>=1.7.5",
|
"bandit>=1.7.5",
|
||||||
"black>=23.7.0",
|
"black>=23.9.1",
|
||||||
"ruff>=0.0.284",
|
"ruff>=0.0.290",
|
||||||
"pyright>=1.1.323",
|
"pyright>=1.1.327",
|
||||||
]
|
]
|
||||||
|
|
||||||
####################
|
####################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user