mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-24 03:04:05 +01:00
Merge branch 'wip/pypi-prep' into HEAD
This commit is contained in:
commit
8b59d7d7a2
25
setup.py
25
setup.py
@ -11,7 +11,6 @@ except ImportError:
|
|||||||
raise ImportError("Please install Setuptools and try again.")
|
raise ImportError("Please install Setuptools and try again.")
|
||||||
from codecs import open
|
from codecs import open
|
||||||
import subprocess
|
import subprocess
|
||||||
from os import path
|
|
||||||
|
|
||||||
# Get version from Git tags.
|
# Get version from Git tags.
|
||||||
with open('VERSION', encoding='utf-8') as f:
|
with open('VERSION', encoding='utf-8') as f:
|
||||||
@ -29,11 +28,13 @@ with open('__init__.py', 'w') as f:
|
|||||||
f.write('__version__ = %r\n' % version)
|
f.write('__version__ = %r\n' % version)
|
||||||
f.write('real_version = %r\n' % real_version)
|
f.write('real_version = %r\n' % real_version)
|
||||||
|
|
||||||
curdir = path.abspath(path.dirname(__file__))
|
# Convert Markdown to RST for PyPI
|
||||||
|
try:
|
||||||
# FIXME: Convert markdown to RST
|
import pypandoc
|
||||||
with open(path.join(curdir, 'README.md'), encoding='utf-8') as f:
|
long_description = pypandoc.convert('README.md', 'rst')
|
||||||
long_description = f.read()
|
except ImportError:
|
||||||
|
print('WARNING: PyPandoc not available; skipping writing long description.')
|
||||||
|
long_description = None
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='pylinkirc',
|
name='pylinkirc',
|
||||||
@ -53,20 +54,26 @@ setup(
|
|||||||
|
|
||||||
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
|
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Development Status :: 3 - Alpha',
|
'Development Status :: 4 - Beta',
|
||||||
|
|
||||||
'Intended Audience :: Developers',
|
'Intended Audience :: Developers',
|
||||||
'Intended Audience :: System Administrators',
|
'Intended Audience :: System Administrators',
|
||||||
'Topic :: Communications :: Chat :: Internet Relay Chat',
|
'Topic :: Communications :: Chat :: Internet Relay Chat',
|
||||||
'Topic :: Software Development :: Libraries :: Python Modules',
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
||||||
'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
|
'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
|
||||||
|
'Environment :: Console',
|
||||||
|
|
||||||
'Programming Language :: Python :: 3',
|
'Operating System :: OS Independent',
|
||||||
|
'Operating System :: POSIX',
|
||||||
|
|
||||||
|
'Natural Language :: English',
|
||||||
|
|
||||||
|
'Programming Language :: Python :: 3 :: Only',
|
||||||
'Programming Language :: Python :: 3.4',
|
'Programming Language :: Python :: 3.4',
|
||||||
'Programming Language :: Python :: 3.5',
|
'Programming Language :: Python :: 3.5',
|
||||||
],
|
],
|
||||||
|
|
||||||
keywords='IRC services chat',
|
keywords='IRC services relay',
|
||||||
install_requires=['pyyaml', 'ircmatch'],
|
install_requires=['pyyaml', 'ircmatch'],
|
||||||
|
|
||||||
# Folders (packages of code)
|
# Folders (packages of code)
|
||||||
|
Loading…
Reference in New Issue
Block a user