From afbe0f495cf50d3c4bdbf42c0f88afe63cd2d17b Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Mon, 8 Apr 2024 15:53:12 -0400 Subject: [PATCH 1/3] build: Add a long description. --- i18n/__init__.py | 2 +- setup.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/i18n/__init__.py b/i18n/__init__.py index 65914f0..beae1fe 100644 --- a/i18n/__init__.py +++ b/i18n/__init__.py @@ -6,7 +6,7 @@ from . import config -__version__ = '1.4.0' +__version__ = '1.5.0' class Runner: diff --git a/setup.py b/setup.py index 725a125..9f1531b 100755 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os import re +import pathlib from setuptools import setup @@ -42,11 +43,17 @@ def get_version(*file_paths): VERSION = get_version("i18n", "__init__.py") +here = pathlib.Path(__file__).parent.resolve() + +# Get the long description from the README file +long_description = (here / "README.rst").read_text(encoding="utf-8") setup( name='edx-i18n-tools', version=VERSION, description='edX Internationalization Tools', + long_description=long_description, + long_description_content_type='text/x-rst', author='edX', author_email='oscm@edx.org', url='https://github.com/openedx/i18n-tools', From b07068467807ad47314937aa8a543b1adc75f2b0 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Mon, 8 Apr 2024 15:53:38 -0400 Subject: [PATCH 2/3] build: The publish action now does releases so we switch to v1 The build showed this warning: Warning: You are using "pypa/gh-action-pypi-publish@master". The "master" branch of this project has been sunset and will not receive any updates, not even security bug fixes. Please, make sure to use a supported version. If you want to pin to v1 major version, use "pypa/gh-action-pypi-publish@release/v1". If you feel adventurous, you may opt to use use "pypa/gh-action-pypi-publish@unstable/v1" instead. A more general recommendation is to pin to exact tags or commit shas. --- .github/workflows/pypi-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 6246904..a30e6e1 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -25,7 +25,7 @@ jobs: run: python setup.py sdist bdist_wheel - name: Publish to PyPi - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ password: ${{ secrets.PYPI_UPLOAD_TOKEN }} From 939d4e3b6f22fa7cef5ac4f8ab15f40dc417109d Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Mon, 8 Apr 2024 16:00:53 -0400 Subject: [PATCH 3/3] build: Switch to a newer codecov action and try to pull in a token. --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e87b356..3ccdb40 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,8 @@ jobs: - name: Upload coverage to CodeCov if: matrix.python-version == '3.8' && matrix.toxenv == 'django42' - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v4 with: file: ./coverage.xml fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }}