diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e05761e..4fced1f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,11 +17,11 @@ jobs: name: "Python ${{ matrix.python-version }}" runs-on: "ubuntu-latest" env: - USING_COVERAGE: '3.6,3.8' + USING_COVERAGE: '3.9' strategy: matrix: - python-version: ["2.7","3.6","3.7","3.8","3.9","pypy3"] + python-version: ["3.6","3.7","3.8","3.9","pypy3"] steps: - uses: "actions/checkout@v2" diff --git a/http_request_randomizer/__init__.py b/http_request_randomizer/__init__.py index 16e183d..706e38d 100644 --- a/http_request_randomizer/__init__.py +++ b/http_request_randomizer/__init__.py @@ -1,13 +1,13 @@ __author__ = 'pgaref' -__version__ = "1.2.3" +__version__ = '1.2.3' -__title__ = "http_request_randomizer" -__description__ = "A package using public proxies to randomise http requests" -__uri__ = "http://pgaref.com/blog/python-proxy" +__title__ = 'http_request_randomizer' +__description__ = 'A package using public proxies to randomise http requests' +__uri__ = 'http://pgaref.com/blog/python-proxy' -__author__ = "Panagiotis Garefalakis" -__email__ = "pangaref@gmail.com" +__author__ = 'Panagiotis Garefalakis' +__email__ = 'pangaref@gmail.com' -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 " + __author__ \ No newline at end of file +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 ' + __author__ \ No newline at end of file diff --git a/setup.py b/setup.py index 43097dd..b4a3642 100644 --- a/setup.py +++ b/setup.py @@ -10,9 +10,9 @@ HERE = os.path.abspath(os.path.dirname(__file__)) PROJECT_URLS = { - "Blog": "http://pgaref.com/blog/python-proxy", - "Documentation": "https://pythonhosted.org/http-request-randomizer/", - "Source Code": "https://github.com/pgaref/http_request_randomizer", + 'Blog': 'http://pgaref.com/blog/python-proxy', + 'Documentation': 'https://pythonhosted.org/http-request-randomizer', + 'Source Code': 'https://github.com/pgaref/http_request_randomizer', } def read(*parts): @@ -113,16 +113,18 @@ def run_tests(self): ], }, classifiers=[ - 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 3', - 'Operating System :: OS Independent', 'Development Status :: 4 - Beta', + 'Intended Audience :: Developers', + 'Operating System :: OS Independent', + 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Environment :: Web Environment', - 'Intended Audience :: Developers', 'Topic :: Internet :: WWW/HTTP', - 'License :: OSI Approved :: MIT License', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', 'Topic :: Software Development :: Libraries :: Python Modules', ], ) diff --git a/tox.ini b/tox.ini index 466596e..7c26508 100644 --- a/tox.ini +++ b/tox.ini @@ -4,11 +4,10 @@ # and then run "tox" from this directory. [tox] -envlist = py27, py36, py37, py38, py39, mypy +envlist = py36, py37, py38, py39, mypy [gh-actions] python = - 2.7: py27 3.6: py36 3.7: py37 3.8: py38, docs @@ -31,13 +30,13 @@ python_files=*.py python_functions=test_ norecursedirs=.tox .git .eggs -[testenv:py27] -basepython=python2.7 +[testenv:py36] +basepython=python3.6 commands= py.test tests --doctest-module -[testenv:py27verbose] -basepython=python2.7 +[testenv:py36verbose] +basepython=python3.6 commands= py.test tests --doctest-module --cov=. --cov-report term