Skip to content

Commit

Permalink
113/packaging (#191)
Browse files Browse the repository at this point in the history
Co-authored-by: Charles Stern <[email protected]>
  • Loading branch information
atmorling and cisaacstern authored Jul 1, 2024
1 parent 7da45ea commit 07fe22b
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 88 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-rc"
branches:
- "master"

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ share/python-wheels/
.installed.cfg
*.egg
MANIFEST
_version.py

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down
4 changes: 0 additions & 4 deletions MANIFEST.in

This file was deleted.

1 change: 0 additions & 1 deletion ecoscope/version.py

This file was deleted.

82 changes: 80 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,67 @@
[build-system]
requires = ["setuptools", "wheel", "cython"]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]

[project]
name="ecoscope"
dynamic = ["version"]
description="Standard Analytical Reporting Framework for Conservation"
readme = "README.rst"
authors = [
{ name = "Jake Wall", email = "[email protected]" }
]
license = {file = "LICENSE"}
classifiers=[
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]
dependencies = [
"affine",
"astroplan",
"backoff",
"datashader",
"earthengine-api",
"earthranger-client",
"folium",
"geopandas<=0.14.2",
"igraph",
"ipywidgets",
"kaleido",
"mapclassify",
"matplotlib",
"networkx",
"numba",
"plotly",
"pyarrow",
"pyproj",
"rasterio",
"scipy",
"scikit-image",
"scikit-learn",
"selenium",
"tqdm",
"xyzservices",
]

[project.urls]
Homepage = "https://ecoscope.io"
Repository = "https://github.com/wildlife-dynamics/ecoscope"
Tracker = "https://github.com/wildlife-dynamics/ecoscope/issues"

[project.optional-dependencies]
test = [
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-reportlog",
]

[tool.pytest.ini_options]
testpaths = "tests"
Expand Down Expand Up @@ -30,4 +92,20 @@ exclude = '''

[tool.coverage.run]
source = ['ecoscope']
omit = ['ecoscope/contrib/*']
omit = ['ecoscope/contrib/*']

[tool.setuptools]
packages=[
"ecoscope",
"ecoscope.analysis",
"ecoscope.analysis.UD",
"ecoscope.base",
"ecoscope.contrib",
"ecoscope.io",
"ecoscope.mapping",
"ecoscope.plotting",
]

[tool.setuptools_scm]
write_to = "ecoscope/_version.py"
write_to_template = "__version__ = '{version}'"
81 changes: 0 additions & 81 deletions setup.py

This file was deleted.

0 comments on commit 07fe22b

Please sign in to comment.