forked from lazybird/django-solo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
56 lines (48 loc) · 1.67 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
import os
import re
from setuptools import setup, find_packages
README = os.path.join(os.path.dirname(__file__), 'README.md')
# When running tests using tox, README.md is not found
try:
with open(README) as file:
long_description = file.read()
except Exception:
long_description = ''
def get_version(package):
"""
Return package version as listed in `__version__` in `__init__.py`.
"""
with open(os.path.join(package, '__init__.py')) as file:
init_py = file.read()
return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
version = get_version('solo')
setup(
name='django-solo',
version=version,
description='Django Solo helps working with singletons',
python_requires='>=3.7',
install_requires=['django>=3.2'],
packages=find_packages(),
url='https://github.com/lazybird/django-solo/',
author='lazybird',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
include_package_data=True,
zip_safe=False,
license='Creative Commons Attribution 3.0 Unported',
classifiers=[
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.0',
'Framework :: Django :: 4.1',
'Framework :: Django :: 4.2',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
]
)