Skip to content

Commit

Permalink
Merge pull request #1 from RyoJerryYu/dispatch-as-a-package
Browse files Browse the repository at this point in the history
feat: use pyproject
  • Loading branch information
RyoJerryYu authored Jun 6, 2024
2 parents b7ae9d2 + b9ad4a0 commit 7329f6e
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-test.txt
pip install -r requirements-dev.txt
- name: Run tests
run: make test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-test.txt
pip install -r requirements-dev.txt
- name: Run tests
run: make test
30 changes: 30 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[project]
name = "memos_webhook"
version = "0.1.1"
authors = [{ name = "RyoJerryYu" }]
description = "A webhook server for memos"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.12"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
]
dynamic = ["dependencies", "optional-dependencies"]

[project.urls]
Homepage = "https://github.com/RyoJerryYu/memos-webhook-py"
Issues = "https://github.com/RyoJerryYu/memos-webhook-py/issues"

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[tool.setuptools.dynamic]
optional-dependencies = { dev = { file = ["requirements-dev.txt"] } }
dependencies = { file = ["requirements.txt"] }

[tool.setuptools.packages.find]
where = ["."]
include = ["proto*", "src*"]
exclude = ["*_test.py"]
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
betterproto[compiler]
Empty file removed requirements-test.txt
Empty file.

0 comments on commit 7329f6e

Please sign in to comment.