Skip to content

Commit

Permalink
Add support for python 3.x
Browse files Browse the repository at this point in the history
----
ci: Test against Python 3.7

----
ci: Skip Coveralls submission if COVERALLS_REPO_TOKEN env. var is empty

----
ci: Update circleci image to allow install of python 3.7
See https://circleci.com/docs/2.0/configuration-reference/#machine

----
pytest-server-fixture: Fix rethinkdb tests requiring rethinkdb < 2.4.0

The current implementation needs to be refactored to support the latest
release of rethinkdb-python package. See #132

----
wheels: Generate universal wheels installable with both python 2.x and 3.x
See #125

Fix DeprecationWarning warnings using "logger.warning()" function

----
pytest-virtualenv: Add virtualenv as install requirement. Fixes #122

Remove requirement for pytest<4.0.0
See #100

----
pytest-webdriver: Fix RemovedInPytest4Warning using getfixturevalue

This commit fixes the following error:

  >           root_uri.append(request.getfuncargvalue('pyramid_server').uri)
  E           RemovedInPytest4Warning: getfuncargvalue is deprecated, use getfixturevalue

  pytest_webdriver.py:62: RemovedInPytest4Warning

See #100

----
pytest-verbose-parametrize: Add support for revamped marker infrastructure

This commit fixes tests failing with pytest > 4.0.0

----
pytest-verbose-parametrize: Fix integration tests to support pytest >= 4.1.0

This commit updates tests to support version of pytest with
pytest-dev/pytest@e9b2475e2 (Display actual test ids in `--collect-only`)

----
dist: Remove support for building and distributing *.egg files

Wheel is currently considered the standard for built and binary
packaging for Python

See https://packaging.python.org/discussions/wheel-vs-egg/

See #125

----
VagrantFile: Install python 3.7 and initialize python 3.7 by default
  • Loading branch information
jcfr committed Mar 20, 2019
1 parent b55ee96 commit cb9d379
Show file tree
Hide file tree
Showing 50 changed files with 202 additions and 120 deletions.
23 changes: 20 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ test-tmpl: &test-tmpl
cat *.egg-info/top_level.txt | xargs -Ipysrc coverage run -p --source=pysrc setup.py test -sv -ra || touch ../FAILED-$(basename $PWD)
job-tmpl: &job-tmpl
machine: true
machine:
image: circleci/classic:201808-01

working_directory: ~/src

Expand Down Expand Up @@ -118,7 +119,11 @@ job-tmpl: &job-tmpl
coverage report
pip install urllib3[secure]
pip install coveralls
CIRCLE_BUILD_NUM=$CIRCLE_WORKFLOW_ID coveralls
if [[ "$COVERALLS_REPO_TOKEN" != "" ]]; then
CIRCLE_BUILD_NUM=$CIRCLE_WORKFLOW_ID coveralls
else
echo "Skipping Coveralls"
fi
- store_test_results:
path: junit
Expand Down Expand Up @@ -148,13 +153,23 @@ jobs:
environment:
PYTHON: "python3.6"

py37:
<<: *job-tmpl
environment:
PYTHON: "python3.7"

coveralls:
docker:
- image: buildpack-deps:trusty
steps:
- run:
name: Complete Coveralls
command: curl --fail https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN -d "payload[build_num]=$CIRCLE_WORKFLOW_ID&payload[status]=done"
command: |
if [[ "$COVERALLS_REPO_TOKEN" != "" ]]; then
curl --fail https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN -d "payload[build_num]=$CIRCLE_WORKFLOW_ID&payload[status]=done"
else
echo "Skipping Coveralls"
fi
workflows:
version: 2
Expand All @@ -164,9 +179,11 @@ workflows:
- py34
- py35
- py36
- py37
- coveralls:
requires:
- py27
- py34
- py35
- py36
- py37
14 changes: 13 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,19 @@
## Changelog

