From 93f2cde51fbd946b5d0a25fa5addf66953965856 Mon Sep 17 00:00:00 2001 From: veit Date: Sun, 16 Feb 2025 20:53:43 +0100 Subject: [PATCH 1/3] :pencil2: Typos --- docs/packs/publish.rst | 62 +++++++++--------------------------------- 1 file changed, 13 insertions(+), 49 deletions(-) diff --git a/docs/packs/publish.rst b/docs/packs/publish.rst index 3f8d89a..c682044 100644 --- a/docs/packs/publish.rst +++ b/docs/packs/publish.rst @@ -10,7 +10,7 @@ set up an account there, go to https://test.pypi.org/account/register/. Further information can be found at `Using TestPyPI `_. -Now you can create the :file:`~/.pypirc` file: +Now you can create the :file:`~/.config/pip/pip.conf` file: .. code-block:: ini @@ -27,55 +27,21 @@ Now you can create the :file:`~/.pypirc` file: `_. After you are registered, you can upload your :term:`Distribution Package` with -:term:`twine`. To do this, however, you must first install twine with: +``uv publish``. -.. code-block:: console - - $ uv add --upgrade twine - -.. tip:: - Run this command before each release to ensure that all release tools are up - to date. - -After installing ``twine`` you can upload all archives under :file:`/dist` to -the Python Package Index with: - -Now you can create your :term:`Distribution Packages ` -with: - -.. code-block:: console - - $ cd /path/to/your/distribution_package - $ rm -rf build dist - $ python -m build - -After installing Twine you can upload all archives in ``/dist`` to the Python -Package Index with: +You can either use ``uv publish`` with the option ``--username __token__`` or +set the environment variable ``UV_PUBLISH_USERNAME=__token__`` to upload all +archives under :file:`/dist` to the :term:`Python Package Index`: .. code-block:: console - $ uv run twine upload -r test -s dist/* - -``-r``, ``--repository`` - The repository to upload the package. - - In our case, the ``test`` section from the :file:`~/.pypirc` file is used. + $ uv publish --publish-url https://test.pypi.org/legacy/ --username __token__ dist/* -``-s``, ``--sign`` - signs the files to be uploaded with GPG. - -You will be asked for the password of your signature key that you used to -register with *Test PyPI* . You should then see a similar output: - -.. code-block:: console +``--publish-url`` + The URL of the upload endpoint (not the index URL). - Uploading distributions to https://test.pypi.org/legacy/ - Enter your username: veit - Enter your password: - Uploading example-0.0.1-py3-none-any.whl - 100%|█████████████████████| 4.65k/4.65k [00:01<00:00, 2.88kB/s] - Uploading example-0.0.1.tar.gz - 100%|█████████████████████| 4.25k/4.25k [00:01<00:00, 3.05kB/s] +``--username`` + The user name for the upload. .. note:: If you get an error message similar to @@ -128,8 +94,7 @@ You can test whether your package has been installed correctly by calling The packages on *Test-PyPI* are only stored temporarily. If you want to upload a package to the real :term:`Python Package Index` (:term:`PyPI`), - you can do so by creating an account on :term:`pypi.org` and following the - same instructions, but using ``twine upload dist/*``. + you can do so by creating an account on :term:`pypi.org`. README ~~~~~~ @@ -172,7 +137,7 @@ Finally, you can publish your package on PyPI: .. code-block:: console - $ uv run twine upload -r pypi -s dist/* + $ uv publish dist/* .. note:: You cannot simply replace releases as you cannot re-upload packages with the @@ -228,11 +193,10 @@ PyPI at every time a release is created. Such a cache-dependency-path: '**/pyproject.toml' - name: Setup cached uv uses: hynek/setup-cached-uv@v2 - - name: Create venv and install twine + - name: Create venv run: | uv venv echo "$PWD/.venv/bin" >> $GITHUB_PATH - uv add --upgrade twine - name: Build run: | uv build From dc5e12484c8676633d7565f4821bfb54169a5adc Mon Sep 17 00:00:00 2001 From: veit Date: Sat, 1 Mar 2025 12:48:43 +0100 Subject: [PATCH 2/3] :chart_with_upwards_trend: Add monthly checks for dependabot --- .github/dependabot.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..3a626c3 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: monthly From bf66c5dc011ec68feb35c5c24fc81186e05c8b31 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Mar 2025 18:02:11 +0000 Subject: [PATCH 3/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pycqa/isort: 6.0.0 → 6.0.1](https://github.com/pycqa/isort/compare/6.0.0...6.0.1) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5ff8b37..fc103c8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: sphinx-lint types: [rst] - repo: https://github.com/pycqa/isort - rev: 6.0.0 + rev: 6.0.1 hooks: - id: isort additional_dependencies: ["toml"]