Skip to content

Commit 81c116b

Browse files
committed
Added last pypi required files. PEP8 formatted using yapf.
1 parent 4968124 commit 81c116b

4 files changed

Lines changed: 46 additions & 4 deletions

File tree

flopymetascript/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
# coding=utf-8
2+
from .version import __version__
3+
4+
__name__ = 'flopymetascript'
5+
__author__ = 'Bas des Tombe'

flopymetascript/version.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# coding=utf-8
2+
major = 0
3+
minor = 2
4+
micro = 0
5+
6+
__version__ = '{:d}.{:d}.{:d}'.format(major, minor, micro)

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[metadata]
2+
description - file = README.md

setup.py

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
from setuptools import setup
55

6+
from flopymetascript import __version__, __name__, __author__
7+
68
if sys.version_info[0] != 3 or sys.version_info[1] < 4:
79
print("""
810
This script requires Python version 3.4.
@@ -13,17 +15,45 @@
1315
""")
1416
sys.exit(1)
1517

18+
try:
19+
import pypandoc
20+
21+
long_description = pypandoc.convert('README.md', 'rst')
22+
long_description = long_description.replace("\r", "")
23+
24+
except OSError as e:
25+
import io
26+
27+
# pandoc is not installed, fallback to using raw contents
28+
with io.open('README.md', encoding="utf-8") as f:
29+
long_description = f.read()
30+
1631
setup(
17-
name='flopymetascript',
32+
name=__name__,
1833
description=
1934
'Converts a zip with MODFLOW input files to a zip containing Flopy script',
20-
version='0.2.0',
35+
long_description=long_description,
36+
version=__version__,
2137
packages=['flopymetascript'],
2238
license='MIT',
23-
author='Bas des Tombe',
39+
author=__author__,
2440
author_email='bdestombe@gmail.com',
2541
url='https://github.com/bdestombe/flopymetascript',
26-
install_requires=['numpy>=1.12', 'nbformat>=4.3', 'nbconvert>=5.1', 'flopy>=3.2', 'yapf'],
42+
download_url=
43+
'https://github.com/bdestombe/flopymetascript/archive/0.2.0.tar.gz',
44+
keywords=['flopy', 'groundwater', 'hydrology'],
45+
install_requires=[
46+
'numpy>=1.12', 'nbformat>=4.3', 'nbconvert>=5.1', 'flopy>=3.2', 'yapf'
47+
],
48+
platforms='Windows, Mac OS-X',
49+
classifiers=[
50+
"Development Status :: 4 - Beta",
51+
"Topic :: Scientific/Engineering",
52+
"Programming Language :: Python :: 3 :: Only",
53+
"License :: OSI Approved :: BSD License",
54+
"Natural Language :: English",
55+
"License :: OSI Approved :: MIT License",
56+
],
2757
entry_points={
2858
"console_scripts":
2959
['flopymetascript = flopymetascript.flopymetascript:main']

0 commit comments

Comments
 (0)