From 8d48369bc6229f6c40a0eaa3f096b21e8ee5cdfc Mon Sep 17 00:00:00 2001 From: Hugo Date: Mon, 4 Mar 2019 17:48:40 +0200 Subject: [PATCH 1/9] sudo no longer needed https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4dc412bf..a623178b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: python notifications: email: false -sudo: false + python: - 2.7 - pypy @@ -13,7 +13,6 @@ matrix: include: - python: 2.7 dist: trusty - sudo: required virtualenv: system_site_packages: true addons: From 4b111c8bf5f6b358b6a4b5b0d53000be372779f9 Mon Sep 17 00:00:00 2001 From: Hugo Date: Mon, 4 Mar 2019 17:49:30 +0200 Subject: [PATCH 2/9] Drop the dot https://twitter.com/pytestdotorg/status/753767547866972160 --- .travis.yml | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a623178b..1f7b71d7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,6 +26,6 @@ install: - pip install -r tests/requirements.txt - python setup.py install script: - - py.test tests/test.py --cov=codecov + - pytest tests/test.py --cov=codecov after_success: - codecov diff --git a/tox.ini b/tox.ini index 45fed510..c26c0ac7 100644 --- a/tox.ini +++ b/tox.ini @@ -5,4 +5,4 @@ envlist = py26, py27, py34 deps = -r{toxinidir}/tests/requirements.txt commands = - py.test tests/test.py + pytest tests/test.py From bd4822464a92158425ebfa17ed130bc685ebac8d Mon Sep 17 00:00:00 2001 From: Hugo Date: Mon, 4 Mar 2019 17:52:10 +0200 Subject: [PATCH 3/9] Add support for Python 3.7 --- .travis.yml | 2 ++ setup.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 1f7b71d7..e24be156 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,6 +21,8 @@ matrix: - python-requests - python-coverage - python-mock + - python: 3.7 + dist: xenial install: - pip install -r tests/requirements.txt diff --git a/setup.py b/setup.py index 5e961aeb..ead3e934 100644 --- a/setup.py +++ b/setup.py @@ -7,9 +7,13 @@ "Environment :: Plugins", "Intended Audience :: Developers", "Programming Language :: Python", + "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: PyPy", "License :: OSI Approved :: Apache Software License", "Topic :: Software Development :: Testing"] From 976e9d595dc1fb516d1e006fe835e3f57e31637c Mon Sep 17 00:00:00 2001 From: Hugo Date: Mon, 4 Mar 2019 17:53:21 +0200 Subject: [PATCH 4/9] Cache pip files --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index e24be156..a5f557aa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: python +cache: pip notifications: email: false From cf4d43c853c2f2dc542736c3fde5bb8da718cdb5 Mon Sep 17 00:00:00 2001 From: Hugo Date: Mon, 4 Mar 2019 17:54:16 +0200 Subject: [PATCH 5/9] Add python_requires to help pip --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ead3e934..825ad589 100644 --- a/setup.py +++ b/setup.py @@ -38,4 +38,6 @@ zip_safe=True, install_requires=install_requires, tests_require=["unittest2"], - entry_points={'console_scripts': ['codecov=codecov:main']}) + entry_points={'console_scripts': ['codecov=codecov:main']}, + python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', + ) From 71735221a19cac9cc5f76f5e28df528866e753d6 Mon Sep 17 00:00:00 2001 From: Hugo Date: Mon, 4 Mar 2019 18:08:40 +0200 Subject: [PATCH 6/9] Remove redundant code --- codecov/__init__.py | 8 ++------ setup.py | 9 +-------- tests/requirements.txt | 1 - tests/test.py | 2 +- tox.ini | 2 +- 5 files changed, 5 insertions(+), 17 deletions(-) diff --git a/codecov/__init__.py b/codecov/__init__.py index 39d9a980..ae805ed9 100644 --- a/codecov/__init__.py +++ b/codecov/__init__.py @@ -22,12 +22,8 @@ import subprocess # https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning -try: - import logging - logging.captureWarnings(True) -except: - # not py2.6 compatible - pass +import logging +logging.captureWarnings(True) version = VERSION = __version__ = '2.0.15' diff --git a/setup.py b/setup.py index 825ad589..24d7ee64 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,5 @@ #!/usr/bin/env python from setuptools import setup -import sys version = '2.0.15' classifiers = ["Development Status :: 5 - Production/Stable", @@ -18,11 +17,6 @@ "License :: OSI Approved :: Apache Software License", "Topic :: Software Development :: Testing"] -if sys.version_info >= (2, 7): - install_requires = ["requests>=2.7.9", "coverage"] -else: - install_requires = ["requests>=2.7.9", "coverage", "argparse"] - setup(name='codecov', version=version, description="Hosted coverage reports for Github, Bitbucket and Gitlab", @@ -36,8 +30,7 @@ packages=['codecov'], include_package_data=True, zip_safe=True, - install_requires=install_requires, - tests_require=["unittest2"], + install_requires=["requests>=2.7.9", "coverage"], entry_points={'console_scripts': ['codecov=codecov:main']}, python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', ) diff --git a/tests/requirements.txt b/tests/requirements.txt index 1c022ee8..62de37c5 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -5,4 +5,3 @@ pytest>=3.6.0 pytest-cov funcsigs requests -unittest2 diff --git a/tests/test.py b/tests/test.py index 5d3f23e2..39bb59b2 100644 --- a/tests/test.py +++ b/tests/test.py @@ -4,7 +4,7 @@ import itertools from ddt import ddt, data from mock import patch, Mock -import unittest2 as unittest +import unittest import subprocess diff --git a/tox.ini b/tox.ini index c26c0ac7..84880fa6 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py26, py27, py34 +envlist = py27, py34, py35, py36, py37 [testenv] deps = From 684ab7f8a3d99b671826ce87b2bf2618f9ece338 Mon Sep 17 00:00:00 2001 From: Hugo Date: Mon, 4 Mar 2019 18:14:52 +0200 Subject: [PATCH 7/9] Fix GitHub typo --- CHANGELOG.md | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f869d2f..f7a85fc1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -127,7 +127,7 @@ ### `1.1.5` - search for all `lcov|gcov` files -- depreciate `--min-coverage`, use Github Status Update feature +- depreciate `--min-coverage`, use GitHub Status Update feature - pre-process xml => json ### `1.1.4` diff --git a/setup.py b/setup.py index 24d7ee64..115e7c93 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ setup(name='codecov', version=version, - description="Hosted coverage reports for Github, Bitbucket and Gitlab", + description="Hosted coverage reports for GitHub, Bitbucket and Gitlab", long_description=None, classifiers=classifiers, keywords='coverage codecov code python java scala php', From a4d620be54e68ec7b63f5f4e2ef915f62f1c294e Mon Sep 17 00:00:00 2001 From: Hugo Date: Mon, 4 Mar 2019 18:24:10 +0200 Subject: [PATCH 8/9] Use HTTPS --- README.md | 10 +++++----- setup.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 86eb0dd3..dbf2ddf1 100644 --- a/README.md +++ b/README.md @@ -76,19 +76,19 @@ after_success: ## CI Providers | Company | Supported | Token Required | | --------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- | -| [Travis CI](https://travis-ci.org/) | Yes [![Build Status](https://secure.travis-ci.org/codecov/codecov-python.svg?branch=master)](http://travis-ci.org/codecov/codecov-python) | Private only | +| [Travis CI](https://travis-ci.org/) | Yes [![Build Status](https://secure.travis-ci.org/codecov/codecov-python.svg?branch=master)](https://travis-ci.org/codecov/codecov-python) | Private only | | [CircleCI](https://circleci.com/) | Yes | Private only | | [Codeship](https://codeship.com/) | Yes | Public & Private | | [Jenkins](https://jenkins-ci.org/) | Yes | Public & Private | | [Semaphore](https://semaphoreci.com/) | Yes | Public & Private | | [Drone.io](https://drone.io/) | Yes | Public & Private | -| [AppVeyor](http://www.appveyor.com/) | Yes [![Build status](https://ci.appveyor.com/api/projects/status/sw18lsj7786bw806/branch/master?svg=true)](https://ci.appveyor.com/project/stevepeak/codecov-python/branch/master) | Private only | +| [AppVeyor](https://www.appveyor.com/) | Yes [![Build status](https://ci.appveyor.com/api/projects/status/sw18lsj7786bw806/branch/master?svg=true)](https://ci.appveyor.com/project/stevepeak/codecov-python/branch/master) | Private only | | [Wercker](http://wercker.com/) | Yes | Public & Private | | [Magnum CI](https://magnum-ci.com/) | Yes | Public & Private | -| [Shippable](http://www.shippable.com/) | Yes | Public & Private | +| [Shippable](https://www.shippable.com/) | Yes | Public & Private | | [Gitlab CI](https://about.gitlab.com/gitlab-ci/) | Yes | Public & Private | -| git / mercurial | Yes (as a fallback) | Public & Private | -| [Buildbot](http://buildbot.net/) | `coming soon` [buildbot/buildbot#1671](https://github.com/buildbot/buildbot/pull/1671) | | +| Git / Mercurial | Yes (as a fallback) | Public & Private | +| [Buildbot](https://buildbot.net/) | `coming soon` [buildbot/buildbot#1671](https://github.com/buildbot/buildbot/pull/1671) | | | [Bamboo](https://www.atlassian.com/software/bamboo) | `coming soon` | | | [Solano Labs](https://www.solanolabs.com/) | `coming soon` | | diff --git a/setup.py b/setup.py index 115e7c93..639e7464 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ keywords='coverage codecov code python java scala php', author='@codecov', author_email='hello@codecov.io', - url='http://github.com/codecov/codecov-python', + url='https://github.com/codecov/codecov-python', license='http://www.apache.org/licenses/LICENSE-2.0', packages=['codecov'], include_package_data=True, From 6ad9b73bbf7f8b6d27df8b898986b878760157fe Mon Sep 17 00:00:00 2001 From: Hugo Date: Mon, 4 Mar 2019 18:24:29 +0200 Subject: [PATCH 9/9] Remove redundant note: sudo no longer required on Travis CI --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index dbf2ddf1..122997e2 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,6 @@ after_success: | [Bamboo](https://www.atlassian.com/software/bamboo) | `coming soon` | | | [Solano Labs](https://www.solanolabs.com/) | `coming soon` | | -> Using **Travis CI**? Uploader is compatible with `sudo: false` which can speed up your builds. :+1: