-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
61 lines (53 loc) · 2.04 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
# coding=utf-8
# Copyright 2014 Janusz Skonieczny
import io
import os
import sys
import uuid
from setuptools import find_packages, setup
try: # for pip >= 10
# noinspection PyProtectedMember
from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements
ROOT_DIR = os.path.abspath(os.path.dirname(__file__))
SRC_DIR = os.path.join(ROOT_DIR, 'src')
sys.path.append(SRC_DIR)
install_requires = parse_requirements(
os.path.join(os.path.dirname(__file__), "requirements.txt"),
session=uuid.uuid1()
)
with io.open("README.rst", encoding="UTF-8") as readme:
long_description = readme.read()
version = "0.8.13"
setup_kwargs = {
'name': "django-pascal-templates",
'version': version,
'packages': find_packages("src", exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
'package_dir': {'': 'src'},
'install_requires': [str(r.req) for r in install_requires],
# "package_data": {
# '': ['requirements.txt']
# },
'author': "Janusz Skonieczny",
'author_email': "[email protected]",
'description': "Django generic views with PascalCase template paths with model named folders.",
'long_description': long_description,
'license': "MIT",
'keywords': "django template folder dictionary pascal models",
'url': "https://github.com/wooyek/django-pascal-templates",
'classifiers': [
'Programming Language :: Python',
'Development Status :: 4 - Beta',
'Natural Language :: English',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
'test_suite': 'pascal_templates.tests'
}
setup(**setup_kwargs)