chapeau/setup.py

47 wiersze
1.3 KiB
Python
Czysty Zwykły widok Historia

2018-08-06 21:17:40 +00:00
import os
2018-08-11 16:01:27 +00:00
import re
from io import open
from setuptools import setup
2018-08-11 16:01:27 +00:00
# much of this was cribbed from django_rest_framework
2018-08-06 21:17:40 +00:00
here = os.path.abspath(os.path.dirname(__file__))
2018-08-11 16:01:27 +00:00
README = open('README.md', 'r', encoding='utf-8').read()
def get_version(package):
"""
Return package version as listed in `__version__` in `init.py`.
"""
init_py = open(os.path.join(package, '__init__.py')).read()
return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
version = get_version('chapeau')
2018-08-06 21:17:40 +00:00
setup(
name='chapeau',
2018-08-11 16:01:27 +00:00
version=version,
url='https://gitlab.com/marnanel/chapeau/',
2018-08-11 16:01:27 +00:00
license='GPL-2',
2019-10-08 14:35:51 +00:00
description='ActivityPub social media daemon',
2018-08-11 16:01:27 +00:00
long_description=README,
long_description_content_type='text/markdown',
author='Marnanel Thurman',
author_email='marnanel@thurman.org.uk',
packages=['chapeau'],
2018-08-11 16:01:27 +00:00
include_package_data=True,
install_requires=[],
python_requires=">=3.0",
zip_safe=False, # for now, anyway
2018-08-11 16:01:27 +00:00
classifiers=[
'Environment :: No Input/Output (Daemon)',
'Framework :: Django',
'Topic :: Communications :: Conferencing',
],
entry_points = {
'console_scripts': [
'chapeau=chapeau.kepi.command_line:main',
],
},
2018-08-11 16:01:27 +00:00
)