Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linking requirements.txt in .pyproject.toml #9

Merged
merged 2 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.0.7
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you using a different tool to create the VERSION file?

Copy link
Collaborator Author

@jfbourgon jfbourgon Aug 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the new VERSON file in the lists of file managed by bumpver

22 changes: 7 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ build-backend = "setuptools.build_meta"

[project]
name = "geo-inference"
version = "2.0.7"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was updated automatically using bumpver,

Copy link
Collaborator Author

@jfbourgon jfbourgon Aug 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it is still but it is now managed through a centralized VERSION file, however we could potentially argue on the plus-value of that centralized file since the version number is still present in other locations.
Here is an updated output of the bumpver command with the new conifg

bumpver update --minor --dry
INFO    - fetching tags from remote (to turn off use: -n / --no-fetch)
INFO    - Old Version: 2.0.7
INFO    - New Version: 2.1.0
--- VERSION
+++ VERSION
@@ -1 +1 @@
-2.0.7
+2.1.0
--- geo_inference/__init__.py
+++ geo_inference/__init__.py
@@ -1,5 +1,5 @@
 """Geo-inference: Extract features from high-resolution geospatial imagery using foundation models"""

 __author__ = "Victor Alhassan"
-__version__ = "2.0.7"
+__version__ = "2.1.0"

--- pyproject.toml
+++ pyproject.toml
@@ -37,7 +37,7 @@
 include = ["geo_inference*"]

 [tool.bumpver]
-current_version = "2.0.7"
+current_version = "2.1.0"
 version_pattern = "MAJOR.MINOR.PATCH"
 commit_message = "bump version {old_version} -> {new_version}"
 commit = true

description = "Extract features from geospatial imagery using deep learning models"
readme = "README.md"
authors = [{ name = "Victor Alhassan", email = "[email protected]" }]
Expand All @@ -18,19 +17,13 @@ classifiers = [
"Topic :: Scientific/Engineering :: GIS",
]
keywords = ["pytorch", "deep learning", "machine learning", "remote sensing", "satellite imagery", "earth observation", "geospatial"]
dependencies = [
"torchgeo>=0.3",
"affine>=2.3.0",
"colorlog==6.7.0",
"scipy>=1.11.2",
"pyyaml>=5.2",
"requests>=2.22.0",
"pynvml>=11.0",
"geopandas>=0.10.2"
]

dynamic = ["dependencies","version",]
requires-python = ">=3.9"

[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
version = {file = ["VERSION"]}

[project.optional-dependencies]
dev = ["black", "bumpver", "isort", "pip-tools", "pytest"]

Expand All @@ -52,8 +45,7 @@ tag = true
push = false

[tool.bumpver.file_patterns]
"VERSION" = ["{version}"]
"pyproject.toml" = [
'^version = "{version}"',
'^current_version = "{version}"',]
"geo_inference/__init__.py" = ["{version}"]

"geo_inference/__init__.py" = ["{version}"]
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pyyaml>=5.2
pynvml>=11.0
geopandas>=0.14.4
dask-image>=2024.5.3
dask>= 2024.6.2
dask>=2024.6.2
requests>=2.32.3
xarray>=2024.6.0
pystac>=1.10.1
Expand Down
Loading