annotate setup.py @ 468:74e550aa3b6a

Fixes focus error.
author Magnus Schieder <mschieder@intevation.de>
date Fri, 04 May 2018 15:36:50 +0200
parents 59d9c5840273
children 62373fad96eb
rev   line source
116
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
1 #!/usr/bin/env python
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
2 # -*- coding: utf-8 -*-
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
3 #
376
51b2e575f397 Update setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents: 375
diff changeset
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
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
10 #
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
11 # A python worklog-alike to log what you have 'getan' (done).
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
12 #
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
13 # This is Free Software licensed under the terms of GPLv3 or later.
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
14 # For details see LICENSE coming with the source of 'getan'.
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
15 #
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
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
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
20 from setuptools import setup, find_packages
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
21
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
22 import getan
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
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
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
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
51b2e575f397 Update setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents: 375
diff changeset
30 return f.read()
116
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
31
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
32 setup(name="getan",
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
33 version=getan.__version__,
421
17e302a0cd9a Setup: improves short description.
Bernhard Reiter <bernhard@intevation.de>
parents: 417
diff changeset
34 description="Terminal based time-tracking "
17e302a0cd9a Setup: improves short description.
Bernhard Reiter <bernhard@intevation.de>
parents: 417
diff changeset
35 "and reporting tool; comparable to 'worklog'.",
417
d6d9d319bd2e Prepares for PyPi publication.
Bernhard Reiter <bernhard@intevation.de>
parents: 414
diff changeset
36 url="https://getan.wald.intevation.org/",
d6d9d319bd2e Prepares for PyPi publication.
Bernhard Reiter <bernhard@intevation.de>
parents: 414
diff changeset
37 download_url="https://scm.wald.intevation.org/hg/getan/",
d6d9d319bd2e Prepares for PyPi publication.
Bernhard Reiter <bernhard@intevation.de>
parents: 414
diff changeset
38 maintainer="Bernhard E. Reiter",
d6d9d319bd2e Prepares for PyPi publication.
Bernhard Reiter <bernhard@intevation.de>
parents: 414
diff changeset
39 maintainer_email="bernhard.reiter@intevation.de",
375
db872ef92bd9 Update coding style for pep8
Björn Ricks <bjoern.ricks@intevation.de>
parents: 121
diff changeset
40 license="GPLv3+",
116
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
41 long_description=read("README"),
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
42 packages=find_packages(),
380
20fde79f8e12 Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents: 376
diff changeset
43 package_data={
20fde79f8e12 Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents: 376
diff changeset
44 "": ["*.txt"],
381
2f9acd073dd3 Include the template in the installed package data
Björn Ricks <bjoern.ricks@intevation.de>
parents: 380
diff changeset
45 "getan": ["templates/*"],
380
20fde79f8e12 Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents: 376
diff changeset
46 },
417
d6d9d319bd2e Prepares for PyPi publication.
Bernhard Reiter <bernhard@intevation.de>
parents: 414
diff changeset
47 install_requires=[
d6d9d319bd2e Prepares for PyPi publication.
Bernhard Reiter <bernhard@intevation.de>
parents: 414
diff changeset
48 'jinja2',
d6d9d319bd2e Prepares for PyPi publication.
Bernhard Reiter <bernhard@intevation.de>
parents: 414
diff changeset
49 'urwid>=1.1.2'
d6d9d319bd2e Prepares for PyPi publication.
Bernhard Reiter <bernhard@intevation.de>
parents: 414
diff changeset
50 ],
380
20fde79f8e12 Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents: 376
diff changeset
51 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
52 [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
53 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
54 entry_points={"console_scripts":
db872ef92bd9 Update coding style for pep8
Björn Ricks <bjoern.ricks@intevation.de>
parents: 121
diff changeset
55 ["getan=getan.main:main",
db872ef92bd9 Update coding style for pep8
Björn Ricks <bjoern.ricks@intevation.de>
parents: 121
diff changeset
56 "getan-classic=getan.classic.getan:main",
db872ef92bd9 Update coding style for pep8
Björn Ricks <bjoern.ricks@intevation.de>
parents: 121
diff changeset
57 ]},
116
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
58 classifiers=[
417
d6d9d319bd2e Prepares for PyPi publication.
Bernhard Reiter <bernhard@intevation.de>
parents: 414
diff changeset
59 "Development Status :: 5 - Production/Stable",
116
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
60 "Topic :: Utilities",
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
61 "Environment :: Console",
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
62 "Intended Audience :: Developers",
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
63 "Intended Audience :: End Users/Desktop",
417
d6d9d319bd2e Prepares for PyPi publication.
Bernhard Reiter <bernhard@intevation.de>
parents: 414
diff changeset
64 "License :: OSI Approved :: "
d6d9d319bd2e Prepares for PyPi publication.
Bernhard Reiter <bernhard@intevation.de>
parents: 414
diff changeset
65 "GNU General Public License v3 or later (GPLv3+)",
116
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
66 "Operating System :: POSIX",
467
59d9c5840273 Porting Python 2 to Python 3.
Magnus Schieder <mschieder@intevation.de>
parents: 421
diff changeset
67 "Programming Language :: Python :: 3"
380
20fde79f8e12 Move all scripts in a common scripts directory
Björn Ricks <bjoern.ricks@intevation.de>
parents: 376
diff changeset
68 ],
375
db872ef92bd9 Update coding style for pep8
Björn Ricks <bjoern.ricks@intevation.de>
parents: 121
diff changeset
69 )
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)