diff --git a/setup.py b/setup.py index 5e9b8a2..a3197a6 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ setuptools.setup( long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/imacat/mia-accounting", - packages=setuptools.find_packages(), + packages=setuptools.find_packages(where="src"), classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: Apache Software License", @@ -39,4 +39,5 @@ setuptools.setup( python_requires=">=3.6", install_requires=["django", "django-dirtyfields", "titlecase", "django-decorator-include"], + package_dir={"": "src"}, ) diff --git a/accounting/__init__.py b/src/accounting/__init__.py similarity index 100% rename from accounting/__init__.py rename to src/accounting/__init__.py diff --git a/accounting/apps.py b/src/accounting/apps.py similarity index 100% rename from accounting/apps.py rename to src/accounting/apps.py diff --git a/accounting/converters.py b/src/accounting/converters.py similarity index 100% rename from accounting/converters.py rename to src/accounting/converters.py diff --git a/accounting/forms.py b/src/accounting/forms.py similarity index 100% rename from accounting/forms.py rename to src/accounting/forms.py diff --git a/accounting/locale/zh_Hant/LC_MESSAGES/django.po b/src/accounting/locale/zh_Hant/LC_MESSAGES/django.po similarity index 100% rename from accounting/locale/zh_Hant/LC_MESSAGES/django.po rename to src/accounting/locale/zh_Hant/LC_MESSAGES/django.po diff --git a/accounting/locale/zh_Hant/LC_MESSAGES/djangojs.po b/src/accounting/locale/zh_Hant/LC_MESSAGES/djangojs.po similarity index 100% rename from accounting/locale/zh_Hant/LC_MESSAGES/djangojs.po rename to src/accounting/locale/zh_Hant/LC_MESSAGES/djangojs.po diff --git a/accounting/management/commands/accounting_accounts.py b/src/accounting/management/commands/accounting_accounts.py similarity index 100% rename from accounting/management/commands/accounting_accounts.py rename to src/accounting/management/commands/accounting_accounts.py diff --git a/accounting/management/commands/accounting_sample.py b/src/accounting/management/commands/accounting_sample.py similarity index 100% rename from accounting/management/commands/accounting_sample.py rename to src/accounting/management/commands/accounting_sample.py diff --git a/accounting/migrations/__init__.py b/src/accounting/migrations/__init__.py similarity index 100% rename from accounting/migrations/__init__.py rename to src/accounting/migrations/__init__.py diff --git a/accounting/models.py b/src/accounting/models.py similarity index 100% rename from accounting/models.py rename to src/accounting/models.py diff --git a/accounting/static/accounting/css/report.css b/src/accounting/static/accounting/css/report.css similarity index 100% rename from accounting/static/accounting/css/report.css rename to src/accounting/static/accounting/css/report.css diff --git a/accounting/static/accounting/css/summary-helper.css b/src/accounting/static/accounting/css/summary-helper.css similarity index 100% rename from accounting/static/accounting/css/summary-helper.css rename to src/accounting/static/accounting/css/summary-helper.css diff --git a/accounting/static/accounting/css/transactions-sort.css b/src/accounting/static/accounting/css/transactions-sort.css similarity index 100% rename from accounting/static/accounting/css/transactions-sort.css rename to src/accounting/static/accounting/css/transactions-sort.css diff --git a/accounting/static/accounting/css/transactions.css b/src/accounting/static/accounting/css/transactions.css similarity index 100% rename from accounting/static/accounting/css/transactions.css rename to src/accounting/static/accounting/css/transactions.css diff --git a/accounting/static/accounting/js/account-form.js b/src/accounting/static/accounting/js/account-form.js similarity index 100% rename from accounting/static/accounting/js/account-form.js rename to src/accounting/static/accounting/js/account-form.js diff --git a/accounting/static/accounting/js/account-list.js b/src/accounting/static/accounting/js/account-list.js similarity index 100% rename from accounting/static/accounting/js/account-list.js rename to src/accounting/static/accounting/js/account-list.js diff --git a/accounting/static/accounting/js/summary-helper.js b/src/accounting/static/accounting/js/summary-helper.js similarity index 100% rename from accounting/static/accounting/js/summary-helper.js rename to src/accounting/static/accounting/js/summary-helper.js diff --git a/accounting/static/accounting/js/transaction-form.js b/src/accounting/static/accounting/js/transaction-form.js similarity index 100% rename from accounting/static/accounting/js/transaction-form.js rename to src/accounting/static/accounting/js/transaction-form.js diff --git a/accounting/static/accounting/js/transaction-sort.js b/src/accounting/static/accounting/js/transaction-sort.js similarity index 100% rename from accounting/static/accounting/js/transaction-sort.js rename to src/accounting/static/accounting/js/transaction-sort.js diff --git a/accounting/templates/accounting/account_detail.html b/src/accounting/templates/accounting/account_detail.html similarity index 100% rename from accounting/templates/accounting/account_detail.html rename to src/accounting/templates/accounting/account_detail.html diff --git a/accounting/templates/accounting/account_form.html b/src/accounting/templates/accounting/account_form.html similarity index 100% rename from accounting/templates/accounting/account_form.html rename to src/accounting/templates/accounting/account_form.html diff --git a/accounting/templates/accounting/account_list.html b/src/accounting/templates/accounting/account_list.html similarity index 100% rename from accounting/templates/accounting/account_list.html rename to src/accounting/templates/accounting/account_list.html diff --git a/accounting/templates/accounting/include/record_form-non-transfer.html b/src/accounting/templates/accounting/include/record_form-non-transfer.html similarity index 100% rename from accounting/templates/accounting/include/record_form-non-transfer.html rename to src/accounting/templates/accounting/include/record_form-non-transfer.html diff --git a/accounting/templates/accounting/include/record_form-transfer.html b/src/accounting/templates/accounting/include/record_form-transfer.html similarity index 100% rename from accounting/templates/accounting/include/record_form-transfer.html rename to src/accounting/templates/accounting/include/record_form-transfer.html diff --git a/accounting/templates/accounting/include/report-chooser.html b/src/accounting/templates/accounting/include/report-chooser.html similarity index 100% rename from accounting/templates/accounting/include/report-chooser.html rename to src/accounting/templates/accounting/include/report-chooser.html diff --git a/accounting/templates/accounting/include/summary-helper.html b/src/accounting/templates/accounting/include/summary-helper.html similarity index 100% rename from accounting/templates/accounting/include/summary-helper.html rename to src/accounting/templates/accounting/include/summary-helper.html diff --git a/accounting/templates/accounting/report-balance-sheet.html b/src/accounting/templates/accounting/report-balance-sheet.html similarity index 100% rename from accounting/templates/accounting/report-balance-sheet.html rename to src/accounting/templates/accounting/report-balance-sheet.html diff --git a/accounting/templates/accounting/report-cash-summary.html b/src/accounting/templates/accounting/report-cash-summary.html similarity index 100% rename from accounting/templates/accounting/report-cash-summary.html rename to src/accounting/templates/accounting/report-cash-summary.html diff --git a/accounting/templates/accounting/report-cash.html b/src/accounting/templates/accounting/report-cash.html similarity index 100% rename from accounting/templates/accounting/report-cash.html rename to src/accounting/templates/accounting/report-cash.html diff --git a/accounting/templates/accounting/report-income-statement.html b/src/accounting/templates/accounting/report-income-statement.html similarity index 100% rename from accounting/templates/accounting/report-income-statement.html rename to src/accounting/templates/accounting/report-income-statement.html diff --git a/accounting/templates/accounting/report-journal.html b/src/accounting/templates/accounting/report-journal.html similarity index 100% rename from accounting/templates/accounting/report-journal.html rename to src/accounting/templates/accounting/report-journal.html diff --git a/accounting/templates/accounting/report-ledger-summary.html b/src/accounting/templates/accounting/report-ledger-summary.html similarity index 100% rename from accounting/templates/accounting/report-ledger-summary.html rename to src/accounting/templates/accounting/report-ledger-summary.html diff --git a/accounting/templates/accounting/report-ledger.html b/src/accounting/templates/accounting/report-ledger.html similarity index 100% rename from accounting/templates/accounting/report-ledger.html rename to src/accounting/templates/accounting/report-ledger.html diff --git a/accounting/templates/accounting/report-trial-balance.html b/src/accounting/templates/accounting/report-trial-balance.html similarity index 100% rename from accounting/templates/accounting/report-trial-balance.html rename to src/accounting/templates/accounting/report-trial-balance.html diff --git a/accounting/templates/accounting/search.html b/src/accounting/templates/accounting/search.html similarity index 100% rename from accounting/templates/accounting/search.html rename to src/accounting/templates/accounting/search.html diff --git a/accounting/templates/accounting/transaction_expense_detail.html b/src/accounting/templates/accounting/transaction_expense_detail.html similarity index 100% rename from accounting/templates/accounting/transaction_expense_detail.html rename to src/accounting/templates/accounting/transaction_expense_detail.html diff --git a/accounting/templates/accounting/transaction_expense_form.html b/src/accounting/templates/accounting/transaction_expense_form.html similarity index 100% rename from accounting/templates/accounting/transaction_expense_form.html rename to src/accounting/templates/accounting/transaction_expense_form.html diff --git a/accounting/templates/accounting/transaction_income_detail.html b/src/accounting/templates/accounting/transaction_income_detail.html similarity index 100% rename from accounting/templates/accounting/transaction_income_detail.html rename to src/accounting/templates/accounting/transaction_income_detail.html diff --git a/accounting/templates/accounting/transaction_income_form.html b/src/accounting/templates/accounting/transaction_income_form.html similarity index 100% rename from accounting/templates/accounting/transaction_income_form.html rename to src/accounting/templates/accounting/transaction_income_form.html diff --git a/accounting/templates/accounting/transaction_sort_form.html b/src/accounting/templates/accounting/transaction_sort_form.html similarity index 100% rename from accounting/templates/accounting/transaction_sort_form.html rename to src/accounting/templates/accounting/transaction_sort_form.html diff --git a/accounting/templates/accounting/transaction_transfer_detail.html b/src/accounting/templates/accounting/transaction_transfer_detail.html similarity index 100% rename from accounting/templates/accounting/transaction_transfer_detail.html rename to src/accounting/templates/accounting/transaction_transfer_detail.html diff --git a/accounting/templates/accounting/transaction_transfer_form.html b/src/accounting/templates/accounting/transaction_transfer_form.html similarity index 100% rename from accounting/templates/accounting/transaction_transfer_form.html rename to src/accounting/templates/accounting/transaction_transfer_form.html diff --git a/accounting/templatetags/__init__.py b/src/accounting/templatetags/__init__.py similarity index 100% rename from accounting/templatetags/__init__.py rename to src/accounting/templatetags/__init__.py diff --git a/accounting/templatetags/accounting.py b/src/accounting/templatetags/accounting.py similarity index 100% rename from accounting/templatetags/accounting.py rename to src/accounting/templatetags/accounting.py diff --git a/accounting/tests.py b/src/accounting/tests.py similarity index 100% rename from accounting/tests.py rename to src/accounting/tests.py diff --git a/accounting/urls.py b/src/accounting/urls.py similarity index 100% rename from accounting/urls.py rename to src/accounting/urls.py diff --git a/accounting/utils.py b/src/accounting/utils.py similarity index 100% rename from accounting/utils.py rename to src/accounting/utils.py diff --git a/accounting/validators.py b/src/accounting/validators.py similarity index 100% rename from accounting/validators.py rename to src/accounting/validators.py diff --git a/accounting/views.py b/src/accounting/views.py similarity index 100% rename from accounting/views.py rename to src/accounting/views.py diff --git a/mia_core/__init__.py b/src/mia_core/__init__.py similarity index 100% rename from mia_core/__init__.py rename to src/mia_core/__init__.py diff --git a/mia_core/apps.py b/src/mia_core/apps.py similarity index 100% rename from mia_core/apps.py rename to src/mia_core/apps.py diff --git a/mia_core/locale/zh_Hant/LC_MESSAGES/django.po b/src/mia_core/locale/zh_Hant/LC_MESSAGES/django.po similarity index 100% rename from mia_core/locale/zh_Hant/LC_MESSAGES/django.po rename to src/mia_core/locale/zh_Hant/LC_MESSAGES/django.po diff --git a/mia_core/management/commands/make_trans.py b/src/mia_core/management/commands/make_trans.py similarity index 100% rename from mia_core/management/commands/make_trans.py rename to src/mia_core/management/commands/make_trans.py diff --git a/mia_core/models.py b/src/mia_core/models.py similarity index 100% rename from mia_core/models.py rename to src/mia_core/models.py diff --git a/mia_core/period.py b/src/mia_core/period.py similarity index 100% rename from mia_core/period.py rename to src/mia_core/period.py diff --git a/mia_core/static/mia_core/css/period-chooser.css b/src/mia_core/static/mia_core/css/period-chooser.css similarity index 100% rename from mia_core/static/mia_core/css/period-chooser.css rename to src/mia_core/static/mia_core/css/period-chooser.css diff --git a/mia_core/static/mia_core/js/period-chooser.js b/src/mia_core/static/mia_core/js/period-chooser.js similarity index 100% rename from mia_core/static/mia_core/js/period-chooser.js rename to src/mia_core/static/mia_core/js/period-chooser.js diff --git a/mia_core/templates/mia_core/include/pagination.html b/src/mia_core/templates/mia_core/include/pagination.html similarity index 100% rename from mia_core/templates/mia_core/include/pagination.html rename to src/mia_core/templates/mia_core/include/pagination.html diff --git a/mia_core/templates/mia_core/include/period-chooser.html b/src/mia_core/templates/mia_core/include/period-chooser.html similarity index 100% rename from mia_core/templates/mia_core/include/period-chooser.html rename to src/mia_core/templates/mia_core/include/period-chooser.html diff --git a/mia_core/templatetags/__init__.py b/src/mia_core/templatetags/__init__.py similarity index 100% rename from mia_core/templatetags/__init__.py rename to src/mia_core/templatetags/__init__.py diff --git a/mia_core/templatetags/mia_core.py b/src/mia_core/templatetags/mia_core.py similarity index 100% rename from mia_core/templatetags/mia_core.py rename to src/mia_core/templatetags/mia_core.py diff --git a/mia_core/tests.py b/src/mia_core/tests.py similarity index 100% rename from mia_core/tests.py rename to src/mia_core/tests.py diff --git a/mia_core/utils.py b/src/mia_core/utils.py similarity index 100% rename from mia_core/utils.py rename to src/mia_core/utils.py diff --git a/mia_core/views.py b/src/mia_core/views.py similarity index 100% rename from mia_core/views.py rename to src/mia_core/views.py