This repository was archived by the owner on Sep 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·69 lines (55 loc) · 1.67 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·69 lines (55 loc) · 1.67 KB
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
66
67
68
69
#!/usr/bin/env python
import os
import re
from setuptools import setup, Command
here = os.path.abspath(os.path.dirname(__file__))
version = "0.0.0"
with open(os.path.join(here, "CHANGES.rst")) as changes:
for line in changes:
version = line.strip()
if re.search('^[0-9]+\.[0-9]+(\.[0-9]+)?$', version):
break
class VersionCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
# noinspection PyMethodMayBeStatic
def run(self):
print(version)
readme = open('README.rst').read()
history = open('CHANGES.rst').read().replace('.. :changelog:', '')
setup(
name='quickstartup',
version=version,
description="""Quickstartup package used by Quickstartup Template""",
long_description=readme + '\n\n' + history,
author='Osvaldo Santana Neto',
author_email='quickstartup@osantana.me',
url='https://github.com/osantana/quickstartup',
packages=[
'quickstartup',
],
include_package_data=True,
install_requires=[
"django>=3.1,<3.2",
"django-widget-tweaks>=1.4,<1.5",
"django-model-utils>=4.0,<4.1",
"django-ipware>=3.0,<3.1",
"djmail>=2.0,<2.1",
],
license="MIT",
zip_safe=False,
keywords='quickstartup',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
],
cmdclass={'version': VersionCommand},
)