diff --git a/environment.yml b/environment.yml index 51de15c..c8d4f9e 100644 --- a/environment.yml +++ b/environment.yml @@ -1,7 +1,13 @@ name: pysep channels: - - conda-forge - - defaults + - conda-forge + - defaults dependencies: - - obspy - - cartopy + - pip + - obspy + - cartopy + - pyyaml + - pip: + - git+https://github.com/krischer/llnl_db_client.git + - -e . + diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..b6e7f10 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,34 @@ +[build-system] +requires = ["setuptools>=61.0.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "pysep" +version = "0.2.0" +description = "Python Seismogram Extraction and Processing" +readme = "README.md" +requires-python = ">=3.7" +license = {file = "LICENSE.txt"} +authors = [ + {name = "adjTomo Dev Team"}, + {email = "adjtomo@gmail.com"} +] +dependencies = [ + "obspy", + "cartopy", + "pyyaml", + "llnl_db_client @ git+https://github.com/krischer/llnl_db_client.git" +] + +[project.optional-dependencies] +test = ["pytest"] +dev = ["pytest", "ipython", "ipdb"] + +[project.urls] +homepage = "https://github.com/adjtomo/" +documentation = "https://github.com/adjtomo/pysep/wiki" +repository = "https://github.com/adjtomo/pysep" + +[project.scripts] +pysep = "pysep.pysep:main" +recsec = "pysep.recsec:main" diff --git a/pysep/recsec.py b/pysep/recsec.py index a5ff5b5..bef2a11 100755 --- a/pysep/recsec.py +++ b/pysep/recsec.py @@ -1887,7 +1887,7 @@ def parse_args(): """ parser = argparse.ArgumentParser( description="Input basic record section params", - formatter_class=argparse.RawTextHelpFormatter, + # formatter_class=argparse.RawTextHelpFormatter, ) parser.add_argument("-p", "--pysep_path", default="./", type=str, nargs="?", diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 3723eca..0000000 --- a/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -obspy>=1.2.2 -pyyaml>=5.4 -cartopy>=0.20.2 -pytest>=7.1.2 -pandas>=1.4.2 diff --git a/setup.py b/setup.py deleted file mode 100644 index 7a73e7d..0000000 --- a/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -import os -from setuptools import setup, find_packages - - -install_requires = [ - "obspy>=1.2.2", - "cartopy>=0.20.2", - "pyyaml>=5.4", - "llnl_db_client @ git+https://github.com/krischer/llnl_db_client.git", - ] - -setup(name="pysep", - version='0.2.0', - description="Python Seismogram Extraction and Processing", - url="http://github.com/adjtomo/pysep", - author='adjTomo Dev Team', - license='GPL-3.0', - python_requires=">=3.7", - packages=find_packages(), - install_requires=install_requires, - entry_points={"console_scripts": ["pysep=pysep.pysep:main", - "recsec=pysep.recsec:main"] - }, - zip_safe=False - )