Convert to proper python package
This commit is contained in:
+53
-15
@@ -1,20 +1,62 @@
|
||||
[build-system]
|
||||
requires = ["setuptools>=65.0", "wheel"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "plot-gallery"
|
||||
name = "gallery"
|
||||
version = "0.1.0"
|
||||
description = "Host your plots on a personal website"
|
||||
authors = [
|
||||
{ name = "K. Schmidt" }
|
||||
]
|
||||
description = "Scientific Gallery Generator - Create responsive HTML galleries from plot collections"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.9"
|
||||
dependencies = [
|
||||
"jinja2",
|
||||
"pyyaml",
|
||||
requires-python = ">=3.8"
|
||||
license = {text = "MIT"}
|
||||
authors = [
|
||||
{name = "K. Schmidt"},
|
||||
]
|
||||
keywords = [
|
||||
"gallery",
|
||||
"plots",
|
||||
"scientific-computing",
|
||||
"html-generation",
|
||||
"pdf-to-png",
|
||||
]
|
||||
classifiers = [
|
||||
"Development Status :: 3 - Alpha",
|
||||
"Intended Audience :: Science/Research",
|
||||
"License :: OSI Approved :: MIT License",
|
||||
"Operating System :: OS Independent",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.8",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Topic :: Scientific/Engineering :: Visualization",
|
||||
]
|
||||
|
||||
dependencies = [
|
||||
"Jinja2>=3.0.0",
|
||||
"PyYAML>=5.0",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
dev = [
|
||||
"pytest>=7.0",
|
||||
"black>=22.0",
|
||||
"pylint>=2.0",
|
||||
"mypy>=0.900",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
gallery = "gallery.cli:main"
|
||||
|
||||
[tool.setuptools]
|
||||
packages = ["gallery", "gallery.utils"]
|
||||
package-data = {gallery = ["templates/*", "assets/css/*", "assets/js/*"]}
|
||||
include-package-data = true
|
||||
|
||||
[tool.black]
|
||||
line-length = 120
|
||||
target-version = ['py39']
|
||||
target-version = ['py38']
|
||||
|
||||
[tool.isort]
|
||||
profile = "black"
|
||||
@@ -22,8 +64,4 @@ line_length = 120
|
||||
|
||||
[tool.flake8]
|
||||
max-line-length = 120
|
||||
extend-ignore = ["E203", "W503"]
|
||||
|
||||
[build-system]
|
||||
requires = ["setuptools>=61.0"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
extend-ignore = ["E203", "W503"]
|
||||
Reference in New Issue
Block a user