setup.cfg 3.23 KB
Newer Older
dboe's avatar
dboe committed
1
[bumpversion]
dboe's avatar
dboe committed
2
current_version = 0.3.3
dboe's avatar
dboe committed
3
4
5
6
7
8
9
10
tag = True
commit = True
message = release-v{new_version}

[bumpversion:file:tfields/__init__.py]
search = __version__ = '{current_version}'
replace = {new_version}

dboe's avatar
dboe committed
11
12
13
14
15
[bumpversion:file:setup.py]
search = version='{current_version}'
replace = {new_version}

[bumpversion:file:docs/cookiecutter_input.json]
dboe's avatar
dboe committed
16
search = 'package_version': '{current_version}'
dboe's avatar
dboe committed
17
18
replace = {new_version}

19
20
21
22
23
24
[metadata]
name = tfields
url = https://gitlab.mpcdf.mpg.de/dboe/tfields
author = Daniel Böckenhoff
author_email = dboe@ipp.mpg.de
classifiers = 
dboe's avatar
dboe committed
25
26
27
28
29
30
31
32
	Development Status :: 3 - Alpha
	License :: OSI Approved :: MIT License
	Programming Language :: Python
	Programming Language :: Python :: 3
	Programming Language :: Python :: 3.5
	Programming Language :: Python :: 3.6
	Programming Language :: Python :: 3.7
	Programming Language :: Python :: 3.8
33
34
35
36
37
38
license = MIT License
license_files = LICENSE.rst
description = Tensors, tensor fields, graphs, mesh manipulation, CAD and more on the basis of numpy.ndarrays. All objects keep track of their coordinate system. Symbolic math operations work for object manipulation.
long_description = file: README.rst, LICENSE.rst
long_description_content_type = text/x-rst
keywords = tensors, tensor-fields, graphs, mesh, numpy, math
dboe's avatar
dboe committed
39
40
41
project_urls = 
	Documentation = https://tfields.readthedocs.io
	Source = https://gitlab.mpcdf.mpg.de/dboe/tfields
dboe's avatar
dboe committed
42
43
44
45

[options]
python_requires = >=3.0
packages = find:
dboe's avatar
dboe committed
46
47
48
49
50
51
install_requires = 
	six
	numpy
	sympy
	scipy
	pathlib
dboe's avatar
dboe committed
52
	rna>=0.6.1
dboe's avatar
dboe committed
53
54
55
56
	sortedcontainers
tests_require = 
	doctest
	unittest
dboe's avatar
dboe committed
57
58
59
60

[options.packages.find]
exclude = 
	tests*
dboe's avatar
dboe committed
61
	performance*
dboe's avatar
dboe committed
62

63
[options.extras_require]
dboe's avatar
dboe committed
64
65
66
all = 
	%(dev)s
dev = 
dboe's avatar
dboe committed
67
	%(docs)s
dboe's avatar
dboe committed
68
	%(test)s
dboe's avatar
dboe committed
69
	bumpversion  # for incrementing the version
dboe's avatar
dboe committed
70
	twine  # for publishing
dboe's avatar
dboe committed
71
72
73
	sphinx  # for documentation
	pre-commit  # https://pre-commit.com/ for hook managment
	pre-commit-hooks
dboe's avatar
dboe committed
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
	cookiecutter_project_upgrader
docs = 
	sphinx>=2.2.0  # requires templatedir option in sphinx-apidoc
	sphinx_rtd_theme>=0.4.3
test = 
	flake8
	pylint
	pytest
	pytest-cov
	coverage
	pytest-shutil
	pytest-virtualenv
	pytest-fixture-config
	pytest-xdist
	
	matplotlib
dboe's avatar
dboe committed
90

91
92
93
94
95
[bdist_wheel]
universal = 1

[coverage:report]
show_missing = true
dboe's avatar
dboe committed
96
97
98
exclude_lines = 
	pragma: no cover
	if False
dboe's avatar
dboe committed
99
100
101

[coverage:run]
omit = 
dboe's avatar
dboe committed
102
	tfields/plotting/*.py
103
104
105
106

[flake8]
max-line-length = 99
doctests = True
dboe's avatar
dboe committed
107
exclude = .git, .eggs, __pycache__, docs, dist, venv, .tox
dboe's avatar
dboe committed
108
109
110
111
ignore = E203 W503 W504  # wrong flake defaults: see https://github.com/psf/black/issues/315, https://github.com/psf/black/issues/43

[pylint.]
ignore = setup.py
112
113
114
115

[build_sphinx]
builder = html,man
all-files = 1
dboe's avatar
dboe committed
116
117
118
119
120
121
122
123
124
125
126
build-dir = docs/_build
source-dir = docs

[tool:pytest]
addopts = --doctest-modules
junit_family = xunit2

[tox:tox]
minversion = 3.7
skip_missing_interpreters = true
envlist = 
dboe's avatar
dboe committed
127
	py{38}
dboe's avatar
dboe committed
128
recreate = true
dboe's avatar
dboe committed
129
usedevelop = true
dboe's avatar
dboe committed
130
131
132
133
134
135
136
137

[gh-actions]
python = 
	3.8: py38

[testenv]
description = run test suite under {basepython}
deps = 
dboe's avatar
dboe committed
138
	{[options]install_requires}
dboe's avatar
dboe committed
139
140
	{[options.extras_require]test}
extras = test
dboe's avatar
dboe committed
141
whitelist_externals = rm
dboe's avatar
dboe committed
142
143
144
commands_pre = 
	rm -rf **/__pycache__
	rm -rf **/*.pyc
dboe's avatar
dboe committed
145
146
147
148
149
150
151
152
153
154
commands = 
	pytest \
	--cov={[metadata]name} \
	--ignore=docs \
	--junitxml=report/junit.xml

[testenv:flake8]
commands = flake8 {[metadata]name}/ tests/
extras = testing
description = run flake8 under {basepython}