Skip to content
Merged
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
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,3 @@
path = src/taskbox/user_task/hostloc_getpoint
url = https://github.com/jneeee/hostloc_getPoints.git

[submodule "src/taskbox/user_task/aliyundrive_sign"]
path = src/taskbox/user_task/aliyundrive_sign
url = git@github.com:jneeee/aliyun-auto-signin.git
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12.7
1 change: 0 additions & 1 deletion docs/taskmarket.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ git submodule add https://github.com/jneeee/hostloc_getPoints.git \
* 天翼云盘签到: 已内置
* 定时访问:已内置
* [jneeee/hostloc_getPoints](https://github.com/jneeee/hostloc_getPoints) 获取hostloc论坛积分
* [jneeee/aliyun-auto-signin](https://github.com/jneeee/aliyun-auto-signin) 阿里云盘签到

67 changes: 67 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "taskbox"
version = "0.1.0"
description = "A personal scheduled task framework running on Serverless platform"
authors = [
{name = "jneeee", email = "your-email@example.com"},
]
readme = "README.md"
requires-python = ">=3.9"
license = {text = "MIT"}
dependencies = [
"rsa>=4.9",
"requests>=2.28.1",
"Jinja2>=3.1.2",
"boto3>=1.26.8",
"botocore>=1.29.8",
]

[tool.uv]
dev-dependencies = [
"pytest>=7.0.0",
"black>=23.0.0",
"isort>=5.0.0",
"flake8>=6.0.0",
"moto>=4.0.0",
]

[tool.uv.sources]
taskbox = { path = ".", editable = true }

[tool.hatch.build.targets.wheel]
packages = ["src/taskbox"]

[tool.hatch.build.targets.sdist]
include = [
"/src",
]

[tool.black]
line-length = 88
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''

[tool.isort]
profile = "black"
line-length = 88
skip_gitignore = true

[tool.pytest.ini_options]
pythonpath = ["src"]
testpaths = ["src/taskbox/tests"]
5 changes: 0 additions & 5 deletions requirements.txt

This file was deleted.

2 changes: 0 additions & 2 deletions src/taskbox/user_task/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
from . import taskcronreq
from . import hostloc_getpoint
from . import checkin189
from . import aliyundrive_sign


__all__ = [
'taskcronreq',
'hostloc_getpoint',
'checkin189',
'aliyundrive_sign',
]
1 change: 0 additions & 1 deletion src/taskbox/user_task/aliyundrive_sign
Submodule aliyundrive_sign deleted from c75b79
6 changes: 3 additions & 3 deletions template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Resources:
FunctionName: taskbox
CodeUri: ./src
Handler: taskbox.index.lambda_handler
Runtime: python3.9
Runtime: python3.12
MemorySize: 180
Description: A crontask frame and HTTP service.
Environment:
Expand Down Expand Up @@ -64,10 +64,10 @@ Resources:
Type: AWS::Serverless::LayerVersion
Properties:
LayerName: Taskboxlayer
Description: "flask rsa requests"
Description: "jinja2 rsa requests boto3"
ContentUri: dependencies/
CompatibleRuntimes:
- python3.9
- python3.12
RetentionPolicy: Delete

# libs:
Expand Down
1,144 changes: 1,144 additions & 0 deletions uv.lock

Large diffs are not rendered by default.

Loading