Added MANIFEST.in and pyproject.toml, and replaced setup.py with setup.cfg.

This commit is contained in:
依瑪貓 2022-12-05 08:52:13 +08:00
parent 3cef0d7009
commit bcb27594ad
4 changed files with 89 additions and 43 deletions

18
MANIFEST.in Normal file
View File

@ -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/*

20
pyproject.toml Normal file
View File

@ -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"

51
setup.cfg Normal file
View File

@ -0,0 +1,51 @@
# The setup.cfg
# by imacat <imacat@mail.imacat.idv.tw>, 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

View File

@ -1,43 +0,0 @@
# The setup.py
# by imacat <imacat@mail.imacat.idv.tw>, 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"},
)