diff --git a/MANIFEST.in b/MANIFEST.in index 3718962..a406d1c 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -4,7 +4,6 @@ include requirements.txt include requirements_dev.txt include environment.yml include setup.py -include setup.cfg include pyproject.toml include LICENSE include CREDITS.md diff --git a/pyproject.toml b/pyproject.toml index 93ff89b..bdbc5f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,75 @@ [build-system] -requires = ["setuptools>=52.0", "wheel", "setuptools-scm"] +requires = ["setuptools>=61", "wheel", "setuptools-scm"] build-backend = "setuptools.build_meta" +[project] +name = "floatcsep" +description = "CSEP Floating Experiment application" +readme = { file = "README.md", content-type = "text/markdown" } +license = "BSD-3-Clause" +license-files = ["LICENSE"] +authors = [ + { name = "Pablo Iturrieta", email = "pciturri@gfz-potsdam.de" }, +] +requires-python = ">=3.9,<3.12" +classifiers = [ + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", +] +dependencies = [ + "numpy", + "dateparser", + "docker", + "gitpython", + "h5py", + "matplotlib", + "pandas", + "packaging", + "pycsep", + "pyyaml", + "requests", + "scipy", + "seaborn", + "tables", + "xmltodict", +] +dynamic = ["version"] + +[project.optional-dependencies] +dev = [ + "black", + "flake8", + "pytest", + "pytest-cov", + "sphinx", + "sphinx-autoapi", + "sphinx_design", + "sphinx-toolbox", + "sphinx-gallery", + "sphinx-rtd-theme", + "sphinx_copybutton", + "vcrpy", +] + +[project.urls] +Homepage = "https://github.com/cseptesting/floatcsep.git" + +[project.scripts] +floatcsep = "floatcsep.commands.main:floatcsep" + +[tool.setuptools] +zip-safe = false + +[tool.setuptools.packages.find] +include = ["floatcsep*"] + +[tool.setuptools_scm] +version_scheme = "post-release" +local_scheme = "no-local-version" +fallback_version = "0.0.0" + [tool.pytest.ini_options] norecursedirs = ["tutorials", "tests/artifacts"] testpaths = [ @@ -16,8 +84,3 @@ target-version = ["py39", "py310", "py311"] [tool.flake8] ignore = ["E203", "W503", "F401"] max-line-length = 96 - -[tool.setuptools_scm] -version_scheme = "post-release" -local_scheme = "no-local-version" -fallback_version = "0.2.0" \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 5c7b108..9fabfcb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,9 +4,9 @@ docker gitpython h5py matplotlib +packaging pandas pycsep -pyshp pyyaml requests scipy diff --git a/requirements_dev.txt b/requirements_dev.txt index be5e92a..9937920 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -1,28 +1,20 @@ numpy -cartopy black dateparser docker flake8 -geos gitpython h5py matplotlib -mercantile -obspy packaging pandas pycsep -pyproj -pyshp pytest pytest-cov pyyaml requests scipy seaborn -setuptools-scm -shapely sphinx sphinx-autoapi sphinx_design diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 83f16f2..0000000 --- a/setup.cfg +++ /dev/null @@ -1,91 +0,0 @@ -[metadata] -name = floatcsep -description = CSEP Floating Experiment application -long_description = file: README.md -long_description_content_type = text/markdown -author = Pablo Iturrieta -author_email = pciturri@gfz-potsdam.de -license = BSD 3-Clause License -version = attr: setuptools_scm.get_version -platforms = unix, linux, osx, win32 -classifiers = - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 - Programming Language :: Python :: 3.11 -url = https://github.com/cseptesting/floatcsep.git - -[options] -packages = - floatcsep - floatcsep.commands - floatcsep.infrastructure - floatcsep.postprocess - floatcsep.utils -install_requires = - numpy - dateparser - docker - gitpython - h5py - matplotlib - pandas - pycsep - pyshp - pyyaml - requests - scipy - seaborn - tables - xmltodict -python_requires = >=3.9,<3.12 -zip_safe = no - -[options.packages.find] -include = floatcsep* - -[options.extras_require] -dev = - numpy - cartopy - black - dateparser - docker - flake8 - geos - gitpython - h5py - matplotlib - mercantile - obspy - packaging - pandas - pycsep - pyproj - pyshp - pytest - pytest-cov - pyyaml - requests - scipy - seaborn - setuptools-scm - shapely - sphinx - sphinx-autoapi - sphinx_design - sphinx-toolbox - sphinx-gallery - sphinx-rtd-theme - sphinx_copybutton - tables - tox - vcrpy - xmltodict - -[options.entry_points] -console_scripts = - floatcsep = floatcsep.commands.main:floatcsep - -[flake8] -max-line-length = 96 \ No newline at end of file diff --git a/tutorials/case_g/pymock/requirements.txt b/tutorials/case_g/pymock/requirements.txt index ccedda3..6cdf7cd 100644 --- a/tutorials/case_g/pymock/requirements.txt +++ b/tutorials/case_g/pymock/requirements.txt @@ -1,3 +1,3 @@ -numpy==1.22.4 -matplotlib==3.4.3 -pytest==7.1.3 \ No newline at end of file +numpy +matplotlib +pytest \ No newline at end of file