Skip to content
Snippets Groups Projects
setup.cfg 2.39 KiB
Newer Older
# -*- coding: utf-8 -*-
Jan Caron's avatar
Jan Caron committed
# setup.cfg
# :copyright: Copyright 2020 Jan Caron
Jan Caron's avatar
Jan Caron committed

# CONFIGURATION FOR SETUP.PY:

[metadata]
Jan Caron's avatar
Jan Caron committed
name = empyre
Jan Caron's avatar
Jan Caron committed
version = 0.1.0
Jan Caron's avatar
Jan Caron committed
author = Jan Caron
author-email = j.caron@fz-juelich.de
Jan Caron's avatar
Jan Caron committed
description = Electron Microscopy Python Reconstruction
long-description = file: README.rst
Jan Caron's avatar
Jan Caron committed
url = https://iffgit.fz-juelich.de/empyre/empyre
Jan Caron's avatar
Jan Caron committed
license = GPLv3
classifiers =
Jan Caron's avatar
Jan Caron committed
    Development Status :: 3 - Alpha
Jan Caron's avatar
Jan Caron committed
    Intended Audience :: Developers
    Intended Audience :: Science/Research
    License :: OSI Approved :: GNU General Public License v3 (GPLv3)
    Programming Language :: Python :: 3.7
    Topic :: Scientific/Engineering
Jan Caron's avatar
Jan Caron committed
    Operating System :: OS Independent
keywords =
    Electron Microscopy
    Inverse Problem Solving
    Model-based Reconstrution
Jan Caron's avatar
Jan Caron committed

[options]
zip_safe = False
include_package_data = True
Jan Caron's avatar
Jan Caron committed
package_dir =
    =src
Jan Caron's avatar
Jan Caron committed
packages = find:
python_requires = >=3.7
setup_requires =
    setuptools
install_requires =
    numpy >= 1.17
    matplotlib >= 3
Jan Caron's avatar
Jan Caron committed
    scikit-image
Jan Caron's avatar
Jan Caron committed
    tqdm
    scipy
    Pillow

[options.packages.find]
where = src

Jan Caron's avatar
Jan Caron committed
[options.extras_require]
io =
    hyperspy
Jan Caron's avatar
Jan Caron committed
fftw =
    pyfftw
colors =
    cmocean
Jan Caron's avatar
Jan Caron committed
all =
    pyfftw
    cmocean
tests =
    pyroma
    coverage
    pytest
    pytest-cov
    pytest-flake8
    pytest-runner
# TODO: pip install .[io] is not working because hyperspy depends on trait which has no wheels on PyPI at the moment...
# TODO: See https://github.com/hyperspy/hyperspy/issues/2315 and https://github.com/enthought/traits/issues/357
# TODO: Add hyperspy back as soon (if?) this is resolved... Until then: install hyperspy with conda!
Jan Caron's avatar
Jan Caron committed

# CONFIGURATION FOR TESTING:
[aliases]
test = pytest

[coverage:run]
branch = True
Jan Caron's avatar
Jan Caron committed
source = src/empyre
omit =
[flake8]
max-line-length = 120
ignore =
Jan Caron's avatar
Jan Caron committed
    E402  # module import not at top of file
    E124  # closing bracket does not match visual indentation
    E125  # continuation line with same indent as next logical line
    E226  # missing whitespace around arithmetic operator
    W503  # line break before binary operator
    W504  # line break after binary operator
Jan Caron's avatar
Jan Caron committed
    E741  # do not use variables named ‘l’, ‘O’, or ‘I’
Jan Caron's avatar
Jan Caron committed
per-file-ignores =
    */__init__.py: F401, F403, F405, F821
    # F401: module imported but unused
    # F403: 'from module import *' used; unable to detect undefined names
    # F405: Name may be undefined, or defined from star imports: module
    # F821: undefined name 'name'