-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
52 lines (46 loc) · 1.74 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
__author__ = 'Christian Bianciotto'
from setuptools import setup, find_packages
try:
# pip >=20
from pip._internal.network.session import PipSession
from pip._internal.req import parse_requirements
except ImportError:
try:
# 10.0.0 <= pip <= 19.3.1
from pip._internal.download import PipSession
from pip._internal.req import parse_requirements
except ImportError:
# pip <= 9.0.3
from pip.download import PipSession
from pip.req import parse_requirements
README = open('README.md').read()
install_requires = parse_requirements('requirements.txt', session=PipSession())
install_requires = [str(ir.req) for ir in install_requires]
setup(
name='django-static-sites',
version='0.0.8',
packages=find_packages(),
package_data={'staticsites': ['templates/*/*-tpl', 'templates/*/*/*-tpl']},
include_package_data=True,
license='GNU GENERAL PUBLIC LICENSE',
description='An easy to use Django app to make static site.',
entry_points={
'console_scripts': ['django-static-admin=staticsites.management:execute_from_command_line'],
},
long_description=README,
long_description_content_type='text/markdown',
url='https://github.com/ciotto/django-static-sites',
author='Christian Bianciotto',
author_email='info@ci8.it',
package_dir={'django-static-sites': 'lib/django-static-sites'},
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
],
install_requires=install_requires,
)