Skip to content

Commit

Permalink
Use commitizen for versionning (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
12rambau authored Jan 18, 2024
2 parents 551cc9f + cb1835d commit 6e0b698
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 18 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ repos:
- id: black
stages: [commit]

# - repo: "https://github.com/commitizen-tools/commitizen"
# rev: "v2.18.0"
# hooks:
# - id: commitizen
# stages: [commit-msg]
- repo: "https://github.com/commitizen-tools/commitizen"
rev: "v2.18.0"
hooks:
- id: commitizen
stages: [commit-msg]

# - repo: "https://github.com/kynan/nbstripout"
# rev: "0.5.0"
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
project = "geetools"
author = "Rodrigo E. Principe"
copyright = f"2017-{datetime.now().year}, {author}"
release = "0.6.14"
release = "1.0.0a0"

# -- General configuration -----------------------------------------------------
extensions = [
Expand Down
2 changes: 1 addition & 1 deletion geetools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
__title__ = "geetools"
__summary__ = "A set of useful tools to use with Google Earth Engine Python" "API"
__uri__ = "http://geetools.readthedocs.io"
__version__ = "0.6.14"
__version__ = "1.0.0a0"

__author__ = "Rodrigo E. Principe"
__email__ = "[email protected]"
Expand Down
42 changes: 31 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
[build-system]
requires = ["setuptools>=61.2", "wheel"]
build-backend = "setuptools.build_meta"
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "geetools"
version = "0.6.14"
version = "1.0.0a0"
description = "A collection of tools to work with Google Earth Engine Python API"
keywords = ["python", "geospatial", "remote-sensing", "google-earth-engine", "earthengine"]
keywords = [
"python",
"geospatial",
"remote-sensing",
"google-earth-engine",
"earthengine"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
Expand Down Expand Up @@ -39,7 +45,7 @@ file = "README.md"
content-type = "text/markdown"

[project.urls]
github = "https://github.com/gee-community/gee_tools"
Homepage = "https://github.com/gee-community/gee_tools"

[project.optional-dependencies]
"dev" = [
Expand Down Expand Up @@ -67,12 +73,16 @@ doc = [
"jupyter-sphinx",
]

[tool.setuptools]
include-package-data = true
[tool.hatch.build.targets.wheel]
only-include = ["geetools"]

[tool.setuptools.packages.find]
include = ["geetools*"]
exclude = ["tests*", "docs*"]
[tool.hatch.envs.default]
dependencies = [
"pre-commit",
"commitizen",
"nox"
]
post-install-commands = ["pre-commit install"]

[tool.licensecheck]
using = "PEP631:test;dev;doc"
Expand Down Expand Up @@ -101,4 +111,14 @@ convention = "google"
testpaths = "tests"

[tool.coverage.run]
source = ["geetools"]
source = ["geetools"]

[tool.commitizen]
tag_format = "v$major.$minor.$patch$prerelease"
update_changelog_on_bump = false
version = "1.0.0a0"
version_files = [
"pyproject.toml:version",
"geetools/__init__.py:__version__",
"docs/conf.py:release",
]

0 comments on commit 6e0b698

Please sign in to comment.