-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
51 lines (43 loc) · 1.32 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import os
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
APP_NAME = "AirbrakePy"
VERSION = "1.0.0b2"
SOURCE_URL = "http://github.com/pulseenergy/airbrakepy"
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def writeVersion():
metadata_py = open('airbrakepy/metadata.py', 'w')
content = """
# GENERATED BY setup.py DO NOT EDIT OR CHECKIN
app_name='%(app_name)s'
version='%(version)s'
source_url='%(source_url)s'
"""
try:
metadata_py.write(content % {'app_name': APP_NAME, 'version': VERSION, 'source_url': SOURCE_URL})
finally:
metadata_py.close()
writeVersion()
setup(
name="AirbrakePy",
version=VERSION,
packages=find_packages(),
install_requires=["xmlbuilder >= 0.9, < 1.0"],
author="Tim Meighen",
author_email="tim at pulseenergy dot com",
maintainer="Pulse Energy",
description="Airbrake notifier for Python logging framework",
long_description=read("README.md"),
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: System :: Logging",
"License :: OSI Approved :: Apache Software License",
],
license="Apache License 2.0",
keywords="airbrake python logging",
url=SOURCE_URL,
download_url=SOURCE_URL,
zip_safe=True
)