Skip to content
Newer
Older
100755 80 lines (70 sloc) 2.6 KB
ae3dd0b @falsetru Remove setuptools warning
falsetru authored Jan 11, 2011
1 import sys
39a0cfa @jonreid Added support for Python deployment
jonreid authored Nov 28, 2010
2 import os
ae3dd0b @falsetru Remove setuptools warning
falsetru authored Jan 10, 2011
3 import re
75baa23 @offbyone Add distribute bootstrap to setup.py
offbyone authored Apr 28, 2011
4
59e2813 @offbyone Document how to test with Docker
offbyone authored Mar 8, 2015
5 # need to kill off link if we're in docker builds
6 if os.environ.get('PYTHON_BUILD_DOCKER', None) == 'true':
7 del os.link
8
9
75baa23 @offbyone Add distribute bootstrap to setup.py
offbyone authored Apr 28, 2011
10 try:
11 from setuptools import setup, find_packages
12 except ImportError:
13 from distribute_setup import use_setuptools
14 use_setuptools()
15 from setuptools import setup, find_packages
5f14945 @jonreid CHANGES, README and setup tags
jonreid authored Dec 31, 2010
16
764820f @offbyone Fixed a bug with tox/setup.py parsing versions from hamcrest wrong
offbyone authored Apr 28, 2011
17 def local(fname):
18 return os.path.join(os.path.dirname(__file__), fname)
19
39a0cfa @jonreid Added support for Python deployment
jonreid authored Nov 28, 2010
20 def read(fname):
764820f @offbyone Fixed a bug with tox/setup.py parsing versions from hamcrest wrong
offbyone authored Apr 29, 2011
21 return open(local(fname)).read()
39a0cfa @jonreid Added support for Python deployment
jonreid authored Nov 28, 2010
22
7109d2c @jonreid Minor readability changes
jonreid authored Jan 12, 2011
23 # On Python 3, we can't "from hamcrest import __version__" (get ImportError),
24 # so we extract the variable assignment and execute it ourselves.
29d4f9d @offbyone Moved hamcrest into src/
offbyone authored Oct 17, 2013
25 fh = open(local('src/hamcrest/__init__.py'))
764820f @offbyone Fixed a bug with tox/setup.py parsing versions from hamcrest wrong
offbyone authored Apr 29, 2011
26 try:
27 for line in fh:
28 if re.match('__version__.*', line):
29 exec(line)
30 finally:
31 if fh:
32 fh.close()
b139f06 @falsetru Revert "Split hamcrest/version.py out of hamcrest/__init__.py; Remove…
falsetru authored Jan 10, 2011
33
7109d2c @jonreid Minor readability changes
jonreid authored Jan 12, 2011
34 extra_attributes = {}
aa4e6cd @offbyone Convert hamcrest to a single source base
offbyone authored Dec 31, 2013
35 # if sys.version_info >= (3,):
36 # extra_attributes['use_2to3'] = True
ae3dd0b @falsetru Remove setuptools warning
falsetru authored Jan 10, 2011
37
55487da @offbyone hamcrest support for python 3.1
offbyone authored Feb 17, 2011
38 params = dict(
c6f3a07 @offbyone Clean up setup.py format
offbyone authored Oct 17, 2013
39 name='PyHamcrest',
40 version=__version__, #flake8:noqa
41 author='Chris Rose',
42 author_email='offline@offby1.net',
43 description='Hamcrest framework for matcher objects',
44 license='New BSD',
486362d @jonreid Python: Added Platforms keyword
jonreid authored Nov 28, 2010
45 platforms=['All'],
c6f3a07 @offbyone Clean up setup.py format
offbyone authored Oct 18, 2013
46 keywords='hamcrest matchers pyunit unit test testing unittest unittesting',
47 url='https://github.com/hamcrest/PyHamcrest',
48 download_url='http://pypi.python.org/packages/source/P/PyHamcrest/PyHamcrest-%s.tar.gz' % __version__,
29d4f9d @offbyone Moved hamcrest into src/
offbyone authored Oct 18, 2013
49 packages=find_packages('src'),
50 package_dir = {'': 'src'},
c6f3a07 @offbyone Clean up setup.py format
offbyone authored Oct 18, 2013
51 provides=['hamcrest'],
877ebba @offbyone Fixed reference to README.rst in setup.py
offbyone authored Jul 7, 2013
52 long_description=read('README.rst'),
aa4e6cd @offbyone Convert hamcrest to a single source base
offbyone authored Dec 31, 2013
53 install_requires=['setuptools', 'six'],
c6f3a07 @offbyone Clean up setup.py format
offbyone authored Oct 18, 2013
54 classifiers=[
39a0cfa @jonreid Added support for Python deployment
jonreid authored Nov 28, 2010
55 'Development Status :: 5 - Production/Stable',
56 'Environment :: Console',
57 'Intended Audience :: Developers',
58 'License :: OSI Approved :: BSD License',
59 'Natural Language :: English',
1b7bb0d @jonreid Python: Added keywords and OS. Put full tutorial in README in ReST fo…
jonreid authored Nov 28, 2010
60 'Operating System :: OS Independent',
aa4e6cd @offbyone Convert hamcrest to a single source base
offbyone authored Dec 31, 2013
61 'Programming Language :: Python :: 2',
39a0cfa @jonreid Added support for Python deployment
jonreid authored Nov 28, 2010
62 'Programming Language :: Python :: 2.6',
9b86dbe @offbyone Started work towards python 3.1 support
offbyone authored Feb 17, 2011
63 'Programming Language :: Python :: 2.7',
aa4e6cd @offbyone Convert hamcrest to a single source base
offbyone authored Dec 31, 2013
64 'Programming Language :: Python :: 3',
a4ed3fd @offbyone Trove classifier: 3.2
offbyone authored Apr 2, 2011
65 'Programming Language :: Python :: 3.2',
ab80072 @offbyone Deprecate 3.1, add 3.3
offbyone authored Sep 2, 2013
66 'Programming Language :: Python :: 3.3',
688ff8c @offbyone MOAR BADGES
offbyone authored Apr 2, 2015
67 'Programming Language :: Python :: 3.4',
68 'Programming Language :: Python :: Implementation :: CPython',
69 'Programming Language :: Python :: Implementation :: Jython',
70 'Programming Language :: Python :: Implementation :: PyPy',
39a0cfa @jonreid Added support for Python deployment
jonreid authored Nov 28, 2010
71 'Topic :: Software Development',
72 'Topic :: Software Development :: Quality Assurance',
73 'Topic :: Software Development :: Testing',
74 ],
7109d2c @jonreid Minor readability changes
jonreid authored Jan 12, 2011
75 **extra_attributes
39a0cfa @jonreid Added support for Python deployment
jonreid authored Nov 28, 2010
76 )
55487da @offbyone hamcrest support for python 3.1
offbyone authored Feb 17, 2011
77
78 all_params = dict(params.items(), **extra_attributes)
79 setup(**all_params)
Something went wrong with that request. Please try again.