File tree Expand file tree Collapse file tree 4 files changed +41
-5
lines changed Expand file tree Collapse file tree 4 files changed +41
-5
lines changed Original file line number Diff line number Diff line change 1
- # generic files to ignore
2
- . *
1
+ # setup generated
2
+ build /
3
+ dist /
4
+ MANIFEST
3
5
4
6
# python temp paths
5
7
__pycache__ /
Original file line number Diff line number Diff line change 1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2015/2016 by Klaus Rettinghaus
1
+ Copyright (c) 2015-2017 by Klaus Rettinghaus
4
2
5
3
Permission is hereby granted, free of charge, to any person obtaining a copy
6
4
of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change
1
+ include *.py *.txt *.xsl
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env python
2
+
3
+ from distutils .core import setup
4
+
5
+ package_name = 'csv2cmi'
6
+ filename = package_name + '.py'
7
+
8
+
9
+ def get_version ():
10
+ import ast
11
+
12
+ with open (filename ) as input_file :
13
+ for line in input_file :
14
+ if line .startswith ('__version__' ):
15
+ return ast .parse (line ).body [0 ].value .s
16
+
17
+
18
+ def get_long_description ():
19
+ try :
20
+ with open ('README.md' , 'r' ) as f :
21
+ return f .read ()
22
+ except IOError :
23
+ return ''
24
+
25
+
26
+ setup (
27
+ name = package_name ,
28
+ version = get_version (),
29
+ author = 'rettinghaus' ,
30
+ description = 'convert a table of letters into CMI format' ,
31
+ url = 'https://github.com/saw-leipzig/csv2cmi' ,
32
+ long_description = get_long_description (),
33
+ py_modules = [package_name ],
34
+ license = 'License :: OSI Approved :: MIT License' ,
35
+ )
You can’t perform that action at this time.
0 commit comments