Migrate to hatch

pull/1/head
Raoul Snyman 2022-12-09 20:50:19 -07:00
parent d6286ac3e4
commit 309b37745b
5 changed files with 67 additions and 43 deletions

2
.flake8 100644
View File

@ -0,0 +1,2 @@
[flake8]
max-line-length = 120

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ __pycache__
*.py[co]
*.sqlite
data/
dist/

64
pyproject.toml 100644
View File

@ -0,0 +1,64 @@
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "StatusForce"
description = "Simple status page for system status"
readme = "README.rst"
license = "MIT"
requires-python = ">=3.10"
authors = [
{ name = "Raoul Snyman", email = "raoul@libertytechforce.com" },
]
keywords = [
"status",
"website",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Utilities",
]
dependencies = [
"Flask",
"Flask-Admin",
"Flask-Login",
"Flask-SQLAlchemy",
"psycopg2-binary",
"pymysql",
"greenlet<0.5,>=0.4.5"
]
dynamic = ["version"]
[project.urls]
Homepage = "https://libertytechforce.com"
Issues = "https://git.libertytechforce.com/libertytechforce/statusforce/issues"
Source = "https://git.libertytechforce.com/libertytechforce/statusforce"
[project.optional-dependencies]
tests = [
"pytest",
"pytest-faker",
"pytest-flask"
]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.targets.sdist]
include = [
"/statusforce",
]
[tool.hatch.build.targets.wheel]
include = [
"statusforce",
]

View File

@ -1,37 +0,0 @@
[metadata]
name = StatusForce
version = 0.0.1
author = Raoul Snyman
author_email = raoul@libertytechforce.com
description = Simple status page for system status
long_description = file:README.rst
long_description_content_type = text/x-rst
url = https://libertytechforce.com
license = MIT
classifiers =
Development Status :: 3 - Alpha
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Operating System :: POSIX
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Topic :: Utilities
keywords = website, status
[options]
py_modules = statusforce
python_requires = >=3.7
install_requires =
Flask
Flask-Admin
Flask-SQLAlchemy
Flask-Login
[bdist_wheel]
universal = 1
[flake8]
max-line-length = 120

View File

@ -1,6 +0,0 @@
"""
The statusforce package
"""
from setuptools import setup
setup()