Skip to content

Commit

Permalink
build: Update packaging to meet PEP517
Browse files Browse the repository at this point in the history
  • Loading branch information
lsetiawan committed Aug 22, 2024
1 parent 09a5328 commit 961554a
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 60 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ htmlcov/*
scripts/upload/test*.txt
.idea/
scripts/download/data/*
*.egg-info

# Version
_version.py
71 changes: 71 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"

[project]
name = "snowexsql"
dynamic = ["version"]
description = "SQL Database software for SnowEx data"
keywords = ["snowex", "sql", "database", "snow"]
readme = "README.rst"
requires-python = ">=3.8"
classifiers = [
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10'
]
dependencies = [
"utm>=0.5.0,<1.0",
"geoalchemy2>=0.6,<1.0",
"geopandas>=0.7,<2.0",
"psycopg2-binary>=2.9.0,<2.10.0",
"rasterio>=1.1.5",
"SQLAlchemy >= 2.0.0",
]

[project.optional-dependencies]
dev = [
"pip==23.3",
"pre-commit==3.8.0",
"coverage==5.5",
"pytest==6.2.4",
"pytest-cov==2.12.1",
"sphinx-autobuild<=2024.5",
]
docs = [
"ipython>7.0,<9.0",
"nbconvert>=6.4.3,<6.5.0",
"nbsphinx==0.9.4",
"pandoc==1.0.2",
"plotly==5.22.0",
"sphinx-gallery==0.9.0",
"sphinx>=7.1,<7.4",
"sphinxcontrib-apidoc==0.3.0",
"jupyter-book>=1.0.2,<1.1",
"pyyaml<6.1"
]
all = ["snowexsql[dev,docs]"]

[project.license]
file = "LICENSE"

[project.urls]
Homepage = "https://github.com/SnowEx/snowexsql"
Documentation = "https://snowexsql.readthedocs.io"
Repository = "https://github.com/SnowEx/snowexsql.git"
Issues = "https://github.com/SnowEx/snowexsql/issues"

[tool.hatch.version]
source = "vcs"

[tool.hatch.build.hooks.vcs]
version-file = "snowexsql/_version.py"

[tool.hatch.version.raw-options]
local_scheme = "no-local-version"

[tool.hatch.build.targets.sdist]
exclude = ["/tests"]
6 changes: 0 additions & 6 deletions requirements.txt

This file was deleted.

12 changes: 0 additions & 12 deletions requirements_dev.txt

This file was deleted.

41 changes: 0 additions & 41 deletions setup.py

This file was deleted.

4 changes: 3 additions & 1 deletion snowexsql/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Top-level package for snowexsql."""

from ._version import __version__ # noqa

__author__ = """Micah Johnson"""
__version__ = '0.5.0'
__version__ = __version__

0 comments on commit 961554a

Please sign in to comment.