From 18e006960bffe3a974dcb0f78446d5f43a24b34e Mon Sep 17 00:00:00 2001 From: RemingtonRohel <77300402+RemingtonRohel@users.noreply.github.com> Date: Thu, 23 Mar 2023 16:21:59 +0000 Subject: [PATCH] Move to pyproject.toml for installation. (#62) * Deleted setup.py, all configuration now in setup.cfg which pyproject.toml points to. --- pyproject.toml | 3 +++ setup.cfg | 31 ++++++++++++++++++++++++++++ setup.py | 56 -------------------------------------------------- 3 files changed, 34 insertions(+), 56 deletions(-) create mode 100644 pyproject.toml create mode 100644 setup.cfg delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..f007881 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools>=61.0.0"] +build-backend = "setuptools.build_meta" \ No newline at end of file diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..0e674e9 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,31 @@ +[metadata] +license_files = LICENSE +name = pydarnio +version = 1.2.1 +author = SuperDARN +long_description = file: README.md +long_description_content_type = text/markdown +description = Python library for reading and writing SuperDARN data +url = https://pydarnio.readthedocs.io/en/latest/ +classifiers = + Development Status :: 5 - Production/Stable + License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3) + Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.7 + +[options] +python_requires = >=3.6 +include_package_data = True +install_requires = + pyyaml + numpy + h5py>=3.3.0 + deepdish + pathlib2 + +[options.packages.find] +exclude = + test* + test_files* + docs* + build* \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index 7034341..0000000 --- a/setup.py +++ /dev/null @@ -1,56 +0,0 @@ -""" -Copyright 2018 SuperDARN Canada, University of Saskatchewan - -setup.py -2018-11-05 -To setup pyDARNio as a third party library. Include installing need libraries for -running the files. - -author: -Marina Schmidt - -Disclaimer: -pyDARNio is under the LGPL v3 license found in the root directory LICENSE.md -Everyone is permitted to copy and distribute verbatim copies of this license -document, but changing it is not allowed. - -This version of the GNU Lesser General Public License incorporates the terms -and conditions of version 3 of the GNU General Public License, -supplemented by the additional permissions listed below. - -""" - -from os import path -from setuptools import setup, find_packages -import sys -from subprocess import check_call -from setuptools.command.install import install, orig - -this_directory = path.abspath(path.dirname(__file__)) -with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -# Setup information -setup( - name="pydarnio", - version="1.2.1", - long_description=long_description, - long_description_content_type='text/markdown', - description="Python library for reading and writing SuperDARN data", - url='https://github.com/SuperDARN/pyDARNio.git', - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7'], - python_requires='>=3.6', - packages=find_packages(exclude=['docs', 'test']), - author="SuperDARN", - include_package_data=True, - setup_requires=['pyyaml', 'numpy', - 'h5py', 'deepdish', 'pathlib2'], - # pyyaml library install - install_requires=['pyyaml', 'numpy', - 'h5py', 'deepdish', 'pathlib2'] -)