Changed build process to setuptools with toml

This commit is contained in:
matthias@arch 2023-05-15 23:57:59 +02:00
parent 99e019fc71
commit f7c0c65767
3 changed files with 37 additions and 34 deletions

2
MANIFEST.in Normal file
View File

@ -0,0 +1,2 @@
include regina/package-data/*
include regina/sql/*.sql

35
pyproject.toml Normal file
View File

@ -0,0 +1,35 @@
[build-system]
requires = ["setuptools"]
[project]
name = "regina"
version = "2.0.0"
description = "Get website analytics from nginx logs and visualize them"
requires-python = ">=3.10"
readme = "README.md"
license = {file = "LICENSE"}
authors = [
{ name = "Matthias Quintern", email = "matthias@quintern.xyz" }
]
classifiers = [
"Operating System :: POSIX :: Linux",
"Environment :: Console",
"Programming Language :: Python :: 3",
"Topic :: Internet :: Log Analysis",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
]
dependencies = [
"matplotlib>=3.6"
]
[project.urls]
repository = "https://git.quintern.xyz/MatthiasQuintern/regina"
documentation = "https://quintern.xyz/en/software/regina.html"
[tool.setuptools.packages.find]
where = ["regina"]
[project.scripts]
regina = "regina.main:main"
regina-generate-config = "regina.utility.globals:write_config"

View File

@ -1,34 +0,0 @@
from matplotlib.pyplot import matplotlib
from setuptools import setup, find_packages
setup(
name="regina",
version="1.0",
description="Get analytics from nginx logs and visualize them",
author="Matthias Quintern",
author_email="matthias@quintern.xyz",
url="https://git.quintern.xyz/MatthiasQuintern/regina.git",
license="GPLv3",
packages=["regina"],
install_requires=["matplotlib"],
python_requires='>=3.10',
classifiers=[
"Operating System :: POSIX :: Linux",
"Environment :: Console",
"Programming Language :: Python :: 3",
"Topic :: Server",
"Topic :: Utilities",
],
# data_files=[("ip2nation", ["ip2nation.sql", "ip2nation.db"])],
# scripts=["bin/nicole"],
entry_points={
"console_scripts": [ "regina=regina.main:main" ],
},
)