forked from jgrassler/papercut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
75 lines (62 loc) · 2.67 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
def transfer_version():
'''Returns the version from the change log and sets it in the source tree'''
cl = open(path.join(here, 'CHANGES'))
version = cl.readline().split(':')[0]
cl.close()
version_source = open(path.join(here, 'papercut', 'version.py'), 'w')
version_source.write("__VERSION__ = '%s'\n" % version)
version_source.close()
return version
long_description = (
"Papercut is a news server written in 100% pure Python. It is intended to be "
"extensible to the point where people can develop their own storage plugins "
"to integrate the NNTP protocol into their applications. Out of the box it "
"comes with maildir and mbox storage, a simple forwarding NNTP proxy and "
"gateway plugins for various web forums. This version of papercut has been "
"forked from the original version found at <https://github.com/jpm/papercut> "
"(no longer actively maintained.")
setup(
name='papercut',
version=transfer_version(),
description='A pure python NNTP server extensible through plugins.',
long_description=long_description,
url='https://github.com/jgrassler/papercut',
author='Joao Prado Maia',
author_email='[email protected]',
maintainer='Johannes Grassler',
maintainer_email='[email protected]',
license='BSD',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Topic :: Communications :: Usenet News',
'Topic :: Communications :: Email',
'Topic :: Communications :: Email Clients (MUA)',
'Topic :: Communications :: Mailing List Servers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2.7',
],
keywords='nntp usenet gateway mail2news email maildir mbox',
packages=find_packages(),
install_requires=[# 'mysql-python', # for various web forum storage plugins and MySQL authentication
'pyaml', # for parsing config files
'm9dicts', # for deep merging configuration from multiple sources
'requests',
'beautifulsoup4',
],
entry_points={
'console_scripts': [
'papercut=papercut.cmd.papercut_nntp:main',
'papercut_config=papercut.cmd.config:main',
'papercut_healthcheck=papercut.cmd.check_health:main',
],
},
)