Skip to content

Commit

Permalink
Merge pull request #22 from Open-ET/pyproject_toml
Browse files Browse the repository at this point in the history
Switch project over to using a pyproject.toml (instead of setup.py)
  • Loading branch information
cgmorton authored Sep 20, 2023
2 parents c6c5a93 + 4824d03 commit d4dee5e
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 96 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Set up Python 3.9
Expand All @@ -16,8 +14,7 @@ jobs:
- 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.

21 changes: 0 additions & 21 deletions environment.yml

This file was deleted.

7 changes: 6 additions & 1 deletion openet/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@
from . import utils
from . import wrs2

__version__ = '0.1.1'
# try:
# from importlib import metadata
# except ImportError: # for Python<3.8
# import importlib_metadata as metadata

# __version__ = metadata.version(__package__ or __name__)
38 changes: 38 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[project]
name = "openet-core"
version = "0.1.2"
authors = [
{ name="Charles Morton", email="charles.morton@dri.edu" },
]
description = "OpenET Core Components"
readme = "README.rst"
requires-python = ">=3.7"
keywords = ["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.310",
"python-dateutil",
"importlib-metadata; python_version <= '3.7'",
]

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

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

[project.optional-dependencies]
test = [
"pytest",
]
2 changes: 0 additions & 2 deletions requirements.txt

This file was deleted.

5 changes: 0 additions & 5 deletions requirements_test.txt

This file was deleted.

2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

56 changes: 0 additions & 56 deletions setup.py

This file was deleted.

0 comments on commit d4dee5e

Please sign in to comment.