etherpump/setup.py

61 lines
1.5 KiB
Python
Raw Normal View History

2018-01-12 14:42:55 +01:00
#!/usr/bin/env python3
2019-09-25 19:09:55 +02:00
import codecs
import os
import re
2019-09-25 21:46:27 +02:00
from setuptools import find_packages, setup
def read(*parts):
current_file = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(current_file, *parts), 'r') as fp:
return fp.read()
def find_version(*file_paths):
version_file = read(*file_paths)
version_match = re.search(
r"^__VERSION__ = ['\"]([^'\"]*)['\"]", version_file, re.M
)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
2019-09-27 23:14:30 +02:00
with open('README.md', 'r') as handle:
long_description = handle.read()
2019-09-25 19:09:55 +02:00
setup(
name='etherpump',
version=find_version('etherpump', '__init__.py'),
author='Varia members',
author_email='info@varia.zone',
2019-09-25 21:46:27 +02:00
packages=find_packages(),
zip_safe=False,
platforms='any',
include_package_data=True,
scripts=['bin/etherpump'],
url='https://git.vvvvvvaria.org/varia/etherpump',
2019-09-25 21:46:27 +02:00
license='GPLv3',
description='Etherpump: pumping text from etherpads into publications',
long_description=long_description,
long_description_content_type='text/markdown',
2019-10-07 20:08:05 +02:00
install_requires=[
"asks",
2019-10-07 20:08:05 +02:00
"html5lib",
"jinja2",
"pypandoc",
"python-dateutil",
"requests",
"tqdm",
"trio",
2019-10-07 20:08:05 +02:00
],
python_requires=">=3.5",
2019-09-25 21:46:27 +02:00
classifiers=[
'Programming Language :: Python :: 3',
'Environment :: Console',
],
)