forked from vitesh13/GrainSizeTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
38 lines (32 loc) · 1.11 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
#!/usr/bin/env python
import sys
import os
from setuptools import setup, find_packages
with open("README.md", "r") as fh:
long_description = fh.read()
with open('license.txt') as fh:
license = fh.read()
# Check for Python 3
v = sys.version_info
if (v[0] >= 3 and v[:2] < (3, 6)):
error = "ERROR: GrainSizeTools requires Python version 3.6 or above."
print(error, file=sys.stderr)
sys.exit(1)
sys.path.append(os.path.join(sys.path[0], 'grain_size_tools'))
setup(
name="grain_size_tools",
version="3.0.2",
author="Marco A. Lopez-Sanchez",
author_email="[email protected]",
description="A Python script for estimating grain size, grain size populations, and differential stress via piezometers from thin sections",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/marcoalopez/GrainSizeTools",
license=license,
packages=find_packages(),
classifiers=(
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache-2.0 License",
"Operating System :: OS Independent",
),
)