Add extras_require "all" and tests_require
-'''Setup script for lasio'''
+"""Setup script for lasio"""
from setuptools import setup
import os
-__version__ = '0.25.0'
-CLASSIFIERS = [
+setup(
+ name="lasio",
+ use_scm_version=True,
+ setup_requires=["setuptools_scm"],
+ description="Read/write well data from Log ASCII Standard (LAS) files",
+ long_description=open("README.md", "r").read(),
+ long_description_content_type="text/markdown",
+ url="https://github.com/kinverarity1/lasio",
+ author="Kent Inverarity",
+ author_email="kinverarity@hotmail.com",
+ license="MIT",
+ classifiers=(
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Customer Service",
@@ -28,29 +38,17 @@ CLASSIFIERS = [
"Topic :: Scientific/Engineering",
"Topic :: System :: Filesystems",
"Topic :: Scientific/Engineering :: Information Analysis",
- ]
-
-
-setup(name='lasio',
- version=__version__,
- description="Read/write well data from Log ASCII Standard (LAS) files",
- long_description=open("README.md", "r").read(),
- long_description_content_type="text/markdown",
- url="https://github.com/kinverarity1/lasio",
- author="Kent Inverarity",
- author_email="kinverarity@hotmail.com",
- license="MIT",
- classifiers=CLASSIFIERS,
+ ),
keywords="science geophysics io",
- packages=["lasio", ],
- install_requires=[
- "numpy",
- ],
+ packages=("lasio",),
+ install_requires=("numpy",),
+ extras_require={"all": ("pandas", "cchardet", "openpyxl", "argparse")},
+ tests_require=("pytest>=3.6", "pytest-cov", "coverage", "codecov", "pathlib"),
entry_points={
- 'console_scripts': [
- 'las2excel = lasio.excel:main',
- 'las2excelbulk = lasio.excel:main_bulk',
- 'lasio = lasio:version',
- ],
- }
+ "console_scripts": (
+ "las2excel = lasio.excel:main",
+ "las2excelbulk = lasio.excel:main_bulk",
+ "lasio = lasio:version",
+ )
+ },
)
