diff --git a/micasense/__init__.py b/micasense/__init__.py index 8b1652cd..0d17cc70 100644 --- a/micasense/__init__.py +++ b/micasense/__init__.py @@ -23,4 +23,4 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ -__version__ = '0.0.1' \ No newline at end of file +__version__ = '0.1.0' \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..7f0f3076 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,37 @@ +[build-system] +requires = ["setuptools>=61.0", "setuptools-scm"] +build-backend = "setuptools.build_meta" + +[project] +name = "micasense" +description = "Micasense Image Processing" +dynamic = ["version"] +authors = [ + { name = "MicaSense, Inc.", email = "github@micasense.com" } +] +license = { text = "MIT" } +readme = "README.md" +requires-python = ">=3.7" +dependencies = [ + "requests", + "numpy", + "opencv-python", + "gdal", + "pysolar", + "matplotlib", + "scikit-image", + "packaging", + "pyexiftool", + "pytz", + "pyzbar" +] + +[tool.setuptools.packages.find] +where = ["."] +include = ["micasense"] + +[tool.setuptools.dynamic] +version = { attr = "micasense.__version__" } + +[project.urls] +Homepage = "https://github.com/micasense/imageprocessing" diff --git a/setup.py b/setup.py deleted file mode 100644 index 66bb0589..00000000 --- a/setup.py +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -import codecs -from setuptools import setup, find_packages -import os - -# Parse the version from the main __init__.py -with open('micasense/__init__.py') as f: - for line in f: - if line.find("__version__") >= 0: - version = line.split("=")[1].strip() - version = version.strip('"') - version = version.strip("'") - continue - -setup(name='micasense', - version=version, - description=u"Micasense Image Processing", - author=u"MicaSense, Inc.", - author_email='github@micasense.com', - url='https://github.com/micasense/imageprocessing', - license='MIT', - packages=find_packages(), - install_requires=[ - 'requests', - 'numpy', - 'opencv-python', - 'gdal', - 'pysolar', - 'matplotlib', - 'scikit-image', - 'packaging', - 'pyexiftool', - 'pytz', - 'pyzbar' - ]) -