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

added setup.py #10

Open
wants to merge 6 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
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ python:
os:
- linux
# command to install dependencies
install:
install:
- pip install -r requirements.txt
- pip install --upgrade pytest
- pip install --upgrade pylint
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ underlying event outcome distribution as a mixure of some fixed \( K \)
parametric distributions. The parameters of these mixture distributions as
well as the mixing weights are modelled using Neural Networks.


Installation
------------

$ pip install git+https://github.com/autonlab/DeepSurvivalMachines.git

#### Usage Example
>>> from dsm import DeepSurvivalMachines
>>> model = DeepSurvivalMachines()
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ torch>=1.0.0
numpy>=0.14
pandas>=1.0.0
tqdm>=4.0.0
scikit-learn>=0.18
scikit-learn>=0.18
46 changes: 46 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import os

from setuptools import setup, find_packages


def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()


here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()

with open(os.path.join(here, "requirements.txt"), encoding="utf-8") as f:
all_reqs = f.read().split("\n")

install_requires = [x.strip() for x in all_reqs]

setup(
name="dsm",
version="0.0.1",
maintainer="Chirag Nagpal",
maintainer_email="chiragn@cs.cmu.edu",
url="https://github.com/autonlab/DeepSurvivalMachines",
description=(
"Python package dsm provides an API to train the Deep Survival Machines and associated models for problems in survival analysis."
),
long_description=long_description,
long_description_content_type="text/markdown",
license="GPLv3+",
packages=find_packages(exclude=["tests*"]),
package_data = {'dsm': ['datasets/*']},
keywords=["dsm"],
python_requires=">=3.6",
install_requires=install_requires,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3",
],
include_package_data=True,
)