### 1.7.0
* pytest-server-fixtures: if host not defined, use localhost
* pytest-server-fixtures: if host not defined, use localhost
* circleci: Test against Python 3.7
* circleci: Fix checks by skipping coverall submission for developer without push access
* pytest-server-fixture: Fix rethinkdb tests requiring rethinkdb < 2.4.0
* wheels: Generate universal wheels installable with both python 2.x and 3.x
* Fix DeprecationWarning warnings using "logger.warning()" function
* pytest-virtualenv: Add virtualenv as install requirement. Fixes #122
* Remove requirement for pytest<4.0.0
* pytest-webdriver: Fix RemovedInPytest4Warning using getfixturevalue
* pytest-verbose-parametrize: Add support for revamped marker infrastructure
* pytest-verbose-parametrize: Fix integration tests to support pytest >= 4.1.0
* dist: Remove support for building and distributing *.egg files
* VagrantFile: Install python 3.7 and initialize python 3.7 by default

### 1.6.2 (2019-02-21)
* pytest-server-fixtures: suppress stacktrace if kill() is called
Expand Down
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ EXTRA_DEPS = pypandoc \
pymongo \
psycopg2 \
boto3 \
rethinkdb \
"rethinkdb<2.4.0" \
docker \
kubernetes

COPY_FILES = VERSION CHANGES.md common_setup.py MANIFEST.in LICENSE
UPLOAD_OPTS =

# removed from PHONY: circleci_sip circleci_pyqt
.PHONY: extras copyfiles wheels eggs sdists install develop test upload clean
.PHONY: extras copyfiles wheels sdists install develop test upload clean

extras:
pip install $(EXTRA_DEPS)
Expand All @@ -28,9 +28,6 @@ wheels: copyfiles
pip install -U wheel
./foreach.sh --changed 'python setup.py bdist_wheel'

eggs: copyfiles
./foreach.sh --changed 'python setup.py bdist_egg'

sdists: copyfiles
./foreach.sh --changed 'python setup.py sdist'

Expand Down
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ Vagrant.configure("2") do |config|
config.vm.provision "docker"
config.vm.provision "file", source: "install.sh", destination: "/tmp/install.sh"
config.vm.provision "shell", inline: ". /tmp/install.sh && install_all"
config.vm.provision "shell", inline: ". /tmp/install.sh && init_venv python2.7", privileged: false
config.vm.provision "shell", inline: ". /tmp/install.sh && init_venv python3.7", privileged: false
end
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ function install_all {
install_python python3.4
install_python python3.5
install_python python3.6
install_python python3.7

update_apt_sources
install_system_deps
Expand Down
2 changes: 0 additions & 2 deletions pytest-devpi-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ Install using your favourite package manager:

```bash
pip install pytest-devpi-server
# or..
easy_install pytest-devpi-server
```

Enable the fixture explicitly in your tests or conftest.py (not required when using setuptools entry points):
Expand Down
13 changes: 8 additions & 5 deletions pytest-devpi-server/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
[tool:pytest]
# This section sets configuration for all invocations of py.test,
# both standalone cmdline and running via setup.py
norecursedirs =
.git
*.egg
build
dist
norecursedirs =
.git
*.egg
build
dist

[bdist_wheel]
universal = 1
3 changes: 2 additions & 1 deletion pytest-devpi-server/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
]

install_requires = ['pytest-server-fixtures',
'pytest<4.0.0',
'pytest',
'devpi-server>=3.0.1',
'devpi-client',
'six',
Expand Down
2 changes: 0 additions & 2 deletions pytest-fixture-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ Install using your favourite package manager:

```bash
pip install pytest-fixture-config
# or..
easy_install pytest-fixture-config
```

Enable the fixture explicitly in your tests or conftest.py (not required when using setuptools entry points):
Expand Down
13 changes: 8 additions & 5 deletions pytest-fixture-config/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
[tool:pytest]
# This section sets configuration for all invocations of py.test,
# both standalone cmdline and running via setup.py
norecursedirs =
.git
*.egg
build
dist
norecursedirs =
.git
*.egg
build
dist

[bdist_wheel]
universal = 1
3 changes: 2 additions & 1 deletion pytest-fixture-config/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
]

install_requires = ['pytest<4.0.0']
install_requires = ['pytest']

