forked from danihodovic/django-webhook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·43 lines (36 loc) · 1.21 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
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env python
from pathlib import Path
import os
import re
from setuptools import find_packages, setup
def get_version(*file_paths):
filename = os.path.join(os.path.dirname(__file__), *file_paths)
version_file = Path(filename).read_text("utf-8")
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.")
version = get_version("webhooks", "__init__.py")
readme = Path("README.md").read_text("utf-8")
setup(
name="django-webhooks",
version=version,
description="""Django Webhooks""",
long_description=readme,
author="Dani Hodovic",
author_email="[email protected]",
url="https://github.com/danihodovic/django-webhooks",
packages=find_packages(),
include_package_data=True,
install_requires=[],
license="MIT",
keywords="django,webhooks,api",
classifiers=[
"Development Status :: 3 - Alpha",
"Framework :: Django :: 2.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
],
)