Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup.py and installable package #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*.pyc
*~
*.swp
.DS_Store
.cache
.pytest_cache
3 changes: 3 additions & 0 deletions odym/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .modules import ODYM_Classes as msc
from .modules import ODYM_Functions as msf
from .modules import dynamic_stock_model as dsm
Binary file removed odym/__pycache__/RECCM_Classes.cpython-35.pyc
Binary file not shown.
Binary file removed odym/__pycache__/RECCM_Functions.cpython-35.pyc
Binary file not shown.
Binary file not shown.
Binary file removed odym/modules/__pycache__/ODYM_Classes.cpython-35.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
34 changes: 34 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# -*- coding: utf-8 -*-
import os
from setuptools import setup

packages = []
root_dir = os.path.dirname(__file__)
if root_dir:
os.chdir(root_dir)

for dirpath, dirnames, filenames in os.walk('odym'):
# Ignore dirnames that start with '.'
if '__init__.py' in filenames:
pkg = dirpath.replace(os.path.sep, '.')
if os.path.altsep:
pkg = pkg.replace(os.path.altsep, '.')
packages.append(pkg)

setup(
name='odym',
version="0.0.1",
packages=packages,
author="IndEcol",
license=open('LICENSE').read(),
install_requires=[
'xlrd',
'xlwt',
'scipy',
'pandas',
'pypandoc',
],
url="https://github.com/IndEcol/ODYM",
long_description=open('README.md').read(),
description=('Open Dynamic Material Systems Model'),
)