-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
59 lines (52 loc) · 1.66 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
# Always prefer setuptools over distutils
import subprocess
from distutils.command import build as build_module
from setuptools import setup, find_packages
# To use a consistent encoding
import codecs
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with codecs.open(path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
extras_require = {
"test": [
"empty_testproject",
"pylint-django",
"black",
"vdt.versionplugin.wheel",
"coverage",
"ocyan.plugin.wagtail",
]
}
class BuildNPM(build_module.build):
def run(self):
subprocess.check_call(["npm", "install"])
subprocess.check_call(["npm", "run", "build"])
super().run()
setup(
name="wagtail-roadrunner",
version="3.0.0",
description="RoadRunner",
long_description=long_description,
url="https://gitlab.com/uwkm-frets/RoadRunner",
branch_url="https://gitlab.com/uwkm-frets/RoadRunner/tree/master",
download_url="https://gitlab.com/uwkm-frets/RoadRunner/repository/archive.zip",
author="UWKM",
author_email="[email protected]",
license="MIT",
include_package_data=True,
packages=find_packages(),
classifiers=[
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Framework :: Django :: 2.0",
"Framework :: Django :: 2.1",
"Framework :: Django :: 2.2",
"Framework :: Wagtail :: 2",
],
keywords="RoadRunner",
install_requires=["wagtail", "beautifulsoup4"],
extras_require=extras_require,
cmdclass={"build": BuildNPM},
)