You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.4 KiB
59 lines
1.4 KiB
#!/usr/bin/env python3
|
|
|
|
import codecs
|
|
import os
|
|
import re
|
|
|
|
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.")
|
|
|
|
|
|
with open('README.md', 'r') as handle:
|
|
long_description = handle.read()
|
|
|
|
|
|
setup(
|
|
name='etherpump',
|
|
version=find_version('etherpump', '__init__.py'),
|
|
author='Varia members',
|
|
author_email='info@varia.zone',
|
|
packages=find_packages(),
|
|
zip_safe=False,
|
|
platforms='any',
|
|
include_package_data=True,
|
|
scripts=['bin/etherpump'],
|
|
url='https://git.vvvvvvaria.org/varia/etherpump',
|
|
license='GPLv3',
|
|
description='Etherpump: pumping text from etherpads into publications',
|
|
long_description=long_description,
|
|
long_description_content_type='text/markdown',
|
|
install_requires=[
|
|
"asks",
|
|
"html5lib",
|
|
"jinja2",
|
|
"pypandoc",
|
|
"python-dateutil",
|
|
"requests",
|
|
"trio",
|
|
],
|
|
python_requires=">=3.5",
|
|
classifiers=[
|
|
'Programming Language :: Python :: 3',
|
|
'Environment :: Console',
|
|
],
|
|
)
|
|
|