diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9cf9d448..ec869aeb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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" diff --git a/docs/conf.py b/docs/conf.py index c9b208df..332b5fa6 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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 = [ diff --git a/geetools/__init__.py b/geetools/__init__.py index e50e5ac8..90bfba1a 100644 --- a/geetools/__init__.py +++ b/geetools/__init__.py @@ -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__ = "fitoprincipe82@gmail.com" diff --git a/pyproject.toml b/pyproject.toml index 83f044d5..3da946a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", @@ -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" = [ @@ -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" @@ -101,4 +111,14 @@ convention = "google" testpaths = "tests" [tool.coverage.run] -source = ["geetools"] \ No newline at end of file +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", +]