forked from philsstein/libBGG
-
Notifications
You must be signed in to change notification settings - Fork 71
/
setup.py
62 lines (52 loc) · 1.8 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
# coding=utf-8
from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
from codecs import open
version = {}
with open("boardgamegeek/version.py") as fp:
exec(fp.read(), version)
long_description = open("README.rst", encoding="utf-8").read()
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
pytest.main(self.test_args)
tests_require = ["pytest", "pytest-mock"]
setup(
name="boardgamegeek2",
version=version["__version__"],
packages=find_packages(),
license="BSD",
author="Cosmin Luță",
author_email="[email protected]",
description="A Python interface to boardgamegeek.com's API",
long_description=long_description,
url="https://github.com/lcosmin/boardgamegeek",
tests_require=tests_require,
extras_require={'test': tests_require},
cmdclass={'test': PyTest},
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"License :: OSI Approved :: BSD License",
"Development Status :: 4 - Beta",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Topic :: Games/Entertainment :: Board Games",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
],
install_requires=["requests>=2.3.0",
"requests-cache>=0.4.4"],
entry_points={
"console_scripts": [
"boardgamegeek = boardgamegeek.main:main"
]
}
)