-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
56 lines (44 loc) · 1.4 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import os
import sys
from setuptools import setup, find_packages
VERSION = '0.1.1'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.rst')).read()
except IOError:
README = ''
try:
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
except IOError:
CHANGES = ''
if sys.argv[-1] == 'publish': # upload to pypi
os.system("python setup.py register sdist upload")
print "You probably want to also tag the version now:"
print " git tag -a %s -m 'version %s'" % (VERSION, VERSION)
print " git push --tags"
sys.exit()
setup(
name='kotti_sitemap',
version=VERSION,
license='http://koansys.com/license.txt',
install_requires=[
'kotti',
],
description='Kotti Sitemap - an addon to easily create a sitemap for your Kotti project.',
long_description='\n\n'.join([README, CHANGES]),
keywords='kotti cms pyramid sitemap sqlalchemy',
author='Koansys, LLC',
author_email='[email protected]',
url='https://github.com/koansys/kotti_sitemap',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Pyramid',
]
)