-
Notifications
You must be signed in to change notification settings - Fork 345
/
setup.py
55 lines (46 loc) · 1.7 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
44
45
46
47
48
49
50
51
52
53
54
55
import os
import re
from setuptools import setup
def rel(*parts):
"""returns the relative path to a file wrt to the current directory"""
return os.path.abspath(os.path.join(os.path.dirname(__file__), *parts))
with open("README.md", "r") as handler:
README = handler.read()
with open(rel("webpack_loader", "__init__.py")) as handler:
INIT_PY = handler.read()
VERSION = re.findall(r"__version__ = \"([^\"]+)\"", INIT_PY)[0]
setup(
name="django-webpack-loader",
packages=[
"webpack_loader",
"webpack_loader/templatetags",
"webpack_loader/contrib",
],
version=VERSION,
license="MIT License",
description="Transparently use webpack with django",
long_description=README,
long_description_content_type="text/markdown",
author="Vinta Software",
author_email="[email protected]",
download_url="https://github.com/django-webpack/django-webpack-loader/tarball/{0}".format(
VERSION
),
url="https://github.com/django-webpack/django-webpack-loader", # use the URL to the github repo
keywords=["django", "webpack", "assets"], # arbitrary keywords
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Environment :: Web Environment",
"License :: OSI Approved :: MIT License",
],
)