Skip to content

Commit

Permalink
- use toml for package management
Browse files Browse the repository at this point in the history
- remove setup.py file
- bump-my-version to be used so reverting back
  • Loading branch information
biplovbhandari committed Apr 1, 2024
1 parent 5ca2b81 commit f8a6799
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 34 deletions.
71 changes: 71 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
[project]
name = "servir-aces"
version = "0.0.1"
dynamic = [
"dependencies",
]
description = "Agricultural Classification and Estimation Service (ACES)"
readme = "README.md"
requires-python = ">=3.9"
keywords = [
"remote sensing",
"agriculture",
"machine learning",
"deep learning",
]
license = {text = "GNU General Public License v3.0"}
authors = [
{name = "Biplov Bhandari", email = "[email protected]"},
]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3",
"Natural Language :: English",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]

[tool]
[tool.setuptools.packages.find]
include = ["aces*"]
exclude = ["docs*"]

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


[tool.distutils.bdist_wheel]
universal = true


[tool.bumpversion]
current_version = "0.0.1"
commit = true
tag = true

[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'

[[tool.bumpversion.files]]
filename = "aces/__init__.py"
search = '__version__ = "{current_version}"'
replace = '__version__ = "{new_version}"'


[tool.flake8]
exclude = [
"docs",
]
max-line-length = 88


[project.urls]
Homepage = "https://github.com/SERVIR/servir-aces"

[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
numpy
tensorflow>=2.9.3
apache-beam>=2.38.0
earthengine-api
python-dotenv>=1.0.0
matplotlib
2 changes: 2 additions & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ mkdocstrings-crystal
mkdocstrings-python-legacy
pygments
pymdown-extensions

# apache-beam>=2.38.0
34 changes: 0 additions & 34 deletions setup.py

This file was deleted.

0 comments on commit f8a6799

Please sign in to comment.