Skip to content

Commit

Permalink
🔨 New pyproject.toml config
Browse files Browse the repository at this point in the history
  • Loading branch information
kinegratii committed Jan 1, 2024
1 parent f6b1682 commit c978162
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v2
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,15 @@ print(FinanceNumbers.to_capital_str(decimal.Decimal(4.50))) # '肆元伍角零
- [x] [nose2](https://pypi.org/project/nose2/) | [pytest](https://docs.pytest.org/en/latest/)
- [x] [Github Action](https://github.com/kinegratii/borax/actions)
- [x] [Code Coverage](https://codecov.io/)
- [x] [pyproject.toml build tools](https://packaging.python.org/)

## 项目构建 (Project Build)

从4.0.1开始,borax 使用 *pyproject.toml* 作为项目构建的配置文件,使用以下命令构建 wheel 发行包。

```shell
python -m build -w
```

## 开源协议 (License)

Expand Down
6 changes: 6 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# 更新日志

## v4.0.1

- 使用 *pyproject.toml* 项目构建配置文件,构建命令 `python -m build -w`
- 支持python3.12
- 新增方法 `FestivalLibrary.extend_term_festivals`

## v4.0.0 (20221115)

- 新增基于 tkinter 的 [节日界面库](/guides/festivals-ui)
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ Documentation = "https://borax.readthedocs.io/zh_CN/latest/"
Repository = "https://github.com/kinegratii/borax"

[tool.setuptools]
packages = ["borax"]
include-package-data = true

[tool.setuptools.dynamic]
Expand Down
3 changes: 2 additions & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ coverage~=5.5
flake8~=6.1
mccabe~=0.6
wheel~=0.42
setuptools~=65.0
setuptools~=65.0
build~=1.0
3 changes: 3 additions & 0 deletions tests/test_festival_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ def test_calendar(self):
fl = FestivalLibrary.load_builtin()
days = fl.monthdaycalendar(2022, 1)
self.assertEqual(6, len(days))
fl1 = FestivalLibrary(fl)
self.assertTrue(isinstance(fl1, FestivalLibrary))
self.assertTrue(len(fl) == len(fl1))


class FestivalLibraryCURDTestCase(unittest.TestCase):
Expand Down

0 comments on commit c978162

Please sign in to comment.