Skip to content

Commit

Permalink
pyproject.toml creation for PyPi
Browse files Browse the repository at this point in the history
EntityModel creation bugfix.
  • Loading branch information
elarroba committed Nov 28, 2022
1 parent 7c89aca commit 6a623e2
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 52 deletions.
2 changes: 1 addition & 1 deletion django_ledger/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
default_app_config = 'django_ledger.apps.DjangoLedgerConfig'

"""Django Ledger"""
__version__ = '0.5.2.5'
__version__ = '0.5.2.6'
__license__ = 'GPLv3 License'

__author__ = 'Miguel Sanda'
Expand Down
2 changes: 1 addition & 1 deletion django_ledger/views/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def form_valid(self, form):
admin=user_model
)
entity_model: EntityModel = EntityModel.add_root(instance=entity_model)
entity_model.create_chart_of_accounts()
entity_model.create_chart_of_accounts(assign_as_default=True)

if default_coa:
entity_model.populate_default_coa(activate_accounts=activate_accounts)
Expand Down
49 changes: 49 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[project]
name = "django-ledger"
version = "0.5.2.6"
readme = "README.md"
requires-python = ">=3.7"
description = "Bookkeeping & Financial analysis backend for Django. Balance Sheet, Income Statements, Chart of Accounts, Entities"
keywords = ["django", "finance", "bookkeeping", "accounting", "balance sheet", "income statement", "general ledger", "money", "engine"]
authors = [
{ name = "Miguel Sanda", email = "[email protected]" }
]
maintainers = [
{ name = "Miguel Sanda", email = "[email protected]" }
]
dependencies = [
"asgiref==3.5.2; python_version >= '3.7'",
"django==4.1.3",
"django-treebeard==4.5.1",
"faker==15.3.3",
"markdown==3.4.1",
"ofxtools==0.9.5",
"pillow==9.3.0",
"python-dateutil==2.8.2; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
"six==1.16.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
"sqlparse==0.4.3; python_version >= '3.5'",
"text-unidecode==1.3",
"tzdata==2022.2; sys_platform == 'win32'",
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Office/Business :: Financial :: Accounting",
"Development Status :: 3 - Alpha",
"Framework :: Django :: 3.0",
"Intended Audience :: Financial and Insurance Industry",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
]

[project.license]
file = "LICENSE"

[project.urls]
"Homepage" = "https://www.djangoledger.com"
"Bug Tracker" = "https://github.com/arrobalytics/django-ledger/issues"
"Documentation" = "https://django-ledger.readthedocs.io/en/latest/"
"Source Code" = "https://github.com/arrobalytics/django-ledger"

[project.optional-dependencies]
dev = ["sphinx~=4.5.0", "behave~=1.2.6", "pipenv-setup", "pylint", "furo"]
53 changes: 3 additions & 50 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,52 +1,5 @@
from setuptools import setup, find_packages, find_namespace_packages
from setuptools import setup, find_namespace_packages

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

PACKAGES = find_namespace_packages(exclude=["dev_env", "docs", "assets", "docs.source"])

setup(
extras_require={
"dev": ["sphinx~=4.5.0", "behave~=1.2.6", "pipenv-setup", "pylint", "furo"]
},
dependency_links=[],
name="django-ledger",
version=django_ledger.__version__,
packages=PACKAGES,
url=django_ledger.__url__,
license=django_ledger.__license__,
keywords="django, finance, bookkeeping, accounting, balance sheet, income statement, general ledger, money, engine",
author=django_ledger.__author__,
author_email=django_ledger.__email__,
description="Bookkeeping & Financial analysis backend for Django. Balance Sheet, Income Statements, "
+ "Chart of Accounts, Entities",
include_package_data=True,
install_requires=[
"asgiref==3.5.2; python_version >= '3.7'",
"django==4.1.3",
"django-treebeard==4.5.1",
"faker==15.3.3",
"markdown==3.4.1",
"ofxtools==0.9.5",
"pillow==9.3.0",
"python-dateutil==2.8.2; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
"six==1.16.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
"sqlparse==0.4.3; python_version >= '3.5'",
"text-unidecode==1.3",
"tzdata==2022.2; sys_platform == 'win32'",
],
project_urls={
"Bug Tracker": "https://github.com/arrobalytics/django-ledger/issues",
"Documentation": "https://docs.djangoledger.com",
"Source Code": "https://github.com/arrobalytics/django-ledger",
},
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Office/Business :: Financial :: Accounting",
"Development Status :: 3 - Alpha",
"Framework :: Django :: 3.0",
"Intended Audience :: Financial and Insurance Industry",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
],
)
setup(packages=PACKAGES)

0 comments on commit 6a623e2

Please sign in to comment.