Mercurial > getan
annotate setup.py @ 415:81e0debb6197
Added tag 2.0 for changeset 69ef6f89e930
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Wed, 03 May 2017 13:38:42 +0200 |
parents | 69ef6f89e930 |
children | d6d9d319bd2e |
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> |
414
69ef6f89e930
Prepares release v2.0.
Bernhard Reiter <bernhard@intevation.de>
parents:
381
diff
changeset
|
5 # (c) 2017 by Intevation GmbH |
69ef6f89e930
Prepares release v2.0.
Bernhard Reiter <bernhard@intevation.de>
parents:
381
diff
changeset
|
6 # |
69ef6f89e930
Prepares release v2.0.
Bernhard Reiter <bernhard@intevation.de>
parents:
381
diff
changeset
|
7 # Author(s): |
69ef6f89e930
Prepares release v2.0.
Bernhard Reiter <bernhard@intevation.de>
parents:
381
diff
changeset
|
8 # * Björn Ricks <bjoern.ricks@intevation.de> |
69ef6f89e930
Prepares release v2.0.
Bernhard Reiter <bernhard@intevation.de>
parents:
381
diff
changeset
|
9 # * Bernhard Reiter <bernhard.reiter@intevation.de> |
116 | 10 # |
11 # A python worklog-alike to log what you have 'getan' (done). | |
12 # | |
13 # This is Free Software licensed under the terms of GPLv3 or later. | |
14 # For details see LICENSE coming with the source of 'getan'. | |
15 # | |
16 | |
380
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
17 import glob |
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
18 import os.path |
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
19 |
116 | 20 from setuptools import setup, find_packages |
21 | |
22 import getan | |
23 | |
380
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
24 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
|
25 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
|
26 |
375
db872ef92bd9
Update coding style for pep8
Björn Ricks <bjoern.ricks@intevation.de>
parents:
121
diff
changeset
|
27 |
116 | 28 def read(fname): |
380
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
29 with open(os.path.join(cur_dir, fname)) as f: |
376 | 30 return f.read() |
116 | 31 |
32 setup(name="getan", | |
33 version=getan.__version__, | |
34 description="getan - A worklog like tool", | |
376 | 35 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
|
36 license="GPLv3+", |
116 | 37 long_description=read("README"), |
38 packages=find_packages(), | |
380
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
39 package_data={ |
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
40 "": ["*.txt"], |
381
2f9acd073dd3
Include the template in the installed package data
Björn Ricks <bjoern.ricks@intevation.de>
parents:
380
diff
changeset
|
41 "getan": ["templates/*"], |
380
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
42 }, |
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
43 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
|
44 [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
|
45 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
|
46 entry_points={"console_scripts": |
db872ef92bd9
Update coding style for pep8
Björn Ricks <bjoern.ricks@intevation.de>
parents:
121
diff
changeset
|
47 ["getan=getan.main:main", |
db872ef92bd9
Update coding style for pep8
Björn Ricks <bjoern.ricks@intevation.de>
parents:
121
diff
changeset
|
48 "getan-classic=getan.classic.getan:main", |
db872ef92bd9
Update coding style for pep8
Björn Ricks <bjoern.ricks@intevation.de>
parents:
121
diff
changeset
|
49 ]}, |
116 | 50 classifiers=[ |
51 "Topic :: Utilities", | |
52 "Environment :: Console", | |
53 "Intended Audience :: Developers", | |
54 "Intended Audience :: End Users/Desktop", | |
55 "License :: OSI Approved :: GNU General Public License (GPL)", | |
56 "Operating System :: POSIX", | |
57 "Programming Language :: Python", | |
380
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
58 ], |
375
db872ef92bd9
Update coding style for pep8
Björn Ricks <bjoern.ricks@intevation.de>
parents:
121
diff
changeset
|
59 ) |