From ae6624088e9cd31ab4f3d2c941dc28729b42e95f Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Sat, 20 Apr 2024 01:19:46 -0400 Subject: [PATCH 1/2] build: Add a long_descriptino which is now a required field. Previously it could be empty but now PyPI throws an error when you try to publish with an empty long description. Fix that, and bump the version. We're also updating the django classifiers to be more accurate. --- opaque_keys/__init__.py | 2 +- setup.py | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/opaque_keys/__init__.py b/opaque_keys/__init__.py index 5f7b1ce..9ff7c96 100644 --- a/opaque_keys/__init__.py +++ b/opaque_keys/__init__.py @@ -14,7 +14,7 @@ from stevedore.enabled import EnabledExtensionManager from typing_extensions import Self # For python 3.11 plus, can just use "from typing import Self" -__version__ = '2.7.0' +__version__ = '2.8.0' class InvalidKeyError(Exception): diff --git a/setup.py b/setup.py index 8760cbc..5b6d173 100644 --- a/setup.py +++ b/setup.py @@ -4,6 +4,7 @@ """ import os import re +from pathlib import Path from setuptools import find_packages, setup @@ -90,9 +91,15 @@ def get_version(*file_paths): VERSION = get_version("opaque_keys", "__init__.py") +# read the contents of your README file +this_directory = Path(__file__).parent +long_description = (this_directory / "README.rst").read_text() + setup( name='edx-opaque-keys', + long_description=long_description, + long_description_content_type='text/x-rst', version=VERSION, author='edX', url='https://github.com/openedx/opaque-keys', @@ -105,8 +112,7 @@ def get_version(*file_paths): "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Framework :: Django", - "Framework :: Django :: 3.2", - "Framework :: Django :: 4.0", + "Framework :: Django :: 4.2", ], # We are including the tests because other libraries do use mixins from them. packages=find_packages(), From bcdee9f4358dfcf2885de960959f05a68a7cedea Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Sat, 20 Apr 2024 01:28:34 -0400 Subject: [PATCH 2/2] chore: Update codecov. The older version of the action now fails intermittently to force you to a newer version. The new version requires a token that's been added as a repository secret. --- .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 bf6248a..ff378fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,8 @@ jobs: - name: Run Coverage if: matrix.python-version == '3.11' && matrix.toxenv=='django42' - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v4 with: flags: unittests fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }}