This repository has been archived by the owner on Feb 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
59 lines (49 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
53
54
55
56
57
58
59
import os
import re
from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), 'README')) as readme:
README = readme.read()
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
def find_version_from_file(*file_paths):
path = os.path.join(*file_paths)
with open(path, 'r', encoding='utf-8') as f:
file_contains_version = f.read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
file_contains_version, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string on '{}'.".format(path))
setup(
name="creme-crm",
version=find_version_from_file('creme', '__init__.py'),
author="hybird.org",
description="A CRM software using the django web framework",
license="AGPL-3.0",
keywords="CRM",
url="www.cremecrm.com",
packages=find_packages(),
include_package_data=True,
zip_safe=False,
long_description=README,
install_requires=[
"django>=2.2.23,<2.2.1024",
"redis>=3.3.11,<3.3.1024",
"Pillow>=7.1.2,<8.1.1024",
"python-dateutil>=2.8.1,<2.8.1024",
"bleach>=3.1.5,<3.1.1024",
"django-formtools==2.1",
],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Customer Service",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Natural Language :: French",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.5",
"Topic :: Office/Business",
],
)