comparison setup.py @ 380:20fde79f8e12

Move all scripts in a common scripts directory Currently console scripts were kept in several directories. Now use a common directory for all scripts.
author Björn Ricks <bjoern.ricks@intevation.de>
date Mon, 05 Jan 2015 10:54:20 +0100
parents 51b2e575f397
children 2f9acd073dd3
comparison
equal deleted inserted replaced
379:47890f38e558 380:20fde79f8e12
7 # 7 #
8 # This is Free Software licensed under the terms of GPLv3 or later. 8 # This is Free Software licensed under the terms of GPLv3 or later.
9 # For details see LICENSE coming with the source of 'getan'. 9 # For details see LICENSE coming with the source of 'getan'.
10 # 10 #
11 11
12 import glob
13 import os.path
14
12 from setuptools import setup, find_packages 15 from setuptools import setup, find_packages
13
14 import os.path
15 16
16 import getan 17 import getan
17 18
19 cur_dir = os.path.dirname(__file__)
20 scripts_dir = os.path.join(cur_dir, "scripts")
21
18 22
19 def read(fname): 23 def read(fname):
20 with open(os.path.join(os.path.dirname(__file__), fname)) as f: 24 with open(os.path.join(cur_dir, fname)) as f:
21 return f.read() 25 return f.read()
22 26
23 setup(name="getan", 27 setup(name="getan",
24 version=getan.__version__, 28 version=getan.__version__,
25 description="getan - A worklog like tool", 29 description="getan - A worklog like tool",
26 url="https://scm.wald.intevation.org/hg/getan/", 30 url="https://scm.wald.intevation.org/hg/getan/",
27 license="GPLv3+", 31 license="GPLv3+",
28 long_description=read("README"), 32 long_description=read("README"),
29 packages=find_packages(), 33 packages=find_packages(),
30 package_data={"": ["*.txt"], }, 34 package_data={
35 "": ["*.txt"],
36 },
37 scripts=glob.glob(os.path.join(scripts_dir, "*.py")) +
38 [os.path.join(scripts_dir, "wochenbericht"),
39 os.path.join(scripts_dir, "convert-projects")],
31 entry_points={"console_scripts": 40 entry_points={"console_scripts":
32 ["getan=getan.main:main", 41 ["getan=getan.main:main",
33 "getan-classic=getan.classic.getan:main", 42 "getan-classic=getan.classic.getan:main",
34 "zeiterfassung=getan.contrib.zeiterfassung:main",
35 "getan-eval=getan.contrib.getan-eval:main",
36 "zeitsort=getan.contrib.zeitsort:main",
37 ]}, 43 ]},
38 classifiers=[ 44 classifiers=[
39 "Topic :: Utilities", 45 "Topic :: Utilities",
40 "Environment :: Console", 46 "Environment :: Console",
41 "Intended Audience :: Developers", 47 "Intended Audience :: Developers",
42 "Intended Audience :: End Users/Desktop", 48 "Intended Audience :: End Users/Desktop",
43 "License :: OSI Approved :: GNU General Public License (GPL)", 49 "License :: OSI Approved :: GNU General Public License (GPL)",
44 "Operating System :: POSIX", 50 "Operating System :: POSIX",
45 "Programming Language :: Python", 51 "Programming Language :: Python",
46 ] 52 ],
47 ) 53 )
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)