-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
37 lines (29 loc) · 945 Bytes
/
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
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
import io
import re
from glob import glob
import os
from setuptools import find_packages
from setuptools import setup
setup_kwargs= dict(
name='obiwan',
version='1.2',
license='BSD',
description='Code to Monte Carlo fake sources through the Legacypipe pipeline',
long_description='',
author='Kaylan Burleigh, John Moustakas',
author_email='[email protected]',
url='https://github.com/legacysurvey/obiwan',
packages=find_packages('py/obiwan'),
package_dir={'': 'py/obiwan'},
py_modules=[os.path.splitext(os.path.basename(path))[0]
for path in glob('py/obiwan/*.py')],
)
with open('README.rst') as text:
setup_kwargs['long_description'] = text.read()
with open('LICENSE.rst') as text:
setup_kwargs['license'] = text.read()
setup(**setup_kwargs)