Skip to content

Commit

Permalink
convert setup.py to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
cyschneck committed Aug 3, 2024
1 parent 72ce3fb commit 5863798
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 53 deletions.
65 changes: 65 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
[project]
name = "pydar"
version = "1.3.3"
authors = [
{ name="Cora Schneck", email="cyschneck@gmail.com" },
{ name="Una Schneck", email="ugschneck@gmail.com" }
]

description = "A Python package to access, download, view, and manipulate Cassini RADAR images"
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">=3.10"

dependencies = [
"beautifulsoup4",
"matplotlib",
"pandas",
"pdr",
"pyproj",
"rasterio",
"urllib3"
]

[project.optional-dependencies]
dev = [
"pytest",
"pre-commit"
]

classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Image Processing",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Scientific/Engineering :: Astronomy"
]

keywords = ["geophysics", "python", "astronomy", "nasa", "radar", "planetary-science", "cassini", "jpl"]

[project.urls]
Repository = "https://github.com/unaschneck/pydar"
Issues = "https://github.com/unaschneck/pydar/issues"

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

[tool.setuptools]
include-package-data = true

[tool.setuptools.packages.find]
where = ["."]
include = ["pydar"]
exclude = ["pydar/pytests*"]
56 changes: 3 additions & 53 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,55 +1,5 @@
# -*- coding: utf-8 -*-
# Python Legacy, transitioned to pyproject.toml

# Python Package Setup
from setuptools import setup, find_namespace_packages
from setuptools import setup

VERSION="1.3.3"
DESCRIPTION="A Python package to access, download, view, and manipulate Cassini RADAR images"

with open("README.md", "r") as f:
long_description_readme = f.read()

setup(
name="pydar",
version=VERSION,
description=DESCRIPTION,
long_description=long_description_readme,
long_description_content_type='text/markdown',
url="https://github.com/unaschneck/pydar",
download_url=f"https://github.com/unaschneck/pydar/archive/refs/tags/v{VERSION}.tar.gz",
author="Una Schneck (unaschneck), Cora Schneck (cyschneck)",
keywords=["geophysics", "python", "astronomy", "nasa", "radar", "planetary-science", "cassini", "jpl"],
license="MIT",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Image Processing",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Scientific/Engineering :: Astronomy"
],
packages=find_namespace_packages(include=['pydar', 'pydar.*'],
exclude=['pydar.pytests']),
include_package_data=True,
install_requires=[
"beautifulsoup4",
"matplotlib",
"pandas",
"pdr",
"pyproj",
"pytest",
"rasterio",
"urllib3"
],
python_requires='>=3.10'
)
setup()

0 comments on commit 5863798

Please sign in to comment.