-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
46 lines (37 loc) · 1.34 KB
/
setup.py
File metadata and controls
46 lines (37 loc) · 1.34 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
import os
import sys
from setuptools import setup, find_packages
major, minor1, minor2, release, serial = sys.version_info
readfile_kwargs = {"encoding": "utf-8"} if major >= 3 else {}
def readfile(filename):
with open(filename, **readfile_kwargs) as fp:
contents = fp.read()
return contents
def get_packages(path):
out = [path]
for x in find_packages(path):
out.append('{}/{}'.format(path, x))
out.append('.')
return out
packages = get_packages('accrocchio')
setup(name='accrocchio',
version='0.1.14',
description='Accrocchio is a library to mark and being notified of smelly code (a.k.a, "accrocchio").',
long_description=readfile('README.rst'),
url='https://github.com/fcracker79/accrocchio',
author='fcracker79',
author_email='fcracker79@gmail.com',
license='MIT',
packages=packages,
install_requires=readfile(os.path.join(os.path.dirname(__file__), "requirements.txt")),
zip_safe=False,
test_suite="test",
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Software Development',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.5',
],
keywords='accrocchio hinting linting qa design patterns resign'
)