Repository: arshadkazmi42/currency-symbols (language: python)

Issue:
Can't easily import this module
This module has a '-' in it's name, so the only way to import it is to:

    import importlib
    currency_symbols = importlib.import_module('currency-symbols')


Discussion / hints:
Is it. I never thought this is a problem in python import.
We should get this fixed. Would you like to take a try on this?

Fix patch:
diff --git a/.travis.yml b/.travis.yml
index dce6714..2dce83c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,4 +2,4 @@ language: python
 python:
   - "3.6"
 script:
-  - pytest currency-symbols/test.py
\ No newline at end of file
+  - pytest currency_symbols/test.py
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 4c9991e..49a7b16 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -7,7 +7,7 @@ If you are looking forward to start contributing to beautiful world of open sour
 - Create a branch using `git checkout -b feature-branch`
 - Make the required changes
 - Run below command to verify all tests are passing
-  - `pytest currency-symbols/test.py`
+  - `pytest currency_symbols/test.py`
 - Create a pull request using below commands
   - `git add --all`
   - `git commit -m "your commit message"`
diff --git a/currency-symbols/__init__.py b/currency-symbols/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/currency_symbols/__init__.py b/currency_symbols/__init__.py
new file mode 100644
index 0000000..32b5ee9
--- /dev/null
+++ b/currency_symbols/__init__.py
@@ -0,0 +1,1 @@
+from .currency_symbols import CurrencySymbols
diff --git a/currency-symbols/constants.py b/currency_symbols/constants.py
similarity index 100%
rename from currency-symbols/constants.py
rename to currency_symbols/constants.py
diff --git a/currency-symbols/currency_symbols.py b/currency_symbols/currency_symbols.py
similarity index 87%
rename from currency-symbols/currency_symbols.py
rename to currency_symbols/currency_symbols.py
index 6aef7d6..a779efa 100644
--- a/currency-symbols/currency_symbols.py
+++ b/currency_symbols/currency_symbols.py
@@ -1,4 +1,4 @@
-from constants import CURRENCY_SYMBOLS_MAP
+from .constants import CURRENCY_SYMBOLS_MAP
 
 class CurrencySymbols(object):
 


Test patch:
diff --git a/currency-symbols/test.py b/currency_symbols/test.py
similarity index 100%
rename from currency-symbols/test.py
rename to currency_symbols/test.py