-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
75 lines (66 loc) · 2.25 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
66
67
68
69
70
71
72
73
74
75
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, Command, find_namespace_packages
class TestCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import django
from django.conf import settings
from django.core.management import call_command
settings.configure(
DATABASES={
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'partitioning',
'USER': 'postgres',
'PASSWORD': 'postgres',
'HOST': 'localhost',
'PORT': '5432',
}
},
INSTALLED_APPS=['partitioning', 'tests.app']
)
django.setup()
call_command('test', 'tests')
with open('README.md', 'r', encoding='utf-8') as f:
long_description = f.read()
setup(
name='django-postgresql-partitioning',
version='0.1.1',
url='https://github.com/starnavi-team/django-postgresql-partitioning',
packages=find_namespace_packages(),
include_package_data=True,
license='BSD License',
description='Add PostgreSQL table partitioning to Django models',
long_description=long_description,
long_description_content_type='text/markdown',
author='starnavi.io',
author_email='hello@starnavi.io',
install_requires=[
'Django>=1.11,<5.1', 'setuptools'
],
tests_require=[
'Django>=1.11,<5.1', 'setuptools'
],
cmdclass={'test': TestCommand},
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Framework :: Django',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Natural Language :: English',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'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',
]
)