-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
42 lines (31 loc) · 1.16 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
from os.path import dirname, join
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
from sendcloud import __version__
with open(join(dirname(__file__), "requirements/base.txt")) as f:
required = f.read().splitlines()
with open(join(dirname(__file__), "requirements/development.txt")) as f:
required_development = f.read().splitlines()
with open("README.md", "r") as fh:
long_description = fh.read()
class PyTest(TestCommand):
user_options = []
def run(self):
import subprocess
import sys
errno = subprocess.call([sys.executable, "-m", "pytest", "tests", "-s"])
raise SystemExit(errno)
setup(
name="sendcloud-python",
version=__version__.__version__,
long_description=long_description,
long_description_content_type="text/markdown",
license="MIT",
url="https://github.com/stasfilin/sendcloud",
author="Stanislav Filin",
py_modules=["sendcloud"],
packages=find_packages(include=["sendcloud", "sendcloud.*"]),
install_requires=required,
extras_require={"develop": required + required_development},
cmdclass=dict(test=PyTest),
)