Skip to content

Commit 6a623e2

Browse files
committed
pyproject.toml creation for PyPi
EntityModel creation bugfix.
1 parent 7c89aca commit 6a623e2

File tree

4 files changed

+54
-52
lines changed

4 files changed

+54
-52
lines changed

django_ledger/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
default_app_config = 'django_ledger.apps.DjangoLedgerConfig'
1010

1111
"""Django Ledger"""
12-
__version__ = '0.5.2.5'
12+
__version__ = '0.5.2.6'
1313
__license__ = 'GPLv3 License'
1414

1515
__author__ = 'Miguel Sanda'

django_ledger/views/entity.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def form_valid(self, form):
8080
admin=user_model
8181
)
8282
entity_model: EntityModel = EntityModel.add_root(instance=entity_model)
83-
entity_model.create_chart_of_accounts()
83+
entity_model.create_chart_of_accounts(assign_as_default=True)
8484

8585
if default_coa:
8686
entity_model.populate_default_coa(activate_accounts=activate_accounts)

pyproject.toml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
[project]
2+
name = "django-ledger"
3+
version = "0.5.2.6"
4+
readme = "README.md"
5+
requires-python = ">=3.7"
6+
description = "Bookkeeping & Financial analysis backend for Django. Balance Sheet, Income Statements, Chart of Accounts, Entities"
7+
keywords = ["django", "finance", "bookkeeping", "accounting", "balance sheet", "income statement", "general ledger", "money", "engine"]
8+
authors = [
9+
{ name = "Miguel Sanda", email = "[email protected]" }
10+
]
11+
maintainers = [
12+
{ name = "Miguel Sanda", email = "[email protected]" }
13+
]
14+
dependencies = [
15+
"asgiref==3.5.2; python_version >= '3.7'",
16+
"django==4.1.3",
17+
"django-treebeard==4.5.1",
18+
"faker==15.3.3",
19+
"markdown==3.4.1",
20+
"ofxtools==0.9.5",
21+
"pillow==9.3.0",
22+
"python-dateutil==2.8.2; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
23+
"six==1.16.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
24+
"sqlparse==0.4.3; python_version >= '3.5'",
25+
"text-unidecode==1.3",
26+
"tzdata==2022.2; sys_platform == 'win32'",
27+
]
28+
classifiers = [
29+
"Programming Language :: Python :: 3",
30+
"Programming Language :: Python :: Implementation :: CPython",
31+
"Topic :: Office/Business :: Financial :: Accounting",
32+
"Development Status :: 3 - Alpha",
33+
"Framework :: Django :: 3.0",
34+
"Intended Audience :: Financial and Insurance Industry",
35+
"Intended Audience :: End Users/Desktop",
36+
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
37+
]
38+
39+
[project.license]
40+
file = "LICENSE"
41+
42+
[project.urls]
43+
"Homepage" = "https://www.djangoledger.com"
44+
"Bug Tracker" = "https://github.com/arrobalytics/django-ledger/issues"
45+
"Documentation" = "https://django-ledger.readthedocs.io/en/latest/"
46+
"Source Code" = "https://github.com/arrobalytics/django-ledger"
47+
48+
[project.optional-dependencies]
49+
dev = ["sphinx~=4.5.0", "behave~=1.2.6", "pipenv-setup", "pylint", "furo"]

setup.py

+3-50
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,5 @@
1-
from setuptools import setup, find_packages, find_namespace_packages
1+
from setuptools import setup, find_namespace_packages
22

3-
import django_ledger
3+
PACKAGES = find_namespace_packages(exclude=["dev_env", "docs", "assets", "docs.source", "notebooks"])
44

5-
PACKAGES = find_namespace_packages(exclude=["dev_env", "docs", "assets", "docs.source"])
6-
7-
setup(
8-
extras_require={
9-
"dev": ["sphinx~=4.5.0", "behave~=1.2.6", "pipenv-setup", "pylint", "furo"]
10-
},
11-
dependency_links=[],
12-
name="django-ledger",
13-
version=django_ledger.__version__,
14-
packages=PACKAGES,
15-
url=django_ledger.__url__,
16-
license=django_ledger.__license__,
17-
keywords="django, finance, bookkeeping, accounting, balance sheet, income statement, general ledger, money, engine",
18-
author=django_ledger.__author__,
19-
author_email=django_ledger.__email__,
20-
description="Bookkeeping & Financial analysis backend for Django. Balance Sheet, Income Statements, "
21-
+ "Chart of Accounts, Entities",
22-
include_package_data=True,
23-
install_requires=[
24-
"asgiref==3.5.2; python_version >= '3.7'",
25-
"django==4.1.3",
26-
"django-treebeard==4.5.1",
27-
"faker==15.3.3",
28-
"markdown==3.4.1",
29-
"ofxtools==0.9.5",
30-
"pillow==9.3.0",
31-
"python-dateutil==2.8.2; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
32-
"six==1.16.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
33-
"sqlparse==0.4.3; python_version >= '3.5'",
34-
"text-unidecode==1.3",
35-
"tzdata==2022.2; sys_platform == 'win32'",
36-
],
37-
project_urls={
38-
"Bug Tracker": "https://github.com/arrobalytics/django-ledger/issues",
39-
"Documentation": "https://docs.djangoledger.com",
40-
"Source Code": "https://github.com/arrobalytics/django-ledger",
41-
},
42-
classifiers=[
43-
"Programming Language :: Python :: 3",
44-
"Programming Language :: Python :: Implementation :: CPython",
45-
"Topic :: Office/Business :: Financial :: Accounting",
46-
"Development Status :: 3 - Alpha",
47-
"Framework :: Django :: 3.0",
48-
"Intended Audience :: Financial and Insurance Industry",
49-
"Intended Audience :: End Users/Desktop",
50-
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
51-
],
52-
)
5+
setup(packages=PACKAGES)

0 commit comments

Comments
 (0)