forked from netzkolchose/django-computedfields
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
52 lines (47 loc) · 1.79 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
from setuptools import find_packages, setup
with open('README.md', 'r') as f:
long_description = f.read()
def get_version(path):
with open(path) as f:
for line in f:
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
raise RuntimeError('Unable to find version string.')
setup(
name='django-computedfields',
packages=find_packages(exclude=['example']),
include_package_data=True,
install_requires=[
'Django>=2.2,<5.0',
'typing_extensions>=4.1',
'django-fast-update'
],
version=get_version('computedfields/__init__.py'),
license='MIT',
description='autoupdated database fields for model methods',
long_description=long_description,
long_description_content_type='text/markdown',
author='netzkolchose',
author_email='[email protected]',
url='https://github.com/netzkolchose/django-computedfields',
download_url='https://github.com/netzkolchose/django-computedfields/archive/0.2.3.tar.gz',
keywords=['django', 'method', 'decorator',
'autoupdate', 'persistent', 'field'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Database',
'Topic :: Database :: Front-Ends',
'Topic :: Software Development :: Libraries',
'Framework :: Django',
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.2',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10'
],
)