~ubuntu-branches/debian/sid/pyrlp/sid

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Package Import Robot
  • Author(s): Ben Finney
  • Date: 2017-07-15 05:25:42 UTC
  • Revision ID: package-import@ubuntu.com-20170715052542-a20zzsypt1qfecq1
Tags: upstream-0.5.1
ImportĀ upstreamĀ versionĀ 0.5.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
# -*- coding: utf-8 -*-
 
3
 
 
4
 
 
5
try:
 
6
    from setuptools import setup
 
7
except ImportError:
 
8
    from distutils.core import setup
 
9
 
 
10
 
 
11
from setuptools.command.test import test as TestCommand
 
12
 
 
13
 
 
14
class PyTest(TestCommand):
 
15
 
 
16
    def finalize_options(self):
 
17
        TestCommand.finalize_options(self)
 
18
        self.test_args = []
 
19
        self.test_suite = True
 
20
 
 
21
    def run_tests(self):
 
22
        # import here, cause outside the eggs aren't loaded
 
23
        import pytest
 
24
        pytest.main(self.test_args)
 
25
 
 
26
 
 
27
with open('README.md') as readme_file:
 
28
    readme = readme_file.read()
 
29
 
 
30
test_requirements = [
 
31
    'pytest',
 
32
]
 
33
 
 
34
# *IMPORTANT*: Don't manually change the version here. Use the 'bumpversion' utility.
 
35
# see: https://github.com/ethereum/pyethapp/wiki/Development:-Versions-and-Releases
 
36
version = '0.5.1'
 
37
 
 
38
setup(
 
39
    name='rlp',
 
40
    version=version,
 
41
    description="A package for encoding and decoding data in and from Recursive Length Prefix notation",
 
42
    long_description=readme,
 
43
    author="jnnk",
 
44
    author_email='jnnknnj@gmail.com',
 
45
    url='https://github.com/ethereum/pyrlp',
 
46
    packages=[
 
47
        'rlp', 'rlp.sedes'
 
48
    ],
 
49
    include_package_data=True,
 
50
    install_requires=[],
 
51
    license="MIT",
 
52
    zip_safe=False,
 
53
    keywords='rlp ethereum',
 
54
    classifiers=[
 
55
        'Development Status :: 2 - Pre-Alpha',
 
56
        'Intended Audience :: Developers',
 
57
        'License :: OSI Approved :: BSD License',
 
58
        'Natural Language :: English',
 
59
        "Programming Language :: Python :: 2",
 
60
        'Programming Language :: Python :: 2.7',
 
61
        'Programming Language :: Python :: 3',
 
62
        'Programming Language :: Python :: 3.3',
 
63
        'Programming Language :: Python :: 3.4',
 
64
    ],
 
65
    cmdclass={'test': PyTest},
 
66
    tests_require=test_requirements
 
67
)