Skip to content

Commit

Permalink
build: setup semantic-release
Browse files Browse the repository at this point in the history
changelog
  • Loading branch information
beatreichenbach committed Apr 22, 2023
1 parent 79724cf commit 1e9915e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 17 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!--next-version-placeholder-->
File renamed without changes.
19 changes: 6 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
[project]
name = "realflare"
description = "Physically-Based Lens Flare Tool"
Expand Down Expand Up @@ -27,17 +26,12 @@ classifiers = [

[project.optional-dependencies]
dev = [
'mkdocs-material'
"mkdocs-material",
"python-semantic-release"
]

#[project.scripts]
#realflare-cli = "realflare:main_cli"

#[project.gui-scripts]
#realflare-gui = "realflare:main"

[build-system]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[tool.setuptools.packages.find]
Expand All @@ -46,10 +40,9 @@ include = ["realflare*"]
[tool.setuptools.package-data]
realflare = ["**/*.cl", "**/*.png", "**/*.json", "**/*.yml"]

[tool.setuptools_scm]
write_to = "realflare/_version.py"
version_scheme = "python-simplified-semver"

[tool.pytest.ini_options]
log_cli = true
log_cli_level = "DEBUG"

[tool.semantic_release]
version_variable = "realflare/__init__.py:__version__"
5 changes: 1 addition & 4 deletions realflare/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import os

try:
from ._version import __version__
except ImportError:
pass
__version__ = '0.0.0'

os.environ['OPENCV_IO_ENABLE_OPENEXR'] = '1'

0 comments on commit 1e9915e

Please sign in to comment.