Skip to content

Commit be94326

Browse files
authored
Merge pull request #72 from nschloe/setup.cfg
setup.cfg
2 parents 0bbbcda + 8b6b1ab commit be94326

File tree

5 files changed

+56
-29
lines changed

5 files changed

+56
-29
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![Build Status](https://travis-ci.org/andrenarchy/krypy.png?branch=master)](https://travis-ci.org/andrenarchy/krypy)
44
[![Documentation Status](https://readthedocs.org/projects/krypy/badge/?version=latest)](http://krypy.readthedocs.org/en/latest/?badge=latest)
55
[![doi](https://zenodo.org/badge/doi/10.5281/zenodo.10283.png)](https://zenodo.org/record/10283)
6+
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/krypy.svg)](https://pypi.org/pypi/krypy/)
67
[![Pypi version](https://img.shields.io/pypi/v/krypy.svg)](https://pypi.python.org/pypi/krypy)
78
[![Pypi downloads](https://img.shields.io/pypi/dm/krypy.svg)](https://pypi.python.org/pypi/krypy)
89

krypy/__about__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
try:
2+
# Python 3.8
3+
from importlib import metadata
4+
except ImportError:
5+
import importlib_metadata as metadata
6+
7+
try:
8+
__version__ = metadata.version("krypy")
9+
except Exception:
10+
__version__ = "unknown"

krypy/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from . import linsys, deflation, recycling, utils
22
from ._convenience import cg, minres, gmres
3+
from .__about__ import __version__
34

4-
__all__ = ['linsys', 'deflation', 'recycling', 'utils', 'cg', 'minres', 'gmres']
5-
__version__ = '2.1.7'
5+
__all__ = [
6+
'linsys', 'deflation', 'recycling', 'utils', 'cg', 'minres', 'gmres', '__version__'
7+
]

setup.cfg

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[metadata]
2+
name = krypy
3+
version = 2.2.0
4+
author = André Gaul
5+
6+
description = Krylov subspace methods for linear systems
7+
url = https://github.com/andrenarchy/krypy
8+
project_urls =
9+
Code=https://github.com/andrenarchy/krypy
10+
Issues=https://github.com/andrenarchy/krypy/issues
11+
long_description = file: README.md
12+
long_description_content_type = text/markdown
13+
license = MIT
14+
platforms = any
15+
classifiers =
16+
Development Status :: 4 - Beta
17+
Intended Audience :: Science/Research
18+
License :: OSI Approved :: MIT License
19+
Operating System :: OS Independent
20+
Programming Language :: Python
21+
Programming Language :: Python :: 3
22+
Programming Language :: Python :: 3.6
23+
Programming Language :: Python :: 3.7
24+
Programming Language :: Python :: 3.8
25+
Topic :: Scientific/Engineering
26+
Topic :: Scientific/Engineering :: Mathematics
27+
28+
[options]
29+
packages = find:
30+
# importlib_metadata can be removed when we support Python 3.8+ only
31+
install_requires =
32+
importlib_metadata
33+
numpy >= 1.11
34+
scipy >= 0.17
35+
python_requires = >=3.6
36+
setup_requires =
37+
setuptools>=42
38+
wheel

setup.py

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,4 @@
1-
# Use setuptools for these commands (they don't work well or at all
2-
# with distutils). For normal builds use distutils.
3-
try:
4-
from setuptools import setup
5-
except ImportError:
6-
from distutils.core import setup
1+
from setuptools import setup
72

8-
9-
setup(name='krypy',
10-
packages=['krypy', 'krypy.recycling'],
11-
version='2.1.7',
12-
description='Krylov subspace methods for linear systems',
13-
long_description=open('README.md').read(),
14-
author='André Gaul',
15-
author_email='[email protected]',
16-
url='https://github.com/andrenarchy/krypy',
17-
install_requires=['numpy (>=1.11)', 'scipy (>=0.17)'],
18-
python_requires=">=3.6",
19-
classifiers=[
20-
'Development Status :: 4 - Beta',
21-
'Intended Audience :: Science/Research',
22-
'License :: OSI Approved :: MIT License',
23-
'Operating System :: OS Independent',
24-
'Programming Language :: Python',
25-
'Programming Language :: Python :: 3',
26-
'Topic :: Scientific/Engineering :: Mathematics'
27-
],
28-
)
3+
if __name__ == "__main__":
4+
setup()

0 commit comments

Comments
 (0)