Skip to content

Commit

Permalink
updated config files
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaoMaWHU committed Nov 11, 2024
1 parent 90c58d4 commit 46451b5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
14 changes: 2 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ authors = [
{name = "Ian Wang", email = "[email protected]"},
{name = "Gary Pavlis", email = "[email protected]"},
]
dynamic = ["dependencies", "scripts", "version"]
dynamic = ["dependencies", "scripts", "version", "optional-dependencies"]
requires-python = ">=3.8"

[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8", "wheel", "numpy"]
Expand All @@ -18,16 +19,5 @@ dependencies = {file = ["requirements.txt"]}
cmake-extension = "setup:CMakeExtension"
cmake-build = "setup:CMakeBuild"

[tool.poetry.dependencies]
python = "^3.8"

[tool.poetry.extras]
complete = ["numpy", "pandas", "scipy", "matplotlib"]

[tool.poetry.scripts]
mspass-dbclean = "mspasspy.db.script.dbclean:main"
mspass-dbverify = "mspasspy.db.script.dbverify:main"
mspass-normalize_mseed = "mspasspy.db.script.normalize_mseed:main"

[tool.setuptools_scm]

4 changes: 1 addition & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,4 @@ zarr
pandas==1.5.3
numba
multitaper
ipympl
seisbench==0.4.1; python_version < '3.9'
seisbench>0.4.1; python_version >= '3.9'
ipympl
13 changes: 12 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ def build_extension(self, ext):
],
}

complete_deps = ["numpy", "pandas", "scipy", "matplotlib"]
seisbench_deps = [
"seisbench==0.4.1; python_version < '3.9'",
"seisbench>0.4.1; python_version >= '3.9'",
]

setup(
name="mspasspy",
ext_modules=[CMakeExtension("mspasspy.ccore")],
Expand All @@ -98,5 +104,10 @@ def build_extension(self, ext):
),
package_data={"": ["*.yaml", "*.pf"]},
include_package_data=True,
install_requires=["pyyaml"],
install_requires=[],
python_requires=">=3.8",
extras_require={
"complete": complete_deps,
"seisbench": complete_deps + seisbench_deps,
}
)

0 comments on commit 46451b5

Please sign in to comment.