Switch to src layout

This commit is contained in:
Simon Conseil
2022-08-15 18:51:39 +02:00
parent ffb42efcd5
commit 2c34776dd6
138 changed files with 21 additions and 6 deletions

2
.gitignore vendored
View File

@@ -15,7 +15,7 @@ dist/
docs/_build
htmlcov/
output/
sigal/version.py
src/sigal/version.py
tags
venv
ffmpeg2pass-0.log

View File

@@ -3,7 +3,7 @@ requires = ["setuptools>=64", "wheel", "setuptools_scm[toml]>=3.4"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "sigal/version.py"
write_to = "src/sigal/version.py"
[tool.black]
line-length = 88

View File

@@ -8,7 +8,7 @@ author_email = contact@saimon.org
url = https://github.com/saimn/sigal
keywords = gallery, static, generator, image, video, galleria
license = MIT License
license_file = LICENSE
license_files = LICENSE
classifiers =
Development Status :: 5 - Production/Stable
Environment :: Console
@@ -25,7 +25,7 @@ classifiers =
[options]
zip_safe = False
include_package_data = True
packages = find:
packages = find_namespace:
python_requires = >=3.8
install_requires =
blinker
@@ -42,8 +42,12 @@ tests = pytest; pytest-cov
docs = Sphinx; alabaster; cryptography
[options.packages.find]
exclude =
tests
where = src
[options.package_data]
sigal =
plugins/**
themes/**
[options.entry_points]
console_scripts =
@@ -64,6 +68,17 @@ ignore = E203,W503,E731
profile = black
known_third_party=blinker,click,jinja2,markdown,natsort,PIL,Pillow,pilkit
[coverage:run]
source = sigal
omit =
/tmp/*
tests/*
[coverage:paths]
source =
src/sigal
*/.tox/*/lib/python*/site-packages/sigal
[coverage:report]
exclude_lines =
pragma: no cover

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

Before

Width:  |  Height:  |  Size: 215 B

After

Width:  |  Height:  |  Size: 215 B

View File

Before

Width:  |  Height:  |  Size: 139 B

After

Width:  |  Height:  |  Size: 139 B

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 696 B

After

Width:  |  Height:  |  Size: 696 B

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 618 B

After

Width:  |  Height:  |  Size: 618 B

View File

Before

Width:  |  Height:  |  Size: 95 B

After

Width:  |  Height:  |  Size: 95 B

View File

Before

Width:  |  Height:  |  Size: 444 B

After

Width:  |  Height:  |  Size: 444 B

Some files were not shown because too many files have changed in this diff Show More