Skip to content

Commit acfc8be

Browse files
committed
adding setup and MANIFEST
1 parent ddbe1b6 commit acfc8be

File tree

4 files changed

+41
-5
lines changed

4 files changed

+41
-5
lines changed

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# generic files to ignore
2-
.*
1+
# setup generated
2+
build/
3+
dist/
4+
MANIFEST
35

46
# python temp paths
57
__pycache__/

LICENSE renamed to LICENSE.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
The MIT License (MIT)
2-
3-
Copyright (c) 2015/2016 by Klaus Rettinghaus
1+
Copyright (c) 2015-2017 by Klaus Rettinghaus
42

53
Permission is hereby granted, free of charge, to any person obtaining a copy
64
of this software and associated documentation files (the "Software"), to deal

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include *.py *.txt *.xsl

setup.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
)

0 commit comments

Comments
 (0)