annotate setup.py @ 413:a499441249af

Fixes sorting by day for templates. * Adds a string attribute 'startisoday' to the Entry object, so it can be used by jinja2's sort and groupby filters.
author Bernhard Reiter <bernhard@intevation.de>
date Wed, 03 May 2017 13:35:58 +0200
parents 2f9acd073dd3
children 69ef6f89e930
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>
116
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
5 #
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
6 # 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
7 #
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
8 # 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
9 # 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
10 #
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
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
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
15 from setuptools import setup, find_packages
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
16
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
17 import getan
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
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
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
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
51b2e575f397 Update setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents: 375
diff changeset
25 return f.read()
116
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
26
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
27 setup(name="getan",
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
28 version=getan.__version__,
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
29 description="getan - A worklog like tool",
376
51b2e575f397 Update setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents: 375
diff changeset
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
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
32 long_description=read("README"),
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
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
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
45 classifiers=[
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
46 "Topic :: Utilities",
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
47 "Environment :: Console",
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
48 "Intended Audience :: Developers",
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
49 "Intended Audience :: End Users/Desktop",
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
50 "License :: OSI Approved :: GNU General Public License (GPL)",
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
51 "Operating System :: POSIX",
67a89439e10d Add a setup.py script
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
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 )
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)