forked from awickert/gFlex
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
50 lines (42 loc) · 1.41 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#! /usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from setuptools.command.install import install
import os
# This is for upload to PyPI
# Should not be necessary on most computers
import re
VERSIONFILE="gflex/_version.py"
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
__version__ = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
try:
long_description = open('README.txt').read()
except:
long_description = "see README.md"
setup(
name = "gFlex",
version = __version__,
packages = find_packages(exclude="tests"),
entry_points = {
'console_scripts': ['gflex = gflex:main']
},
package_data = {
'': ['*.md']
},
# metadata for upload to PyPI
author = "Andrew D. Wickert",
author_email = "awickert@umn.edu",
description = "One- and two-dimensional plate bending, designed for Earth's lithosphere",
license = "GPL v3",
keywords = ['geophysics', 'geology', 'geodynamics', 'lithosphere', 'isostasy', 'GRASS GIS'],
classifiers = [],
url = ["https://github.com/awickert/gFlex", "http://csdms.colorado.edu/wiki/Model:gFlex"],
download_url = "https://github.com/awickert/gFlex/tarball/v"+__version__,
long_description = long_description,
)