forked from adw0rd/marcus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
56 lines (53 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 re
from setuptools import setup, find_packages
from marcus import __version__
# Installation a packages from "requirements.txt"
requirements = open('requirements.txt')
install_requires = []
dependency_links = []
try:
for line in requirements.readlines():
line = line.strip()
if line and not line.startswith('#'): # for inline comments
if "#egg" in line:
names = re.findall('#egg=([^-]+)-', line)
install_requires.append(names[0])
dependency_links.append(line)
else:
install_requires.append(line)
finally:
requirements.close()
# Getting long_description
long_description = ""
try:
readme = open("README.rst")
long_description = str(readme.read())
readme.close()
except:
pass
setup(
name='django-marcus',
version=__version__,
description="Bilingual blog on Django",
long_description=long_description,
keywords='django, blog',
author='Mikhail Andreev',
author_email='x11org@gmail.com',
url='http://github.com/adw0rd/marcus',
license='BSD',
packages=find_packages(),
zip_safe=False,
install_requires=install_requires,
dependency_links=dependency_links,
package_data={'': ['requirements.txt']},
include_package_data=True,
classifiers=[
"Environment :: Web Environment",
"Programming Language :: Python",
"Framework :: Django",
"License :: OSI Approved :: BSD License",
"Topic :: Software Development :: Debuggers",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)