-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
49 lines (42 loc) · 1.4 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
#!/usr/bin/env python
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
__author__ = 'Max Arnold <[email protected]>'
def get_version(path):
fn = os.path.join(
os.path.dirname(os.path.abspath(__file__)),
path, "__init__.py")
with open(fn) as f:
for line in f:
if '__version__' in line:
parts = line.split("=")
return parts[1].split("'")[1]
setup(
name='devpi-slack',
version=get_version('devpi_slack'),
# Package dependencies.
# Metadata for PyPI.
author='Max Arnold',
author_email='[email protected]',
license='BSD',
url='http://github.com/innoteq/devpi-slack',
keywords='devpi slack notification',
description='Devpi plugin for sending Slack channel notifications',
long_description=open(os.path.abspath(os.path.join(os.path.dirname(__file__), 'README.md')), 'r').read(),
classifiers=[
'Development Status :: 3 - Alpha',
"Intended Audience :: System Administrators",
'License :: OSI Approved :: BSD License',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Internet'
],
packages=['devpi_slack'],
entry_points={
'devpi_server': [
"devpi-slack = devpi_slack.main"]},
install_requires=['devpi-server>=4.0.0'],
platforms='any',
)