From 6f8a5f60207c4852ad4a510b86da977adfbe5cb6 Mon Sep 17 00:00:00 2001 From: JoschD <26184899+JoschD@users.noreply.github.com> Date: Mon, 28 Oct 2024 11:37:21 +0100 Subject: [PATCH] delete setup.py --- setup.cfg | 11 -------- setup.py | 84 ------------------------------------------------------- 2 files changed, 95 deletions(-) delete mode 100644 setup.cfg delete mode 100644 setup.py diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 3bc9174..0000000 --- a/setup.cfg +++ /dev/null @@ -1,11 +0,0 @@ -[tool:pytest] -; Helpful for pytest-debugging (leave commented out on commit): -;log_cli=true -;log_level=DEBUG - -[pycodestyle] -max-line-length = 100 -exclude = doc/conf.py - -[aliases] -test=pytest \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index 4e5986b..0000000 --- a/setup.py +++ /dev/null @@ -1,84 +0,0 @@ -import pathlib - -import setuptools - -# The directory containing this file -MODULE_NAME = "irnl_rdt_correction" -TOPLEVEL_DIR = pathlib.Path(__file__).parent.absolute() -ABOUT_FILE = TOPLEVEL_DIR / MODULE_NAME / "__init__.py" -README = TOPLEVEL_DIR / "README.md" - - -def about_package(init_posixpath: pathlib.Path) -> dict: - """ - Return package information defined with dunders in __init__.py as a dictionary, when - provided with a PosixPath to the __init__.py file. - """ - about_text: str = init_posixpath.read_text() - return { - entry.split(" = ")[0]: entry.split(" = ")[1].strip('"') - for entry in about_text.strip().split("\n") - if entry.startswith("__") - } - - -ABOUT_PYLHC = about_package(ABOUT_FILE) - -with README.open("r") as docs: - long_description = docs.read() - -# Dependencies for the module itself -DEPENDENCIES = [ - "numpy>=1.19", - "pandas>=1.0,!=1.2", # not 1.2 because of https://github.com/pandas-dev/pandas/issues/39872 - "tfs-pandas>=3.0.2", -] - -EXTRA_DEPENDENCIES = { - "test": [ - "pytest>=5.2", - "pytest-cov>=2.7", - "pytest-regressions>=2.0.0", - # "pytest-mpl>=0.11", - "hypothesis>=5.0.0", - "attrs>=19.2.0", - "h5py>=2.9.0", - "tables>=3.6.0", - ], - "doc": ["sphinx", "sphinx_rtd_theme"], -} -EXTRA_DEPENDENCIES.update( - {"all": [elem for list_ in EXTRA_DEPENDENCIES.values() for elem in list_]} -) - - -setuptools.setup( - name=ABOUT_PYLHC["__title__"], - version=ABOUT_PYLHC["__version__"], - description=ABOUT_PYLHC["__description__"], - long_description=long_description, - long_description_content_type="text/markdown", - author=ABOUT_PYLHC["__author__"], - author_email=ABOUT_PYLHC["__author_email__"], - url=ABOUT_PYLHC["__url__"], - python_requires=">=3.7", - license=ABOUT_PYLHC["__license__"], - classifiers=[ - "Intended Audience :: Science/Research", - "License :: OSI Approved :: MIT License", - "Natural Language :: English", - "Programming Language :: Python", - "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Topic :: Scientific/Engineering :: Physics", - "Topic :: Scientific/Engineering :: Visualization", - ], - packages=setuptools.find_packages(exclude=["tests*", "doc"]), - include_package_data=True, - install_requires=DEPENDENCIES, - tests_require=EXTRA_DEPENDENCIES["test"], - extras_require=EXTRA_DEPENDENCIES, -)