Skip to content

Commit

Permalink
version 0.1.1 (automatically detects plaftforms and python versions)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuminjie committed Feb 1, 2019
1 parent 76e15e1 commit 87c7411
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 12 deletions.
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

5 changes: 0 additions & 5 deletions openseespy/README.rst

This file was deleted.

2 changes: 2 additions & 0 deletions openseespy/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# version
from openseespy.version import *
38 changes: 38 additions & 0 deletions openseespy/opensees/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import sys

# only work for 64 bit system
if sys.maxsize < 2**31:
raise RuntimeError('64 bit system is required')

# python 3.6 is required
if sys.version_info[0] < 3:
raise RuntimeError('Python version >= 3.6 is required')

if sys.version_info[1] < 6:
raise RuntimeError('Python version >= 3.6 is required')

# platform dependent
if sys.platform.startswith('linux'):

from openseespy.opensees.linux.opensees import *

elif sys.platform.startswith('win'):

if sys.version_info[1] == 6:

from openseespy.opensees.winpy36.opensees import *

else:

from openseespy.opensees.winpy37.opensees import *

elif sys.platform.startswith('darwin'):

raise RuntimeError('Mac OS X is not supported yet')


else:

raise RuntimeError(sys.platform+' is not supported yet')


File renamed without changes.
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion openseespy/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version_num = "0.0.7"
version = "0.1.1"
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,24 @@

setuptools.setup(
name="openseespy",
version=about['version_num'],
version=about['version'],
author="Minjie Zhu",
author_email="zhum@oregonstate.edu",
description="A OpenSeesPy package",
long_description=long_description,
url="https://github.com/openseespy/openseespy",
packages=setuptools.find_packages(),
package_data={
'openseespy': ['opensees.so','opensees.pyd','LICENSE.rst'],
'': ['opensees.so','opensees.pyd','LICENSE.rst'],
},
license = 'LICENSE.rst',
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
'Operating System :: POSIX :: Linux',
'Operating System :: Microsoft :: Windows'
],
platforms = ["Linux",'Windows'],
python_requires='>=3.6',
py_modules=['opensees'],
zip_safe=False
)

0 comments on commit 87c7411

Please sign in to comment.