-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.py
62 lines (49 loc) · 1.55 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 -*-
import os
import sys
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
try:
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()
except IOError:
README = CHANGES = ""
install_requires = []
docs_extras = []
tests_require = ["pytest"]
testing_extras = tests_require + []
from setuptools.command.test import test as TestCommand
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)
setup(
name="node-semver",
version="0.9.0",
description="port of node-semver",
long_description=README + "\n\n" + CHANGES,
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
],
keywords="version semver node-semver",
author="podhmo",
author_email="[email protected]",
url="https://github.com/podhmo/python-node-semver",
packages=find_packages(exclude=["nodesemver.tests"]),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
extras_require={"testing": testing_extras, "docs": docs_extras},
tests_require=tests_require,
cmdclass={"test": PyTest},
entry_points=""" """,
license="mit",
)