-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
33 lines (28 loc) · 1.14 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
import os
import re
import setuptools
def get_version(package: str) -> str:
"""Return package version as listed in __version__ variable at __init__.py"""
init_py = open(os.path.join(package, '__init__.py')).read()
return re.search(r"__version__\s*=\s*['\"]([^'\"]+)['\"]", init_py).group(1)
with open("README.rst", "r", encoding='utf-8') as fh:
long_description = fh.read()
setuptools.setup(
name='django-dramatiq-charts',
version=get_version('django_dramatiq_charts'),
packages=setuptools.find_packages(exclude=['django_dramatiq_charts.tests']),
include_package_data=True,
url='https://github.com/ikvk/django_dramatiq_charts',
license='Apache-2.0',
long_description=long_description,
long_description_content_type="text/x-rst",
author='Vladimir Kaukin',
author_email='KaukinVK@ya.ru',
description='Charts for django_dramatic',
keywords=['django_dramatiq', 'chart', 'diagram', 'graph', 'dashboard', 'python3', 'python'],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
)