Mercurial > getan
annotate setup.py @ 403:f656d9370085
getan-report.py: improves -t output format.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Fri, 03 Feb 2017 14:57:32 +0100 |
parents | 2f9acd073dd3 |
children | 69ef6f89e930 |
rev | line source |
---|---|
116 | 1 #!/usr/bin/env python |
2 # -*- coding: utf-8 -*- | |
3 # | |
376 | 4 # (c) 2011, 2014 by Björn Ricks <bjoern.ricks@intevation.de> |
116 | 5 # |
6 # A python worklog-alike to log what you have 'getan' (done). | |
7 # | |
8 # This is Free Software licensed under the terms of GPLv3 or later. | |
9 # For details see LICENSE coming with the source of 'getan'. | |
10 # | |
11 | |
380
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
12 import glob |
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
13 import os.path |
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
14 |
116 | 15 from setuptools import setup, find_packages |
16 | |
17 import getan | |
18 | |
380
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
19 cur_dir = os.path.dirname(__file__) |
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
20 scripts_dir = os.path.join(cur_dir, "scripts") |
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
21 |
375
db872ef92bd9
Update coding style for pep8
Björn Ricks <bjoern.ricks@intevation.de>
parents:
121
diff
changeset
|
22 |
116 | 23 def read(fname): |
380
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
24 with open(os.path.join(cur_dir, fname)) as f: |
376 | 25 return f.read() |
116 | 26 |
27 setup(name="getan", | |
28 version=getan.__version__, | |
29 description="getan - A worklog like tool", | |
376 | 30 url="https://scm.wald.intevation.org/hg/getan/", |
375
db872ef92bd9
Update coding style for pep8
Björn Ricks <bjoern.ricks@intevation.de>
parents:
121
diff
changeset
|
31 license="GPLv3+", |
116 | 32 long_description=read("README"), |
33 packages=find_packages(), | |
380
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
34 package_data={ |
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
35 "": ["*.txt"], |
381
2f9acd073dd3
Include the template in the installed package data
Björn Ricks <bjoern.ricks@intevation.de>
parents:
380
diff
changeset
|
36 "getan": ["templates/*"], |
380
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
37 }, |
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
38 scripts=glob.glob(os.path.join(scripts_dir, "*.py")) + |
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
39 [os.path.join(scripts_dir, "wochenbericht"), |
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
40 os.path.join(scripts_dir, "convert-projects")], |
375
db872ef92bd9
Update coding style for pep8
Björn Ricks <bjoern.ricks@intevation.de>
parents:
121
diff
changeset
|
41 entry_points={"console_scripts": |
db872ef92bd9
Update coding style for pep8
Björn Ricks <bjoern.ricks@intevation.de>
parents:
121
diff
changeset
|
42 ["getan=getan.main:main", |
db872ef92bd9
Update coding style for pep8
Björn Ricks <bjoern.ricks@intevation.de>
parents:
121
diff
changeset
|
43 "getan-classic=getan.classic.getan:main", |
db872ef92bd9
Update coding style for pep8
Björn Ricks <bjoern.ricks@intevation.de>
parents:
121
diff
changeset
|
44 ]}, |
116 | 45 classifiers=[ |
46 "Topic :: Utilities", | |
47 "Environment :: Console", | |
48 "Intended Audience :: Developers", | |
49 "Intended Audience :: End Users/Desktop", | |
50 "License :: OSI Approved :: GNU General Public License (GPL)", | |
51 "Operating System :: POSIX", | |
52 "Programming Language :: Python", | |
380
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
53 ], |
375
db872ef92bd9
Update coding style for pep8
Björn Ricks <bjoern.ricks@intevation.de>
parents:
121
diff
changeset
|
54 ) |