Skip to content

Commit ec57366

Browse files
authored
Merge pull request #29 from levi-rs/switch-from-versioneer-to-pbr
Switch version management to PBR
2 parents fe6bb19 + 118a207 commit ec57366

File tree

13 files changed

+164
-2407
lines changed

13 files changed

+164
-2407
lines changed

.coveragerc

Lines changed: 0 additions & 2 deletions
This file was deleted.

.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ python:
1010
- '3.5'
1111
- '3.6'
1212
- pypy
13-
- pypy3
1413
install:
1514
- pip install -U pip
15+
- pip install -U setuptools
16+
- pip install -U tox
1617
- pip install -U tox-travis
1718
- pip install python-coveralls
1819
- pip install coverage
@@ -30,4 +31,4 @@ deploy:
3031
on:
3132
branch: master
3233
tags: true
33-
python: '3.4'
34+
python: '3.6'

AUTHORS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Levi Noecker <levi-rs@users.noreply.github.com>
2+
levi-rs <levi.noecker@rewardstyle.com>

ChangeLog

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
CHANGES
2+
=======
3+
4+
* Switch to PBR and remove pypy3 support
5+
6+
0.1.0
7+
-----
8+
9+
* Add find\_one method to waiter
10+
11+
0.0.8
12+
-----
13+
14+
* Use official Python 3.6 for testing
15+
* Update README to include by imports
16+
17+
0.0.7
18+
-----
19+
20+
* Fix PyPI deployment
21+
* Add importable By types to main package
22+
23+
0.0.6
24+
-----
25+
26+
* Add find\_elements to waiter
27+
28+
0.0.5
29+
-----
30+
31+
* Add find\_write to waiter
32+
* Add Gitter badge
33+
* Fix copy/paste error
34+
35+
0.0.4
36+
-----
37+
38+
* Update Development Status Classifier
39+
* Update README with example
40+
* Update badges
41+
42+
0.0.3
43+
-----
44+
45+
* Add find\_element function
46+
* Add initial find\_element function
47+
* Add docs dir
48+
* Convert README from md to rst
49+
* Fix long description
50+
* Fix syntax error from copy/paste
51+
* Add long description
52+
* Update setup.py classifiers
53+
* Update README badge
54+
55+
0.0.2
56+
-----
57+
58+
* Switch .travis.yml to production deployment
59+
* Try using 3.6.0b1
60+
* Add \_\_init\_\_ to tests/
61+
* Update travis.yml
62+
* Add Versioneer docs
63+
* Switch to TravisCI
64+
* Add initial structure
65+
* Initial commit
66+
* Initial commit

example.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
from explicit import waiter
2+
from selenium import webdriver
3+
from selenium.webdriver.common.by import By
4+
5+
driver = webdriver.Chrome()
6+
7+
try:
8+
driver.get("https://github.com/this/doesntexist")
9+
10+
username_field = waiter.find_element(driver, "login_field", By.ID)
11+
username_field.click()
12+
username_field.send_keys("my_username")
13+
14+
password_field = waiter.find_element(driver, "password", By.ID)
15+
password_field.click()
16+
password_field.send_keys("my_password")
17+
18+
login_button = waiter.find_element(driver, "input.btn-primary", By.CSS_SELECTOR)
19+
login_button.click()
20+
finally:
21+
driver.quit()
22+
23+
24+
from explicit import waiter
25+
from selenium import webdriver
26+
from selenium.webdriver.common.by import By
27+
28+
driver = webdriver.Chrome()
29+
30+
try:
31+
driver.get("https://github.com/this/doesntexist")
32+
33+
waiter.find_write(driver, "login_field", "my_username", by=By.ID)
34+
35+
waiter.find_write(driver, "password", "my_password", by=By.ID, send_enter=True)
36+
37+
finally:
38+
driver.quit()

explicit/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
from pbr.version import VersionInfo
12
from selenium.webdriver.common.by import By
23

3-
from ._version import get_versions
4-
__version__ = get_versions()['version']
5-
del get_versions
4+
__version__ = VersionInfo('explicit').semantic_version().release_string()
65

76
CLASS_NAME = By.CLASS_NAME
87
CSS = By.CSS_SELECTOR

0 commit comments

Comments
 (0)