diff --git a/MANIFEST.in b/MANIFEST.in index 1fbcfc4..e469a29 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -15,17 +15,14 @@ # See the License for the specific language governing permissions and # limitations under the License. +recursive-include src/accounting/static * exclude src/accounting/static/js/dummy.js -include src/accounting/translations/* -include src/accounting/translations/*/LC_MESSAGES/* -include docs/* -include docs/source/* -include docs/source/_static/* -include docs/source/_templates/* -include tests/* +recursive-include src/accounting/templates * +recursive-include src/accounting/translations * +recursive-include src/accounting/data * +recursive-include docs * +recursive-exclude docs/build * +recursive-include tests * exclude tests/test_temp.py -include tests/test_site/* -include tests/test_site/static/* -include tests/test_site/templates/* -include tests/test_site/translations/* -include tests/test_site/translations/*/LC_MESSAGES/* +recursive-exclude tests *.pyc +recursive-exclude tests/instance * diff --git a/pyproject.toml b/pyproject.toml index dc6f629..20e8575 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,6 +15,51 @@ # See the License for the specific language governing permissions and # limitations under the License. +[project] +name = "mia-accounting" +version = "0.11.1" +description = "A Flask accounting module." +readme = "README.rst" +requires-python = ">=3.11" +authors = [ + {name = "imacat", email = "imacat@mail.imacat.idv.tw"}, +] +keywords = ["mia", "accounting", "flask"] +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: Apache Software License", + "Operating System :: OS Independent", + "Framework :: Flask", + "Topic :: Office/Business :: Financial :: Accounting", +] +dependencies = [ + "flask", + "Flask-SQLAlchemy", + "Flask-WTF", + "Flask-Babel >= 3", + "Flask-Babel-JS", +] + +[project.optional-dependencies] +test = [ + "unittest", + "httpx", + "OpenCC", +] + +[project.urls] +"Documentation" = "https://mia-accounting.readthedocs.io" +"Repository" = "https://github.com/imacat/mia-accounting" +"Bug Tracker" = "https://github.com/imacat/mia-accounting/issues" +"Demonstration" = "https://accounting.imacat.idv.tw" + [build-system] requires = ["setuptools>=42"] build-backend = "setuptools.build_meta" + +[tool.setuptools.exclude-package-data] +"*" = [ + "babel.cfg", + "*.pot", + "*.po", +] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 32eee32..0000000 --- a/setup.cfg +++ /dev/null @@ -1,56 +0,0 @@ -# The Mia! Accounting Project. -# Author: imacat@mail.imacat.idv.tw (imacat), 2022/8/21 - -# Copyright (c) 2022-2023 imacat. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -[metadata] -name = mia-accounting -version = 0.11.1 -author = imacat -author_email = imacat@mail.imacat.idv.tw -description = The Mia! Accounting project. -long_description = file: README.rst -long_description_content_type = text/x-rst -url = https://github.com/imacat/mia-accounting -project_urls = - Bug Tracker = https://github.com/imacat/mia-accounting/issues -classifiers = - Programming Language :: Python :: 3 - License :: OSI Approved :: Apache Software License - Operating System :: OS Independent - Framework :: Flask - Topic :: Office/Business :: Financial :: Accounting - -[options] -package_dir = - = src -python_requires = >=3.11 -install_requires = - flask - Flask-SQLAlchemy - Flask-WTF - Flask-Babel >= 3 - Flask-Babel-JS -tests_require = - unittest - httpx - OpenCC - -[options.package_data] -accounting = - static/** - templates/** - translations/*/LC_MESSAGES/*.mo - data/**