- commit
- eed058bc6d382394cb28bbe3c42a4646200bb74a
- parent
- ef76c7b598423d648f049d80fd906f881744ea4f
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2017-01-30 22:35
add setup.py
Diffstat
| A | setup.py | 51 | +++++++++++++++++++++++++++++++++++++++++++++++++++ |
1 files changed, 51 insertions, 0 deletions
diff --git a/setup.py b/setup.py
@@ -0,0 +1,51 @@
-1 1 #!/usr/bin/env python
-1 2
-1 3 from setuptools import setup
-1 4
-1 5
-1 6 with open('cal.py') as fh:
-1 7 docstring = []
-1 8 docstring_started = False
-1 9 docstring_done = False
-1 10
-1 11 for line in fh:
-1 12 line = line.rstrip()
-1 13
-1 14 if line.startswith('__version__ = '):
-1 15 version = line.strip()[14:]
-1 16
-1 17 if docstring_started:
-1 18 if line == '"""':
-1 19 docstring_done = True
-1 20 elif not docstring_done:
-1 21 docstring.append(line)
-1 22 elif line.startswith('"""'):
-1 23 docstring_started = True
-1 24 docstring.append(line[3:])
-1 25
-1 26 description = docstring[0]
-1 27 docstring = '\n'.join(docstring[2:])
-1 28
-1 29
-1 30 setup(
-1 31 name='bsd-calendar',
-1 32 version=version,
-1 33 description=description,
-1 34 long_description=docstring,
-1 35 url='https://github.com/xi/calendar',
-1 36 author='Tobias Bengfort',
-1 37 author_email='tobias.bengfort@posteo.de',
-1 38 py_modules=['cal'],
-1 39 entry_points={'console_scripts': [
-1 40 'calendar=cal:main',
-1 41 ]},
-1 42 license='BSD',
-1 43 classifiers=[
-1 44 'Development Status :: 3 - Alpha',
-1 45 'Environment :: Console',
-1 46 'Intended Audience :: End Users/Desktop',
-1 47 'Operating System :: OS Independent',
-1 48 'Programming Language :: Python :: 3.4',
-1 49 'License :: OSI Approved :: BSD License',
-1 50 'Topic :: Utilities',
-1 51 ])