-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
43 lines (38 loc) · 1.43 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
# !/usr/bin/env python
# # -*- coding: utf-8 -*-
# """Setup for p4clean."""
import ast
from setuptools import setup
def version():
"""Return version string."""
with open('p4clean.py') as input_file:
for line in input_file:
if line.startswith('__version__'):
return ast.parse(line).body[0].value.s
with open('README.rst') as readme:
setup(
name='p4clean',
version=version(),
description='A tool to reset perforce local workspace to its initial state. ',
long_description=readme.read(),
license='Expat License',
author='Pascal Lalancette',
author_email='[email protected]',
url='https://github.com/okcompute/p4clean',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Python Modules',
],
keywords='perforce, clean, initial',
test_suite='test.test_p4clean',
py_modules=['p4clean'],
zip_safe=False,
entry_points={'console_scripts': ['p4clean = p4clean:main']},
)