Skip to content

Commit a0bd14a

Browse files
authored
Merge pull request #2 from marcohenning/develop
v1.0.1
2 parents e7b8b40 + dc9e585 commit a0bd14a

File tree

6 files changed

+17
-3
lines changed

6 files changed

+17
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PyQt Phone Input
22

3-
[![PyPI](https://img.shields.io/badge/pypi-v1.0.0-blue)](https://pypi.org/project/pyqt-phone-input)
3+
[![PyPI](https://img.shields.io/badge/pypi-v1.0.1-blue)](https://pypi.org/project/pyqt-phone-input)
44
[![Python](https://img.shields.io/badge/python-3.7+-blue)](https://github.com/marcohenning/pyqt-phone-input)
55
[![License](https://img.shields.io/badge/license-MIT-green)](https://github.com/marcohenning/pyqt-phone-input/blob/master/LICENSE)
66
[![Coverage](https://img.shields.io/badge/coverage-90%25-neon)](https://github.com/marcohenning/pyqt-phone-input)

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
[options.entry_points]
3+
pyinstaller40 =
4+
hook-dirs = pyqt_phone_input.hooks:get_hook_dirs

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66

77
setup(
88
name='pyqt-phone-input',
9-
version='1.0.0',
9+
version='1.0.1',
1010
author='Marco Henning',
1111
license='MIT',
1212
packages=find_namespace_packages(where="src"),
1313
package_dir={"": "src"},
1414
package_data={
15-
'pyqt_phone_input.flag_icons': ['*.png']
15+
'pyqt_phone_input.flag_icons': ['*.png'],
16+
'pyqt_phone_input.hooks': ['*.py']
1617
},
1718
install_requires=[
1819
'QtPy>=2.4.1'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import os
2+
3+
4+
def get_hook_dirs():
5+
return [os.path.dirname(__file__)]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from PyInstaller.utils.hooks import collect_data_files
2+
3+
datas = collect_data_files('pyqt_phone_input', excludes=['hooks'])

src/pyqt_phone_input/phone_input.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def __init__(self, parent=None):
4444
# Phone number LineEdit
4545
self.__phone_line_edit = PhoneLineEdit(self)
4646
self.__phone_line_edit.setBorderWidth(self.__border_width)
47+
self.__phone_line_edit.setCurrentBorderColor(self.__border_color)
4748

4849
# Phone code LineEdit
4950
self.__phone_code_line_edit = QLineEdit(self)

0 commit comments

Comments
 (0)