forked from robbievanleeuwen/section-properties
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
52 lines (42 loc) · 1.61 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
51
52
import sys
from setuptools import setup
from sectionproperties import __version__ as version
def description_text():
description = 'A python package for the analysis of arbitrary cross-sections using the'
description += ' finite element method.'
return description
def readme():
with open('README_pypi.rst') as f:
return f.read()
if sys.version_info[0] < 3 or sys.version_info[0] == 3 and sys.version_info[1] < 6:
sys.exit('Sorry, Python < 3.6 is not supported')
install_requires = ['numpy', 'scipy<1.6', 'matplotlib', 'shapely']
if not (sys.platform == 'win32' or sys.platform == 'cygwin'):
install_requires.append('pybind11')
install_requires.append('meshpy')
setup(
name='sectionproperties',
version=version,
description=description_text(),
long_description=readme(),
long_description_content_type='text/markdown',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Scientific/Engineering',
],
url='https://github.com/robbievanleeuwen/section-properties',
author='Robbie van Leeuwen',
author_email='robbie.vanleeuwen@gmail.com',
license='MIT',
packages=[
'sectionproperties', 'sectionproperties.analysis', 'sectionproperties.post',
'sectionproperties.pre', 'sectionproperties.examples', 'sectionproperties.tests'
],
install_requires=install_requires,
include_package_data=True,
zip_safe=False
)