diff --git a/escpos/__init__.py b/pyescpos/__init__.py similarity index 100% rename from escpos/__init__.py rename to pyescpos/__init__.py diff --git a/escpos/asc.py b/pyescpos/asc.py similarity index 100% rename from escpos/asc.py rename to pyescpos/asc.py diff --git a/escpos/barcode.py b/pyescpos/barcode.py similarity index 100% rename from escpos/barcode.py rename to pyescpos/barcode.py diff --git a/escpos/config.py b/pyescpos/config.py similarity index 100% rename from escpos/config.py rename to pyescpos/config.py diff --git a/escpos/conn/__init__.py b/pyescpos/conn/__init__.py similarity index 100% rename from escpos/conn/__init__.py rename to pyescpos/conn/__init__.py diff --git a/escpos/conn/bt.py b/pyescpos/conn/bt.py similarity index 100% rename from escpos/conn/bt.py rename to pyescpos/conn/bt.py diff --git a/escpos/conn/dummy.py b/pyescpos/conn/dummy.py similarity index 100% rename from escpos/conn/dummy.py rename to pyescpos/conn/dummy.py diff --git a/escpos/conn/file.py b/pyescpos/conn/file.py similarity index 100% rename from escpos/conn/file.py rename to pyescpos/conn/file.py diff --git a/escpos/conn/network.py b/pyescpos/conn/network.py similarity index 100% rename from escpos/conn/network.py rename to pyescpos/conn/network.py diff --git a/escpos/conn/serial.py b/pyescpos/conn/serial.py similarity index 100% rename from escpos/conn/serial.py rename to pyescpos/conn/serial.py diff --git a/escpos/conn/usb.py b/pyescpos/conn/usb.py similarity index 100% rename from escpos/conn/usb.py rename to pyescpos/conn/usb.py diff --git a/escpos/constants.py b/pyescpos/constants.py similarity index 100% rename from escpos/constants.py rename to pyescpos/constants.py diff --git a/escpos/exceptions.py b/pyescpos/exceptions.py similarity index 100% rename from escpos/exceptions.py rename to pyescpos/exceptions.py diff --git a/escpos/feature.py b/pyescpos/feature.py similarity index 100% rename from escpos/feature.py rename to pyescpos/feature.py diff --git a/escpos/helpers.py b/pyescpos/helpers.py similarity index 99% rename from escpos/helpers.py rename to pyescpos/helpers.py index ac70a74..3a246e1 100644 --- a/escpos/helpers.py +++ b/pyescpos/helpers.py @@ -184,7 +184,7 @@ def is_value_in(constants_group, value): def _list_impls(): - from escpos.impl.epson import GenericESCPOS + from pyescpos.impl.epson import GenericESCPOS return _impls_for(GenericESCPOS) diff --git a/escpos/impl/__init__.py b/pyescpos/impl/__init__.py similarity index 100% rename from escpos/impl/__init__.py rename to pyescpos/impl/__init__.py diff --git a/escpos/impl/bematech.py b/pyescpos/impl/bematech.py similarity index 100% rename from escpos/impl/bematech.py rename to pyescpos/impl/bematech.py diff --git a/escpos/impl/controlid.py b/pyescpos/impl/controlid.py similarity index 100% rename from escpos/impl/controlid.py rename to pyescpos/impl/controlid.py diff --git a/escpos/impl/daruma.py b/pyescpos/impl/daruma.py similarity index 100% rename from escpos/impl/daruma.py rename to pyescpos/impl/daruma.py diff --git a/escpos/impl/elgin.py b/pyescpos/impl/elgin.py similarity index 100% rename from escpos/impl/elgin.py rename to pyescpos/impl/elgin.py diff --git a/escpos/impl/epson.py b/pyescpos/impl/epson.py similarity index 100% rename from escpos/impl/epson.py rename to pyescpos/impl/epson.py diff --git a/escpos/impl/nitere.py b/pyescpos/impl/nitere.py similarity index 100% rename from escpos/impl/nitere.py rename to pyescpos/impl/nitere.py diff --git a/escpos/impl/unknown.py b/pyescpos/impl/unknown.py similarity index 100% rename from escpos/impl/unknown.py rename to pyescpos/impl/unknown.py diff --git a/escpos/retry.py b/pyescpos/retry.py similarity index 100% rename from escpos/retry.py rename to pyescpos/retry.py diff --git a/escpos/showcase.py b/pyescpos/showcase.py similarity index 100% rename from escpos/showcase.py rename to pyescpos/showcase.py diff --git a/setup.py b/setup.py index 4425ca3..82f6824 100644 --- a/setup.py +++ b/setup.py @@ -62,9 +62,9 @@ def read_version(): long_description=long_description, long_description_content_type='text/x-rst', packages=[ - 'escpos', - 'escpos.impl', - 'escpos.conn', + 'pyescpos', + 'pyescpos.impl', + 'pyescpos.conn', ], install_requires=install_requires, extras_require=extras_require, diff --git a/tests/conftest.py b/tests/conftest.py index 884f522..b3d61f5 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -22,7 +22,7 @@ import pytest -from escpos import constants +from pyescpos import constants class FakeDevice(object): diff --git a/tests/test_asc.py b/tests/test_asc.py index 3577559..1f0522d 100644 --- a/tests/test_asc.py +++ b/tests/test_asc.py @@ -22,7 +22,7 @@ import pytest -from escpos import asc +from pyescpos import asc def test_mnemonic(): diff --git a/tests/test_bematech.py b/tests/test_bematech.py index 163dd04..ac37930 100644 --- a/tests/test_bematech.py +++ b/tests/test_bematech.py @@ -24,11 +24,11 @@ import six -from escpos import feature -from escpos.barcode import BARCODE_NORMAL_WIDTH -from escpos.barcode import BARCODE_HRI_BOTTOM -from escpos.exceptions import CashDrawerException -from escpos.impl.bematech import MP4200TH +from pyescpos import feature +from pyescpos.barcode import BARCODE_NORMAL_WIDTH +from pyescpos.barcode import BARCODE_HRI_BOTTOM +from pyescpos.exceptions import CashDrawerException +from pyescpos.impl.bematech import MP4200TH # TODO: Implement tests for inherited methods so we can detect when changes # in the base implementation are potentially breaking the specific diff --git a/tests/test_conn_bt.py b/tests/test_conn_bt.py index ceb792b..ff16138 100644 --- a/tests/test_conn_bt.py +++ b/tests/test_conn_bt.py @@ -28,9 +28,9 @@ except ImportError: _lib_bluetooth = False -from escpos.conn.bt import find_rfcomm_port -from escpos.conn.bt import BluetoothPortDiscoveryError -from escpos.conn.bt import BluetoothConnection +from pyescpos.conn.bt import find_rfcomm_port +from pyescpos.conn.bt import BluetoothPortDiscoveryError +from pyescpos.conn.bt import BluetoothConnection class FakeBluetoothSocket(object): diff --git a/tests/test_conn_dummy.py b/tests/test_conn_dummy.py index 4d2153d..b047c66 100644 --- a/tests/test_conn_dummy.py +++ b/tests/test_conn_dummy.py @@ -21,7 +21,7 @@ from __future__ import unicode_literals -from escpos.conn.dummy import DummyConnection +from pyescpos.conn.dummy import DummyConnection def test_has_settings_example_attribute(): diff --git a/tests/test_conn_file.py b/tests/test_conn_file.py index 9060fa2..06df2ba 100644 --- a/tests/test_conn_file.py +++ b/tests/test_conn_file.py @@ -21,7 +21,7 @@ from __future__ import unicode_literals -from escpos.conn.file import FileConnection +from pyescpos.conn.file import FileConnection def test_has_settings_example_attribute(): diff --git a/tests/test_conn_network.py b/tests/test_conn_network.py index dba01d1..acedd28 100644 --- a/tests/test_conn_network.py +++ b/tests/test_conn_network.py @@ -21,7 +21,7 @@ from __future__ import unicode_literals -from escpos.conn.network import NetworkConnection +from pyescpos.conn.network import NetworkConnection def test_has_settings_example_attribute(): diff --git a/tests/test_conn_serial.py b/tests/test_conn_serial.py index ac21616..242735b 100644 --- a/tests/test_conn_serial.py +++ b/tests/test_conn_serial.py @@ -21,7 +21,7 @@ from __future__ import unicode_literals -from escpos.conn.serial import SerialConnection +from pyescpos.conn.serial import SerialConnection def test_has_settings_example_attribute(): diff --git a/tests/test_conn_usb.py b/tests/test_conn_usb.py index 08915f9..8ceed78 100644 --- a/tests/test_conn_usb.py +++ b/tests/test_conn_usb.py @@ -21,7 +21,7 @@ from __future__ import unicode_literals -from escpos.conn.usb import USBConnection +from pyescpos.conn.usb import USBConnection def test_has_settings_example_attribute(): diff --git a/tests/test_controlid_printidtouch.py b/tests/test_controlid_printidtouch.py index f261d9c..2597935 100644 --- a/tests/test_controlid_printidtouch.py +++ b/tests/test_controlid_printidtouch.py @@ -22,7 +22,7 @@ import pytest -from escpos.impl.controlid import PrintIdTouch +from pyescpos.impl.controlid import PrintIdTouch @pytest.fixture(scope='module') diff --git a/tests/test_daruma_darumageneric.py b/tests/test_daruma_darumageneric.py index ec91d14..e18396e 100644 --- a/tests/test_daruma_darumageneric.py +++ b/tests/test_daruma_darumageneric.py @@ -22,7 +22,7 @@ import pytest -from escpos.impl.daruma import DarumaGeneric +from pyescpos.impl.daruma import DarumaGeneric @pytest.fixture(scope='module') diff --git a/tests/test_daruma_dr700.py b/tests/test_daruma_dr700.py index e2a8af6..326eb3a 100644 --- a/tests/test_daruma_dr700.py +++ b/tests/test_daruma_dr700.py @@ -22,7 +22,7 @@ import pytest -from escpos.impl.daruma import DR700 +from pyescpos.impl.daruma import DR700 @pytest.fixture(scope='module') diff --git a/tests/test_elgin_elgingeneric.py b/tests/test_elgin_elgingeneric.py index 7f7d0f4..c2f05d9 100644 --- a/tests/test_elgin_elgingeneric.py +++ b/tests/test_elgin_elgingeneric.py @@ -22,7 +22,7 @@ import pytest -from escpos.impl.elgin import ElginGeneric +from pyescpos.impl.elgin import ElginGeneric @pytest.fixture(scope='module') diff --git a/tests/test_elgin_i7.py b/tests/test_elgin_i7.py index a378e78..9337669 100644 --- a/tests/test_elgin_i7.py +++ b/tests/test_elgin_i7.py @@ -22,7 +22,7 @@ import pytest -from escpos.impl.elgin import ElginI7 +from pyescpos.impl.elgin import ElginI7 @pytest.fixture(scope='module') diff --git a/tests/test_elgin_i9.py b/tests/test_elgin_i9.py index bebfadd..aacfa08 100644 --- a/tests/test_elgin_i9.py +++ b/tests/test_elgin_i9.py @@ -22,8 +22,8 @@ import pytest -from escpos.exceptions import CashDrawerException -from escpos.impl.elgin import ElginI9 +from pyescpos.exceptions import CashDrawerException +from pyescpos.impl.elgin import ElginI9 @pytest.fixture(scope='module') diff --git a/tests/test_epson_genericescpos.py b/tests/test_epson_genericescpos.py index 24653ee..ecbcf12 100644 --- a/tests/test_epson_genericescpos.py +++ b/tests/test_epson_genericescpos.py @@ -22,8 +22,8 @@ import pytest -from escpos.impl.epson import GenericESCPOS -from escpos import feature +from pyescpos.impl.epson import GenericESCPOS +from pyescpos import feature @pytest.fixture(scope='module') diff --git a/tests/test_epson_tmt20.py b/tests/test_epson_tmt20.py index 25ab612..26da934 100644 --- a/tests/test_epson_tmt20.py +++ b/tests/test_epson_tmt20.py @@ -22,7 +22,7 @@ import pytest -from escpos.impl.epson import TMT20 +from pyescpos.impl.epson import TMT20 @pytest.fixture(scope='module') diff --git a/tests/test_helpers.py b/tests/test_helpers.py index 51c57f1..9944486 100644 --- a/tests/test_helpers.py +++ b/tests/test_helpers.py @@ -23,10 +23,10 @@ import time import pytest -from escpos.exceptions import TimeoutException -from escpos.helpers import chunks -from escpos.helpers import TimeoutHelper -from escpos.helpers import find_implementations +from pyescpos.exceptions import TimeoutException +from pyescpos.helpers import chunks +from pyescpos.helpers import TimeoutHelper +from pyescpos.helpers import find_implementations def test_chunk(): diff --git a/tests/test_nitere_npdv1020.py b/tests/test_nitere_npdv1020.py index 73ff900..071063d 100644 --- a/tests/test_nitere_npdv1020.py +++ b/tests/test_nitere_npdv1020.py @@ -22,7 +22,7 @@ import pytest -from escpos.impl.nitere import NitereNPDV1020 +from pyescpos.impl.nitere import NitereNPDV1020 @pytest.fixture(scope='module') diff --git a/tests/test_retry.py b/tests/test_retry.py index 998cef7..4fef79f 100644 --- a/tests/test_retry.py +++ b/tests/test_retry.py @@ -24,8 +24,8 @@ import pytest -from escpos.retry import time as time_module -from escpos.retry import backoff +from pyescpos.retry import time as time_module +from pyescpos.retry import backoff def test_backoff_no_exceptions_raised(): diff --git a/tests/test_unknown_cb55c.py b/tests/test_unknown_cb55c.py index 9f3ee8f..2203b16 100644 --- a/tests/test_unknown_cb55c.py +++ b/tests/test_unknown_cb55c.py @@ -22,7 +22,7 @@ import pytest -from escpos.impl.unknown import CB55C +from pyescpos.impl.unknown import CB55C @pytest.fixture(scope='module')