Skip to content
This repository was archived by the owner on Aug 10, 2022. It is now read-only.

Commit dc2ddb5

Browse files
authored
Merge pull request #5 from applitools/fix-namespaec-issue
Fix namespace issue
2 parents 36f150f + 23d578d commit dc2ddb5

23 files changed

+127
-34
lines changed

.travis.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,25 @@
11
language: python
2-
python:
3-
- 2.7
4-
- 3.5
5-
- 3.6
6-
sudo: false
7-
env:
8-
- DISPLAY=:0.0
2+
matrix:
3+
include:
4+
- python: 2.7
5+
env:
6+
- TOX_ENV=images
7+
- python: 3.5
8+
env:
9+
- TOX_ENV=images
10+
- python: 2.7
11+
env:
12+
- TOX_ENV=integration
13+
- python: 3.6
14+
env:
15+
- TOX_ENV=integration
16+
- python: 3.6
17+
env:
18+
- TOX_ENV=lint
919
install:
10-
- pip install -U tox-travis
11-
script:
20+
- pip install -U tox
21+
before_script:
1222
- export APPLITOOLS_BATCH_ID=`uuidgen -t`
1323
- echo $APPLITOOLS_BATCH_ID
14-
- tox
24+
script:
25+
- tox -e $TOX_ENV

eyes_core/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def get_version(package_name):
4040
setup(
4141
name='eyes_core',
4242
version=get_version('core'),
43-
packages=find_packages(include=['applitools.*'], exclude=('tests',)),
43+
packages=find_packages(),
4444
url='http://www.applitools.com',
4545
license='Apache License, Version 2.0',
4646
author='Applitools Team',

eyes_images/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def get_version(package_name):
3737
setup(
3838
name='eyes_images',
3939
version=get_version('images'),
40-
packages=find_packages(include=['applitools.*'], exclude=('tests',)),
40+
packages=find_packages(),
4141
url='http://www.applitools.com',
4242
license='Apache License, Version 2.0',
4343
author='Applitools Team',
@@ -60,7 +60,7 @@ def get_version(package_name):
6060
install_requires=install_requires,
6161
package_data={
6262
'': ['README.rst', 'LICENSE'],
63-
'core': ['py.typed'],
63+
'images': ['py.typed'],
6464
},
6565
project_urls={
6666
'Bug Reports': 'https://github.com/applitools/eyes.sdk.python/issues',

eyes_selenium/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def get_version(package_name):
3939
setup(
4040
name='eyes_selenium',
4141
version=get_version('selenium'),
42-
packages=find_packages(include=['applitools.*'], exclude=('tests',)),
42+
packages=find_packages(),
4343
url='http://www.applitools.com',
4444
license='Apache License, Version 2.0',
4545
author='Applitools Team',

setup.cfg

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
[bumpversion]
2-
current_version = 3.14.2
3-
commit = True
4-
tag = True
5-
61
[tool:pytest]
72
addopts = --verbose
83
python_files = tests/*.py

tasks.py

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,36 @@ def dist(c, core=None,
3535

3636

3737
@task
38-
def install_requirements(c):
38+
def install_requirements(c, dev=None, testing=None, lint=None):
3939
dev_requires = [
4040
'ipython',
4141
'ipdb',
4242
'bumpversion',
43-
'flake8',
44-
'flake8-import-order',
45-
'flake8-bugbear',
46-
'mypy',
4743
'wheel',
4844
'twine',
45+
'pathlib',
4946
]
5047
testing_requires = [
5148
'pytest==3.8.2',
5249
'pytest-cov',
5350
'pytest-xdist',
51+
'virtualenv',
52+
'pytest-virtualenv',
53+
]
54+
lint_requires = [
55+
'flake8',
56+
'flake8-import-order',
57+
'flake8-bugbear',
58+
'mypy',
5459
]
55-
requires = dev_requires + testing_requires
60+
if testing:
61+
requires = testing_requires
62+
elif dev:
63+
requires = dev_requires
64+
elif lint:
65+
requires = lint_requires
66+
else:
67+
requires = dev_requires + testing_requires + lint_requires
5668
c.run("pip install {}".format(' '.join(requires)), echo=True)
5769

5870

@@ -109,7 +121,12 @@ def mypy_check(c, core=None,
109121

110122

111123
@task
112-
def test_run(c, core=None,
113-
selenium=None, images=None):
124+
def test_run_packs(c, core=None,
125+
selenium=None, images=None):
114126
for pack in _packages_resolver(core, selenium, images):
115-
c.run('pytest tests/{}'.format(pack), echo=True)
127+
c.run('pytest tests/functional/{}'.format(pack), echo=True)
128+
129+
130+
@task
131+
def test_run_integration(c):
132+
c.run('pytest tests/test_integration.py')
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)