Skip to content

Commit

Permalink
Merge pull request #8 from Open-ET/pyproject_toml
Browse files Browse the repository at this point in the history
Switching from setup.py to pyproject.toml
  • Loading branch information
cgmorton authored Oct 24, 2023
2 parents 38f6afd + 546baf5 commit 3ebacf4
Show file tree
Hide file tree
Showing 8 changed files with 58 additions and 74 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,23 @@ name: build

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.7
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_test.txt
pip install .[test]
pip install --upgrade pytest
- name: Lint with flake8
run: |
Expand Down
5 changes: 0 additions & 5 deletions MANIFEST.in

This file was deleted.

10 changes: 9 additions & 1 deletion openet/refetgee/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# try:
# from importlib import metadata
# except ImportError: # for Python<3.8
# import importlib_metadata as metadata

from .daily import Daily
from .hourly import Hourly

__version__ = '0.6.2'
# # __version__ = metadata.version(__package__ or __name__)
# __version__ = metadata.version(__package__.replace('.', '-') or __name__.replace('.', '-'))
# # __version__ = metadata.version('openet-refet-gee')

44 changes: 44 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
[project]
name = "openet-refet-gee"
version = "0.6.3"
authors = [
{ name = "Charles Morton", email = "[email protected]" },
]
# maintainers = [
# { name = "Charles Morton", email = "[email protected]" }
# ]
description = "Google Earth Engine based ASCE Standardized Reference Evapotranspiration Functions"
readme = "README.rst"
requires-python = ">=3.7"
keywords = ["RefET", "OpenET", "Earth Engine", "evapotranspiration"]
license = {file = "LICENSE.txt"}
# license = {text = "Apache-2.0"}
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]
dependencies = [
"earthengine-api>=0.1.364",
"importlib-metadata; python_version <= '3.7'",
]

[project.urls]
"Homepage" = "https://github.com/Open-ET/openet-refet-gee"
# "Repository" = "https://github.com/Open-ET/openet-refet-gee.git"
# "Documentation" = "https://github.com/Open-ET/openet-refet-gee"
# "Bug Tracker" = "https://github.com/Open-ET/openet-refet-gee"
# "Changelog" = "https://github.com/Open-ET/openet-refet-gee"

[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project.optional-dependencies]
test = [
"pytest", "pandas", "pytz"
]

[tool.setuptools.packages.find]
# include = ["openet*"]
exclude = ["docs*", "examples*"]
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

3 changes: 0 additions & 3 deletions requirements_test.txt

This file was deleted.

2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

54 changes: 0 additions & 54 deletions setup.py

This file was deleted.

0 comments on commit 3ebacf4

Please sign in to comment.