forked from torchbox-forks/wagtail-orderable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
65 lines (57 loc) · 1.93 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
import os
import sys
import subprocess
from wagtailorderable import __version__
from setuptools import setup, find_packages
from setuptools.command.install import install
INSTALL_REQUIRES = [
"wagtail>=5.2",
"wagtail-modeladmin>=2.0.0",
]
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
'License :: OSI Approved :: zlib/libpng License',
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: Wagtail",
"Framework :: Wagtail :: 5",
"Framework :: Wagtail :: 6",
]
class VerifyVersionCommand(install):
"""Custom command to verify that the git tag matches our version"""
description = 'verify that the git tag matches our version'
def run(self):
tag = os.getenv('CIRCLE_TAG')
if tag != __version__:
info = "Git tag: {0} does not match the version of this app: {1}".format(
tag, __version__
)
sys.exit(info)
setup(
name='wagtail-orderable',
version=__version__,
description='Orderable support for Wagtail',
long_description="Provides drag-and-drop support ordering support to the ModelAdmin listing view.",
author='Elton Lee & Andy Babic',
author_email='[email protected]',
url='https://github.com/elton2048/wagtail-orderable',
install_requires=INSTALL_REQUIRES,
license='MIT',
packages=find_packages(),
include_package_data=True,
classifiers=CLASSIFIERS,
cmdclass={
'verify': VerifyVersionCommand,
},
)