From ed7d228b21d67ace4ea059ddcfeb456668cc9abb Mon Sep 17 00:00:00 2001 From: Zooxy Le Date: Tue, 16 Apr 2024 19:59:07 +0700 Subject: [PATCH] chore(ci): update build script --- .github/workflows/python-publish.yml | 4 ++-- pyproject.toml | 10 ---------- setup.py | 2 +- 3 files changed, 3 insertions(+), 13 deletions(-) delete mode 100644 pyproject.toml diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index bdaab28..4cd92f3 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -29,9 +29,9 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install build + pip install --upgrade setuptools - name: Build package - run: python -m build + run: python setup.py sdist --dist-dir dist - name: Publish package uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 with: diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index ffef0b0..0000000 --- a/pyproject.toml +++ /dev/null @@ -1,10 +0,0 @@ -[tool.isort] -profile = "black" -src_paths = ["src/dictrule", "src/dictrule/built_in_rules"] -honor_noqa = true - -[tool.pytest.ini_options] -addopts = "--doctest-modules" -doctest_optionflags = "NORMALIZE_WHITESPACE ELLIPSIS" -minversion = "6.2" -testpaths = ["tests"] \ No newline at end of file diff --git a/setup.py b/setup.py index f76678a..1188d8a 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ author=about["__author__"], author_email=about["__author_email__"], url=about["__url__"], - packages=["dictrule"], + packages=["dictrule", "dictrule/built_in_rules"], package_data={"": ["LICENSE", "NOTICE"]}, package_dir={"": "src"}, include_package_data=True,