-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·59 lines (53 loc) · 1.14 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
#!/usr/bin/python
# vim: noet sw=4 ts=4
import os
from setuptools import setup
name = 'anon-ip'
dirname = 'anon_ip'
version = '0.0.0rc3'
def read( fn ):
with open(
os.path.join(
os.path.dirname( __file__ ),
fn
)
) as f:
return f.read()
try:
os.makedirs( dirname )
except:
pass
vfile = os.path.join(
dirname,
'version.py'
)
with open( vfile, 'w' ) as f:
print >>f, "Version = '{0}'".format( version )
setup(
name = name,
version = version,
author = "Tommy Reynolds",
author_email = "[email protected]",
description = (
'Replace numeric IPv4 addresses in files with an '
'obscurred form such as "xxx.xxx.xxx.xxx" to avoid '
'leaking information if someone were incautious enough '
'to put their public IP address into a file.'
),
license = "MIT",
keywords = "awesome impressive waste-of-time",
url = "http://666.666.666.666:666",
packages = [
dirname,
# 'tests',
],
long_description = read( 'README.md' ),
classifiers =[
"Development Status :: 0 - Broken",
"Topic :: Utilities",
"License :: OSI Approved :: MIT",
],
scripts = [
'anon-ip',
],
)