-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
49 lines (43 loc) · 1.84 KB
/
setup.py
File metadata and controls
49 lines (43 loc) · 1.84 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
from setuptools import setup, find_packages
import os, re
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# auto-updating version
def get_property(prop, project):
result = re.search(r'{}\s*=\s*[\'"]([^\'"]*)[\'"]'.format(prop),
open(project + '/__init__.py').read())
return result.group(1)
# parse requirements.txt file for dependency install
def get_requires():
reqs = []
for line in open('requirements.txt', 'r').readlines():
reqs.append(line)
return reqs
setup(
name = "autopimms",
version = get_property('__version__', 'autopimms'),
description = ("Upload tool for WebPIMMS designed for multiple queries."),
long_description = read('README.rst'),
url = "https://pypi.org/project/AutoPIMMS/",
keywords = 'X-ray Astronomy WebPIMMS',
author = "Elizabeth G. Lincoln, Rosa W. Everson, Christopher M. Carroll",
author_email = "lincoln@astro.gsu.edu, rosa@ucsc.edu, c.m.carroll715@gmail.com",
license = "MIT",
packages = find_packages(),
include_package_data = True,
install_requires=get_requires(),
classifiers=[
# Indicate who your project is intended for
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Astronomy',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: MIT License',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3',
],
)