File: setup.py

package info (click to toggle)
python-cookies 2.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 340 kB
  • sloc: python: 2,420; makefile: 8
file content (45 lines) | stat: -rw-r--r-- 1,436 bytes parent folder | download | duplicates (2)
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
from setuptools import setup, Command
from cookies import __version__

class Test(Command):
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        try:
            import pytest
        except ImportError:
            raise AssertionError("Install py.test to run the tests")
        import sys, subprocess
        errno = subprocess.call([sys.executable, '-m', 'py.test'])
        raise SystemExit(errno)

setup(
    name="cookies",
    version=__version__,
    author="Sasha Hart",
    author_email="s@sashahart.net",
    url="https://github.com/sashahart/cookies",
    py_modules=['cookies', 'test_cookies'],
    description="Friendlier RFC 6265-compliant cookie parser/renderer",
    long_description=open('README').read(),
    classifiers=[
        "Development Status :: 4 - Beta",
        "Environment :: Other Environment",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 2.6",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.2",
        "Programming Language :: Python :: 3.3",
        "Programming Language :: Python :: Implementation :: PyPy",
        "Topic :: Software Development :: Libraries :: Python Modules",
    ],
    cmdclass = {'test': Test},
)