-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
38 lines (33 loc) · 1.18 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
"""
Jinja templates for Digital Marketplace apps.
"""
import re
import ast
import glob
import os
from setuptools import setup, find_packages
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('digitalmarketplace_frontend_jinja/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(f.read().decode('utf-8')).group(1)))
components = []
directories = glob.glob("digitalmarketplace_frontend_jinja/**/**/*.html", recursive=True)
for directory in directories:
components.append(os.path.relpath(os.path.dirname(directory), "digitalmarketplace_frontend_jinja") + "/*.html")
setup(
name='ccs-digitalmarketplace-frontend-jinja',
version=version,
url='https://github.com/tim-s-ccs/ccs-digitalmarketplace-frontend-jinja',
license='MIT',
author='CCS',
description='Jinja templates for Digital Marketplace apps.',
long_description=__doc__,
packages=find_packages(),
package_data={'digitalmarketplace_frontend_jinja': components},
include_package_data=True,
install_requires=[
'jinja2>3',
'ccs-govuk-frontend-jinja>=1.2,<2',
'ccs-digitalmarketplace-utils>=67.0.0',
],
python_requires=">=3.10,<3.13",
)