diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..82a6e78 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,18 @@ +# The Flask HTTP Digest Authentication Project. +# Author: imacat@mail.imacat.idv.tw (imacat), 2022/11/23 + +# Copyright (c) 2022 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. + +include tests/* diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..5e43b62 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,20 @@ +# The pyproject.toml +# Author: imacat@mail.imacat.idv.tw (imacat), 2022/11/23 + +# Copyright (c) 2022 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. + +[build-system] +requires = ["setuptools>=42"] +build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..9c2c43a --- /dev/null +++ b/setup.cfg @@ -0,0 +1,51 @@ +# The setup.cfg +# by imacat , 2020/9/7 + +# Copyright (c) 2020 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.0.2 +author = imacat +author_email = imacat@mail.imacat.idv.tw +description = A Django accounting application. +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 :: Django + Topic :: Office/Business :: Financial :: Accounting + Intended Audience :: End Users/Desktop + +[options] +package_dir = + = src +packages = find: +python_requires = >=3.6 +install_requires = + django + django-dirtyfields + titlecase + django-decorator-include +tests_require = + unittest + +[options.packages.find] +where = src diff --git a/setup.py b/setup.py deleted file mode 100644 index a3197a6..0000000 --- a/setup.py +++ /dev/null @@ -1,43 +0,0 @@ -# The setup.py -# by imacat , 2020/9/7 - -# Copyright (c) 2020 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. -import setuptools - -with open("README.rst", "r") as fh: - long_description = fh.read() - -setuptools.setup( - name="mia-accounting", - version="0.0.2", - author="imacat", - author_email="imacat@mail.imacat.idv.tw", - description="A Django accounting application", - long_description=long_description, - long_description_content_type="text/markdown", - url="https://github.com/imacat/mia-accounting", - packages=setuptools.find_packages(where="src"), - classifiers=[ - "Programming Language :: Python :: 3", - "License :: OSI Approved :: Apache Software License", - "Framework :: Django :: 3.0", - "Topic :: Office/Business :: Financial :: Accounting", - "Operating System :: OS Independent", - ], - python_requires=">=3.6", - install_requires=["django", "django-dirtyfields", "titlecase", - "django-decorator-include"], - package_dir={"": "src"}, -)