This repository has been archived by the owner on May 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
60 lines (54 loc) · 1.82 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
import re
from setuptools import setup
from babel.messages import frontend as babel
version = '0.3.2'
def parse_requirements(file_name):
requirements = []
for line in open(file_name, 'r').read().split('\n'):
if re.match(r'(\s*#)|(\s*$)', line):
continue
if re.match(r'\s*-e\s+', line):
requirements.append(re.sub(r'\s*-e\s+.*#egg=(.*)$', r'\1', line))
elif re.match(r'\s*-f\s+', line):
pass
else:
requirements.append(line)
return requirements
setup(
name='flaskup',
version=version,
description='A simple Flask application to share files.',
long_description=__doc__,
author='Laurent Meunier',
author_email='[email protected]',
license='BSD',
url='http://git.deltalima.net/flaskup/',
download_url='http://git.deltalima.net/flaskup/snapshot/flaskup-'+version+'.tar.gz',
packages=['flaskup'],
include_package_data=True,
zip_safe=False,
install_requires=parse_requirements("requirements.txt"),
entry_points={
'console_scripts': [
'flaskup = flaskup.console:main',
],
},
cmdclass={
'extract_messages': babel.extract_messages,
'init_catalog': babel.init_catalog,
'update_catalog': babel.update_catalog,
'compile_catalog': babel.compile_catalog,
},
classifiers=[
'License :: OSI Approved :: BSD License',
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Communications :: File Sharing',
'Topic :: Internet',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
]
)