Mercurial > getan
annotate setup.py @ 494:193960b65c1d
Added tag 3.1 for changeset 1b6509e51b93
author | Magnus Schieder <mschieder@intevation.de> |
---|---|
date | Thu, 05 Jul 2018 17:30:55 +0200 |
parents | 463894654d77 |
children | 65256f68a0a7 |
rev | line source |
---|---|
482
999a438474f2
Changed Hashbangs to python3.
Magnus Schieder <mschieder@intevation.de>
parents:
481
diff
changeset
|
1 #!/usr/bin/env python3 |
116 | 2 # -*- coding: utf-8 -*- |
3 # | |
376 | 4 # (c) 2011, 2014 by Björn Ricks <bjoern.ricks@intevation.de> |
488
463894654d77
Prepares for release 3.0
Magnus Schieder <mschieder@intevation.de>
parents:
486
diff
changeset
|
5 # (c) 2017, 2018 by Intevation GmbH |
414
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> |
488
463894654d77
Prepares for release 3.0
Magnus Schieder <mschieder@intevation.de>
parents:
486
diff
changeset
|
10 # * Magnus Schieder <magnus.schieder@intevation.de> |
116 | 11 # |
12 # A python worklog-alike to log what you have 'getan' (done). | |
13 # | |
14 # This is Free Software licensed under the terms of GPLv3 or later. | |
15 # For details see LICENSE coming with the source of 'getan'. | |
16 # | |
17 | |
380
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
18 import glob |
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
19 import os.path |
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
20 |
116 | 21 from setuptools import setup, find_packages |
22 | |
23 import getan | |
24 | |
380
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
25 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
|
26 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
|
27 |
375
db872ef92bd9
Update coding style for pep8
Björn Ricks <bjoern.ricks@intevation.de>
parents:
121
diff
changeset
|
28 |
116 | 29 def read(fname): |
380
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
30 with open(os.path.join(cur_dir, fname)) as f: |
376 | 31 return f.read() |
116 | 32 |
33 setup(name="getan", | |
34 version=getan.__version__, | |
421
17e302a0cd9a
Setup: improves short description.
Bernhard Reiter <bernhard@intevation.de>
parents:
417
diff
changeset
|
35 description="Terminal based time-tracking " |
17e302a0cd9a
Setup: improves short description.
Bernhard Reiter <bernhard@intevation.de>
parents:
417
diff
changeset
|
36 "and reporting tool; comparable to 'worklog'.", |
417
d6d9d319bd2e
Prepares for PyPi publication.
Bernhard Reiter <bernhard@intevation.de>
parents:
414
diff
changeset
|
37 url="https://getan.wald.intevation.org/", |
d6d9d319bd2e
Prepares for PyPi publication.
Bernhard Reiter <bernhard@intevation.de>
parents:
414
diff
changeset
|
38 download_url="https://scm.wald.intevation.org/hg/getan/", |
d6d9d319bd2e
Prepares for PyPi publication.
Bernhard Reiter <bernhard@intevation.de>
parents:
414
diff
changeset
|
39 maintainer="Bernhard E. Reiter", |
d6d9d319bd2e
Prepares for PyPi publication.
Bernhard Reiter <bernhard@intevation.de>
parents:
414
diff
changeset
|
40 maintainer_email="bernhard.reiter@intevation.de", |
375
db872ef92bd9
Update coding style for pep8
Björn Ricks <bjoern.ricks@intevation.de>
parents:
121
diff
changeset
|
41 license="GPLv3+", |
116 | 42 long_description=read("README"), |
43 packages=find_packages(), | |
488
463894654d77
Prepares for release 3.0
Magnus Schieder <mschieder@intevation.de>
parents:
486
diff
changeset
|
44 python_requires='>=3.4', |
380
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
45 package_data={ |
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
46 "": ["*.txt"], |
381
2f9acd073dd3
Include the template in the installed package data
Björn Ricks <bjoern.ricks@intevation.de>
parents:
380
diff
changeset
|
47 "getan": ["templates/*"], |
380
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
48 }, |
417
d6d9d319bd2e
Prepares for PyPi publication.
Bernhard Reiter <bernhard@intevation.de>
parents:
414
diff
changeset
|
49 install_requires=[ |
d6d9d319bd2e
Prepares for PyPi publication.
Bernhard Reiter <bernhard@intevation.de>
parents:
414
diff
changeset
|
50 'jinja2', |
d6d9d319bd2e
Prepares for PyPi publication.
Bernhard Reiter <bernhard@intevation.de>
parents:
414
diff
changeset
|
51 'urwid>=1.1.2' |
d6d9d319bd2e
Prepares for PyPi publication.
Bernhard Reiter <bernhard@intevation.de>
parents:
414
diff
changeset
|
52 ], |
380
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
53 scripts=glob.glob(os.path.join(scripts_dir, "*.py")) + |
486 | 54 [os.path.join(scripts_dir, "getan-report"), |
55 os.path.join(scripts_dir, "convert-projects"), | |
56 os.path.join(scripts_dir, "getan-day-report")], | |
375
db872ef92bd9
Update coding style for pep8
Björn Ricks <bjoern.ricks@intevation.de>
parents:
121
diff
changeset
|
57 entry_points={"console_scripts": |
486 | 58 ["getan=getan.main:main"]}, |
116 | 59 classifiers=[ |
417
d6d9d319bd2e
Prepares for PyPi publication.
Bernhard Reiter <bernhard@intevation.de>
parents:
414
diff
changeset
|
60 "Development Status :: 5 - Production/Stable", |
116 | 61 "Topic :: Utilities", |
62 "Environment :: Console", | |
63 "Intended Audience :: Developers", | |
64 "Intended Audience :: End Users/Desktop", | |
417
d6d9d319bd2e
Prepares for PyPi publication.
Bernhard Reiter <bernhard@intevation.de>
parents:
414
diff
changeset
|
65 "License :: OSI Approved :: " |
d6d9d319bd2e
Prepares for PyPi publication.
Bernhard Reiter <bernhard@intevation.de>
parents:
414
diff
changeset
|
66 "GNU General Public License v3 or later (GPLv3+)", |
116 | 67 "Operating System :: POSIX", |
488
463894654d77
Prepares for release 3.0
Magnus Schieder <mschieder@intevation.de>
parents:
486
diff
changeset
|
68 "Programming Language :: Python :: 3.4" |
380
20fde79f8e12
Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents:
376
diff
changeset
|
69 ], |
375
db872ef92bd9
Update coding style for pep8
Björn Ricks <bjoern.ricks@intevation.de>
parents:
121
diff
changeset
|
70 ) |