From e9fa3e82231eef4459a60bae69b67a5781ee7c88 Mon Sep 17 00:00:00 2001 From: Andrew Cordery Date: Thu, 11 Jan 2024 12:41:06 +0100 Subject: [PATCH] chore: removed unnecessary codecov dep, other cruft --- .github/workflows/tox.yml | 2 +- .travis.yml | 18 ------------------ CHANGELOG.md | 6 ++++++ CONTRIBUTING.rst | 21 +++++++-------------- README.rst | 8 ++------ poetry.lock | 17 +---------------- pyproject.toml | 2 -- 7 files changed, 17 insertions(+), 57 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index b9e64e2..b1e0902 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -10,7 +10,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [ '3.10', '3.11', '3.12' ] + python-version: [ '3.9', '3.10', '3.11', '3.12' ] django-version: [ ">=3,<4", ">=4,<5", ">=5,<6" ] steps: diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d5a2d4b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -# Config file for automatic testing at travis-ci.org - -language: python - -python: - - "2.7" - - "3.6" - - "3.7" - - "3.8" - -install: - - pip install codecov poetry tox-travis - -# command to run tests using coverage, e.g. python setup.py test -script: tox - -after_success: - - codecov diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b70045..8a9d47a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +## [2.1.1] + +### Changed + +- Removed unnecessary codecov dependency + ## [2.1] ### Added diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 5670f0d..943dacc 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -74,13 +74,13 @@ Ready to contribute? Here's how to set up `django-languages-plus` for local deve Now you can make your changes locally. -5. When you're done making changes, check that your changes pass flake8 and the - tests, including testing other Python versions with tox:: +5. When you're done making changes, check that your changes are lint free, formatted, and pass the tests, + including testing other Python versions with tox:: - $ flake8 languages_plus tests + $ ruff check . + # ruff format $ tox - To get flake8 and tox, just pip install them into your virtualenv. 6. Commit your changes and push your branch to GitHub:: @@ -99,13 +99,6 @@ Before you submit a pull request, check that it meets these guidelines: 2. If the pull request adds functionality, the docs should be updated. Put your new functionality into a function with a docstring, and add the feature to the list in README.rst. -3. The pull request should work for Python 2.6, 2.7, and 3.3, and for PyPy. Check - https://travis-ci.org/cordery/django-languages-plus/pull_requests - and make sure that the tests pass for all supported Python versions. - -Tips ----- - -To run a subset of tests:: - - $ python -m unittest tests.test_languages_plus +3. The pull request should work for the Python & Django versions specified in + tox.ini. Run tox and make sure that the tests pass for all supported Python + versions. diff --git a/README.rst b/README.rst index a5a8eb8..8972584 100644 --- a/README.rst +++ b/README.rst @@ -5,12 +5,8 @@ Django Languages Plus .. image:: https://badge.fury.io/py/django-languages-plus.svg :target: https://badge.fury.io/py/django-languages-plus -.. image:: https://travis-ci.org/cordery/django-languages-plus.svg?branch=master - :target: https://travis-ci.org/cordery/django-languages-plus - -.. image:: https://codecov.io/gh/cordery/django-languages-plus/branch/master/graph/badge.svg - :target: https://codecov.io/gh/cordery/django-languages-plus - +.. image:: https://github.com/cordery/django-languages-plus/actions/workflows/tox.yml/badge.svg + :target: https://github.com/cordery/django-languages-plus/actions/workflows/tox.yml django-languages-plus provides models and fixtures for working with both common languages and 'culture codes' or locale codes, like pt-BR. diff --git a/poetry.lock b/poetry.lock index 40ab971..ee718da 100644 --- a/poetry.lock +++ b/poetry.lock @@ -188,21 +188,6 @@ files = [ {file = "charset_normalizer-3.3.2-py3-none-any.whl", hash = "sha256:3e4d1f6587322d2788836a99c69062fbb091331ec940e02d12d179c1d53e25fc"}, ] -[[package]] -name = "codecov" -version = "2.1.13" -description = "Hosted coverage reports for GitHub, Bitbucket and Gitlab" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" -files = [ - {file = "codecov-2.1.13-py2.py3-none-any.whl", hash = "sha256:c2ca5e51bba9ebb43644c43d0690148a55086f7f5e6fd36170858fa4206744d5"}, - {file = "codecov-2.1.13.tar.gz", hash = "sha256:2362b685633caeaf45b9951a9b76ce359cd3581dd515b430c6c3f5dfb4d92a8c"}, -] - -[package.dependencies] -coverage = "*" -requests = ">=2.7.9" - [[package]] name = "colorama" version = "0.4.6" @@ -661,4 +646,4 @@ test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess [metadata] lock-version = "2.0" python-versions = ">=3.8,<4" -content-hash = "300389294f67f514ca9a8660d037c87a10f21b0af385edc1bdff43c6ebb45194" +content-hash = "6fc5ef0aa61d261bbe544334052d0d4ca7965c6938fd8037a138faf6695c6766" diff --git a/pyproject.toml b/pyproject.toml index b04ccd5..8c61625 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,11 +28,9 @@ classifiers = [ python = ">=3.8,<4" django = ">=3.2,<6" django-countries-plus = ">2" -codecov = "2.1.13" [tool.poetry.group.test.dependencies] coverage = "^7" -codecov = "^2" pytest = "^7" pytest-cov = "^4" pytest-django = "^4.5"