-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathsetup.py
48 lines (42 loc) · 1.53 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
import sys
import platform
from setuptools import setup, find_packages
# check for old python versions
if sys.version_info < (3, 2):
sys.exit("ocdev requires Python 3.2 or higher but found %s! If you are "
"using pip make sure its the Python 3 version (pip3)" %
platform.python_version())
with open('requirements.txt', 'r') as infile:
install_requires = infile.read().split('\n')
with open('README.rst', 'r') as infile:
long_description = infile.read()
with open("ocdev/version.txt", 'r') as infile:
version = ''.join(infile.read().split())
setup (
name = 'ocdev',
version = version,
description = 'ownCloud development tool',
long_description = long_description,
author = 'Bernhard Posselt',
author_email = '[email protected]',
url = 'https://github.com/owncloud/ocdev',
packages = find_packages(exclude=('tests',)),
include_package_data = True,
license = 'GPL',
install_requires = install_requires,
keywords = ['owncloud', 'app', 'scaffolding', 'setup', 'development'],
test_suite = 'tests',
classifiers = [
'Intended Audience :: Developers',
'Environment :: Console',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Software Development :: Code Generators'
],
entry_points = {
'console_scripts': [
'ocdev = ocdev.application:main'
]
}
)