From 288bb01417bd0525b795db1abc5e129df384a432 Mon Sep 17 00:00:00 2001 From: Arunanshu Biswas Date: Fri, 19 Apr 2024 16:38:31 +0530 Subject: [PATCH] ci(actions): use environment variables instead of flags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I am such a retard wtf 🪿 --- .github/workflows/ci.yml | 9 +++------ pdm.lock | 34 +--------------------------------- pyproject.toml | 1 - 3 files changed, 4 insertions(+), 40 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e900252..4f5f1d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -153,12 +153,9 @@ jobs: cache: true python-version: ">=3.9" - - name: Install build dependencies - run: pdm install -G dev - - name: Publish Package run: | - pdm run python -m build - pdm publish -u __token__ -p "$PYPI_PASSWORD" --no-build + pdm publish env: - PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + PDM_PUBLISH_USERNAME: __token__ + PDM_PUBLISH_PASSWORD: ${{ secrets.PYPI_PASSWORD }} diff --git a/pdm.lock b/pdm.lock index bceb52e..5fdf140 100644 --- a/pdm.lock +++ b/pdm.lock @@ -5,7 +5,7 @@ groups = ["default", "debugging", "dev", "docs", "test"] strategy = ["cross_platform", "inherit_metadata"] lock_version = "4.4.1" -content_hash = "sha256:5d8fb7a38e7e89d1063111ea2e1c96b0b72eb73598bcf4257392381e620eb3f1" +content_hash = "sha256:00004fb0364de55da6ef1f48daf0e3b2c3c42590a22f57929e6f07a2232da5e1" [[package]] name = "alabaster" @@ -101,24 +101,6 @@ files = [ {file = "beautifulsoup4-4.12.3.tar.gz", hash = "sha256:74e3d1928edc070d21748185c46e3fb33490f22f52a3addee9aee0f4f7781051"}, ] -[[package]] -name = "build" -version = "1.2.1" -requires_python = ">=3.8" -summary = "A simple, correct Python build frontend" -groups = ["dev"] -dependencies = [ - "colorama; os_name == \"nt\"", - "importlib-metadata>=4.6; python_full_version < \"3.10.2\"", - "packaging>=19.1", - "pyproject-hooks", - "tomli>=1.1.0; python_version < \"3.11\"", -] -files = [ - {file = "build-1.2.1-py3-none-any.whl", hash = "sha256:75e10f767a433d9a86e50d83f418e83efc18ede923ee5ff7df93b6cb0306c5d4"}, - {file = "build-1.2.1.tar.gz", hash = "sha256:526263f4870c26f26c433545579475377b2b7588b6f1eac76a001e873ae3e19d"}, -] - [[package]] name = "certifi" version = "2024.2.2" @@ -930,20 +912,6 @@ files = [ {file = "pygments-2.17.2.tar.gz", hash = "sha256:da46cec9fd2de5be3a8a784f434e4c4ab670b4ff54d605c4c2717e9d49c4c367"}, ] -[[package]] -name = "pyproject-hooks" -version = "1.0.0" -requires_python = ">=3.7" -summary = "Wrappers to call pyproject.toml-based build backend hooks." -groups = ["dev"] -dependencies = [ - "tomli>=1.1.0; python_version < \"3.11\"", -] -files = [ - {file = "pyproject_hooks-1.0.0-py3-none-any.whl", hash = "sha256:283c11acd6b928d2f6a7c73fa0d01cb2bdc5f07c57a2eeb6e83d5e56b97976f8"}, - {file = "pyproject_hooks-1.0.0.tar.gz", hash = "sha256:f271b298b97f5955d53fb12b72c1fb1948c22c1a6b70b315c54cedaca0264ef5"}, -] - [[package]] name = "pyreadline" version = "2.1" diff --git a/pyproject.toml b/pyproject.toml index e665445..afcacf7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,7 +71,6 @@ dev = [ "commitizen>=3.13.0", "mypy>=1.8.0", "ruff>=0.3.7", - "build>=1.2.1", ] docs = ["furo>=2022.2.14", "sphinx>=7.1.2", "sphinx-copybutton>=0.5.2"] test = [