-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
70 lines (64 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
#!/usr/bin/env python
from setuptools import setup
def parse_requirements(requirements, ignore=("setuptools",)):
"""
Read dependencies from requirements file (with version numbers if any)
Notes:
- this implementation does not support requirements files with extra
requirements
- this implementation has been taken from TailorDev/Watson's setup file
"""
with open(requirements) as f:
packages = set()
for line in f:
line = line.strip()
if line.startswith(("#", "-r", "--")):
continue
if "#egg=" in line:
line = line.split("#egg=")[1]
pkg = line.strip()
if pkg and pkg not in ignore:
packages.add(pkg)
return list(packages)
with open("README.rst") as readme_file:
readme = readme_file.read()
with open("CHANGELOG.md") as history_file:
history = history_file.read()
setup(
name="django-migration-checker",
version="0.8.0",
description="Static migration conflict checker for Django",
long_description=readme + "\n\n" + history,
author="Anton Ovchinnikov",
author_email="anton.ovchi2nikov@gmail.com",
url="https://github.com/tonyo/django-migration-checker",
packages=[
"django_migration_checker",
"django_migration_checker.cli",
],
entry_points={
"console_scripts": [
"django-find-conflicts=django_migration_checker.cli.find_conflicts:main",
],
},
include_package_data=True,
license="MIT license",
zip_safe=False,
keywords="django_migration_checker",
classifiers=[
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"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",
],
test_suite="tests",
install_requires=[],
tests_require=parse_requirements("requirements_dev.txt"),
setup_requires=parse_requirements("requirements_dev.txt"),
)