tests_require = ['six',
]
Expand Down
2 changes: 0 additions & 2 deletions pytest-git/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ Creates an empty Git repository for testing that cleans up after itself on teard
Install using your favourite package installer:
```bash
pip install pytest-git
# or
easy_install pytest-git
```

Enable the fixture explicitly in your tests or conftest.py (not required when using setuptools entry points):
Expand Down
13 changes: 8 additions & 5 deletions pytest-git/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
[tool:pytest]
# This section sets configuration for all invocations of py.test,
# both standalone cmdline and running via setup.py
norecursedirs =
.git
*.egg
build
dist
norecursedirs =
.git
*.egg
build
dist

[bdist_wheel]
universal = 1
3 changes: 2 additions & 1 deletion pytest-git/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
]

install_requires = ['pytest<4.0.0',
install_requires = ['pytest',
'pytest-shutil',
'gitpython',
]
Expand Down
2 changes: 0 additions & 2 deletions pytest-listener/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ Install using your favourite package manager:

```bash
pip install pytest-listener
# or..
easy_install pytest-listener
```

Enable the fixture explicitly in your tests or conftest.py (not required when using setuptools entry points):
Expand Down
13 changes: 8 additions & 5 deletions pytest-listener/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
[tool:pytest]
# This section sets configuration for all invocations of py.test,
# both standalone cmdline and running via setup.py
norecursedirs =
.git
*.egg
build
dist
norecursedirs =
.git
*.egg
build
dist

[bdist_wheel]
universal = 1
3 changes: 2 additions & 1 deletion pytest-listener/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
]

install_requires = ['six',
'pytest<4.0.0',
'pytest',
'pytest-server-fixtures'
]

Expand Down
2 changes: 0 additions & 2 deletions pytest-profiling/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ generated using [gprof2dot](http://code.google.com/p/jrfonseca/wiki/Gprof2Dot) a
Install using your favourite package installer:
```bash
pip install pytest-profiling
# or
easy_install pytest-profiling
```

Enable the fixture explicitly in your tests or conftest.py (not required when using setuptools entry points):
Expand Down
11 changes: 7 additions & 4 deletions pytest-profiling/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
[tool:pytest]
# This section sets configuration for all invocations of py.test,
# both standalone cmdline and running via setup.py
norecursedirs =
.git
*.egg
build
norecursedirs =
.git
*.egg
build
dist
tests/integration/profile/tests

[bdist_wheel]
universal = 1
3 changes: 2 additions & 1 deletion pytest-profiling/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
]

install_requires = ['six',
'pytest<4.0.0',
'pytest',
'gprof2dot',
]

Expand Down
2 changes: 0 additions & 2 deletions pytest-pyramid-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ Install using your favourite package manager:

```bash
pip install pytest-pyramid-server
# or..
easy_install pytest-pyramid-server
```

Enable the fixture explicitly in your tests or conftest.py (not required when using setuptools entry points):
Expand Down
13 changes: 8 additions & 5 deletions pytest-pyramid-server/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
[tool:pytest]
# This section sets configuration for all invocations of py.test,
# both standalone cmdline and running via setup.py
norecursedirs =
.git
*.egg
build
dist
norecursedirs =
.git
*.egg
build
dist

[bdist_wheel]
universal = 1
3 changes: 2 additions & 1 deletion pytest-pyramid-server/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
]


install_requires = ['pytest-server-fixtures',
'pytest<4.0.0',
'pytest',
'pyramid',
'waitress',
'six',
Expand Down
2 changes: 0 additions & 2 deletions pytest-qt-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ Set up a Q Application for QT with an X-Window Virtual Framebuffer (Xvfb).
Install using your favourite package installer:
```bash
pip install pytest-qt-app
# or
easy_install pytest-qt-app
```

Enable the fixture explicitly in your tests or conftest.py (not required when using setuptools entry points):
Expand Down
13 changes: 8 additions & 5 deletions pytest-qt-app/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
[tool:pytest]
# This section sets configuration for all invocations of py.test,
# both standalone cmdline and running via setup.py
norecursedirs =
.git
*.egg
build
dist
norecursedirs =
.git
*.egg
build
dist

[bdist_wheel]
universal = 1
Loading

0 comments on commit cb9d379

Please sign in to comment.