-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
74 lines (65 loc) · 2.15 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/usr/bin/env python
import os
from setuptools import setup, find_packages
def file_content(filename):
'''Load file content'''
with open(filename) as ifile:
return ifile.read()
def get_requirements():
'''Return content of pip requirement file and add udata'''
# unpinned udata requirement
reqs = ['udata']
reqs += file_content(os.path.join('requirements', 'install.pip')).splitlines()
return reqs
long_description = '\n'.join((
file_content('README.md'),
file_content('CHANGELOG.md'),
''
))
setup(
name='udata-front',
version=__import__('udata_front').__version__,
description=__import__('udata_front').__description__,
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/datagouv/udata-front',
author='Etalab',
author_email='[email protected]',
packages=find_packages(),
include_package_data=True,
python_requires='>=3.8',
install_requires=get_requirements(),
entry_points={
'udata.themes': [
'gouvfr = udata_front.theme.gouvfr',
],
'udata.models': [
'front = udata_front.models',
],
'udata.front': 'front = udata_front.frontend',
'udata.apis': [
'front_oembed = udata_front.views.oembed',
'front_api = udata_front.api',
],
'udata.harvesters': [
'maaf = udata_front.harvesters.maaf:MaafBackend',
],
},
license='LGPL',
zip_safe=False,
keywords='udata opendata portal etalab',
classifiers=[
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
"Environment :: Web Environment",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Topic :: System :: Software Distribution",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Topic :: Software Development :: Libraries :: Python Modules",
('License :: OSI Approved :: GNU Library or Lesser General Public '
'License (LGPL)'),
],
)