Skip to content

Commit

Permalink
Moving to python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Panos Garefalakis committed Oct 16, 2020
1 parent da11664 commit 3838c46
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
16 changes: 8 additions & 8 deletions http_request_randomizer/__init__.py
Original file line number Diff line number Diff line change
@@ -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__
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2020 ' + __author__
20 changes: 11 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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',
],
)
11 changes: 5 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 3838c46

Please sign in to comment.