forked from rafalp/Misago
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·66 lines (55 loc) · 1.95 KB
/
setup.py
File metadata and controls
executable file
·66 lines (55 loc) · 1.95 KB
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
62
63
64
65
66
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import shutil
from setuptools import setup, find_packages
from setuptools.command.sdist import sdist as _sdist
from misago import __version__ as version
here = os.path.dirname(__file__)
with open(os.path.join(here, 'README.md')) as f:
README = f.read()
with open(os.path.join(here, 'requirements.txt')) as f:
REQUIREMENTS = [x.strip() for x in f.readlines()]
def copy_data_files(paths):
for path in paths:
dest = os.path.join('misago', path)
if os.path.exists(dest):
shutil.rmtree(dest)
shutil.copytree(path, dest)
class sdist(_sdist):
def run(self):
copy_data_files(['attachments', 'media', 'static', 'templates'])
_sdist.run(self)
setup(
name='Misago',
version=version,
license='GNU General Public License v2 (GPLv2)',
description='Misago is complete, featured and modern forum solution.',
long_description=README,
url='http://www.misago-project.org/',
author=u'Rafał Pitoń',
author_email='kontakt@rpiton.com',
install_requires=REQUIREMENTS,
extras_require={
'postgresql': ['psycopg2'],
},
cmdclass={'sdist': sdist},
zip_safe=False,
packages=find_packages(),
include_package_data=True,
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
"Topic :: Internet :: WWW/HTTP :: WSGI",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)