-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
47 lines (41 loc) · 1.51 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
import os
import sys
from setuptools import setup
def read(*paths):
"""Build a file path from *paths* and return the contents."""
with open(os.path.join(*paths), 'r') as f:
return f.read()
configDir = os.path.join(os.environ['HOME'], '.config', 'sniffer')
if not os.path.isdir(configDir):
print("++ Creating {}".format(configDir))
os.makedirs(configDir)
setup(
name='code-sniffer'
, version='0.9.9'
, description='A command-line tool to check similarity in assignment (text files only)'
, long_description= read('README.rst')
, url = 'https://dilawar.github.io/sniffer'
, license = 'LGPL'
, author = 'Dilawar Singh'
, author_email = 'dilawars@ncbs.res.in'
, maintainer = 'Dilawar Singh'
, maintainer_email = 'dilawars@ncbs.res.in'
, requires = ['Python (>=2.6)']
, install_requires = [ "pdfminer" ]
, packages=['sniffer' ]
, include_package_data = True
, data_files = [(configDir, ['config'])]
, classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Environment :: Console',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
entry_points="""
[console_scripts]
code-sniffer=sniffer.main:main
"""
)