forked from ierror/django-js-reverse
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·64 lines (57 loc) · 2.03 KB
/
setup.py
File metadata and controls
executable file
·64 lines (57 loc) · 2.03 KB
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
import os
from setuptools import find_packages, setup
def read(*parts):
filename = os.path.join(os.path.dirname(__file__), *parts)
with codecs.open(filename, encoding='utf-8') as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
setup(
name='django-js-reverse',
version=get_version("django_js_reverse/__init__.py"),
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Framework :: Django',
'Framework :: Django :: 5.2',
'Framework :: Django :: 6.0',
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: 3.14',
],
license='MIT',
description='Javascript url handling for Django that doesn\'t hurt.',
long_description=read('README.rst') + '\n\n' + read('CHANGELOG.rst'),
long_description_content_type='text/x-rst',
author='Bernhard Janetzki',
author_email='boerni@gmail.com',
maintainer='Vinta Software',
maintainer_email='contact@vinta.com.br',
url='https://github.com/vintasoftware/django-js-reverse',
project_urls={
'Source': 'https://github.com/vintasoftware/django-js-reverse',
'Tracker': 'https://github.com/vintasoftware/django-js-reverse/issues',
'PyPI': 'https://pypi.org/project/django-js-reverse/',
},
packages=find_packages(),
package_data={
'django_js_reverse': [
'templates/django_js_reverse/*',
]
},
python_requires='>=3.10',
install_requires=[
'Django>=5.2,<6.1',
],
)