Skip to content

Commit

Permalink
Add setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kmayerb committed May 31, 2020
1 parent 9d93f69 commit 977c975
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,21 @@ Keeping NumPy and Pandas attributes of python classes nice and tidy


The Zipdist parent class provides methods to classes for saving
NumPy arrays and pandas DataFrame object attributes in a single
NumPy arrays and Pandas DataFrame object attributes in a single
`.tar.gz` file and reloading those attributes back into a newinstance.

As an added benefit, the `.tar.gz` provides a tidy human-readable
record of your Python class attributes as .csv files,
which you can port on over to another platform like
R, Excel, Julia, or Matlab.

## Install

```
pip install zipdist
```


## Basic Example

``` python
Expand Down
29 changes: 29 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
from setuptools import setup, find_packages
PACKAGES = find_packages()

# read the contents of your README file
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()

opts = dict(name='zipdist',
maintainer='Koshlan Mayer-Blackwell',
maintainer_email='kmayerbl@fredhutch.org',
description='Tidy saving andeloading of Numpy and Pandas object attributes',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/kmayerb/zipdist',
license='MIT',
author='Koshlan Mayer-Blackwell',
author_email='kmayerbl@fredhutch.org',
version='0.1.0',
packages=PACKAGES
)

install_reqs = [
'numpy>=1.18.1',
'pandas>=0.24.2']

if __name__ == "__main__":
setup(**opts, install_requires=install_reqs)

0 comments on commit 977c975

Please sign in to comment.