-
Notifications
You must be signed in to change notification settings - Fork 16
/
setup.py
66 lines (58 loc) · 2.04 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
57
58
59
60
61
62
63
64
65
66
import os
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import sys
class PyTest(TestCommand):
user_options = [
('cov', None, "measure coverage")
]
def initialize_options(self):
TestCommand.initialize_options(self)
self.cov = None
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['pyramid_oauthlib']
if self.cov:
self.test_args += ['--cov', 'pyramid_oauthlib']
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as f:
README = f.read()
with open(os.path.join(here, 'CHANGES.txt')) as f:
CHANGES = f.read()
setup(
name='pyramid_oauthlib',
version='1.0.0',
description='Pyramid OAuthLib integration',
long_description=README + '\n\n' + CHANGES,
long_description_content_type="text/x-rst",
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3 :: Only",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware",
],
author='Randall Leeds',
author_email='tilgovi@hypothes.is',
url='https://github.com/tilgovi/pyramid_oauthlib',
keywords='web pyramid pylons oauth authentication',
cmdclass={'test': PyTest},
exclude_package_data={'': ['.gitignore']},
include_package_data=True,
install_requires=['pyramid>=1.4.0', 'oauthlib>=3'],
packages=find_packages(),
python_requires='>=3.7',
setup_requires=['setuptools_git'],
tests_require=['mock', 'pytest', 'pytest-cov'],
zip_safe=False,
)