Debian Codegraph @

setup.py

raw
1 from setuptools import setup, find_packages
2
3 version = '1.8.0'
4
5 #
6 # determine requirements
7 #
8 with open('requirements.txt') as reqs:
9 requirements = [
10 line for line in reqs.read().split('\n')
11 if (line and not line.startswith('-'))
12 ]
13
14 with open('test-requirements.txt') as reqs:
15 test_requirements = [
16 line for line in reqs.read().split('\n')
17 if (line and not line.startswith('-'))
18 ]
19
20 tests_require = requirements + test_requirements
21
22
23 #
24 # call setup
25 #
26 setup(
27 name='pecan',
28 version=version,
29 description="A WSGI object-dispatching web framework, designed to be "
30 "lean and fast, with few dependencies.",
31 long_description=None,
32 classifiers=[
33 'Development Status :: 5 - Production/Stable',
34 'Environment :: Console',
35 'Environment :: Web Environment',
36 'Intended Audience :: Developers',
37 'Intended Audience :: System Administrators',
38 'License :: OSI Approved :: BSD License',
39 'Operating System :: MacOS :: MacOS X',
40 'Operating System :: Microsoft :: Windows',
41 'Operating System :: POSIX',
42 'Programming Language :: Python',
43 'Programming Language :: Python :: 3 :: Only',
44 'Programming Language :: Python :: 3',
45 'Programming Language :: Python :: 3.10',
46 'Programming Language :: Python :: 3.11',
47 'Programming Language :: Python :: 3.12',
48 'Programming Language :: Python :: 3.13',
49 'Topic :: Internet :: WWW/HTTP :: WSGI',
50 'Topic :: Software Development :: Libraries :: Application Frameworks'
51 ],
52 keywords='web framework wsgi object-dispatch http',
53 author='Jonathan LaCour',
54 author_email='[email protected]',
55 url='http://github.com/pecan/pecan',
56 license='BSD',
57 packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
58 include_package_data=True,
59 zip_safe=False,
60 python_requires='>=3.10',
61 install_requires=requirements,
62 tests_require=tests_require,
63 test_suite='pecan',
64 entry_points="""
65 [pecan.command]
66 serve = pecan.commands:ServeCommand
67 shell = pecan.commands:ShellCommand
68 create = pecan.commands:CreateCommand
69 [pecan.scaffold]
70 base = pecan.scaffolds:BaseScaffold
71 rest-api = pecan.scaffolds:RestAPIScaffold
72 [console_scripts]
73 pecan = pecan.commands:CommandRunner.handle_command_line
74 gunicorn_pecan = pecan.commands.serve:gunicorn_run
75 """
76 )