Bump to 1.0.0 and update setup.py to drop command line usage
This commit is contained in:
1 parent
5390fd507f
commit
e45e031820
2 files changed
+31
-49
No files matched your search
@@ -14,8 +14,6 @@
|
|||||||
|
|
||||||
from appdirs import user_cache_dir
|
from appdirs import user_cache_dir
|
||||||
|
|
||||||
__version__ = "0.1.5"
|
__version__ = "1.0.0"
|
||||||
|
|
||||||
MIGRATION_FOLDER_NAME = "migrations"
|
|
||||||
|
|
||||||
DEFAULT_CACHE_PATH = user_cache_dir("django-migration-linter", version=__version__)
|
DEFAULT_CACHE_PATH = user_cache_dir("django-migration-linter", version=__version__)
|
||||||
@@ -21,7 +21,7 @@ PROJECT_DIR = path.abspath(path.dirname(__file__))
|
|||||||
|
|
||||||
|
|
||||||
def get_version():
|
def get_version():
|
||||||
constants = path.join(PROJECT_DIR, 'django_migration_linter', 'constants.py')
|
constants = path.join(PROJECT_DIR, "django_migration_linter", "constants.py")
|
||||||
_version_re = re.compile(r"__version__\s+=\s+(?P<version>.*)")
|
_version_re = re.compile(r"__version__\s+=\s+(?P<version>.*)")
|
||||||
with open(constants, "r") as f:
|
with open(constants, "r") as f:
|
||||||
match = _version_re.search(f.read())
|
match = _version_re.search(f.read())
|
||||||
@@ -29,59 +29,43 @@ def get_version():
|
|||||||
return str(ast.literal_eval(version))
|
return str(ast.literal_eval(version))
|
||||||
|
|
||||||
|
|
||||||
with open(path.join(PROJECT_DIR, 'README.rst')) as f:
|
with open(path.join(PROJECT_DIR, "README.rst")) as f:
|
||||||
long_description = f.read()
|
long_description = f.read()
|
||||||
|
|
||||||
install_requirements = [
|
|
||||||
'django>=1.11',
|
|
||||||
'appdirs==1.4.3'
|
|
||||||
]
|
|
||||||
|
|
||||||
test_requirements = [
|
|
||||||
'pytest',
|
|
||||||
'tox',
|
|
||||||
'django-fake-database-backends',
|
|
||||||
]
|
|
||||||
|
|
||||||
# noinspection PyUnresolvedReferences
|
|
||||||
setup(
|
setup(
|
||||||
name='django-migration-linter',
|
name="django-migration-linter",
|
||||||
version=get_version(),
|
version=get_version(),
|
||||||
|
description="Detect backward incompatible migrations for your django project",
|
||||||
description='Detect backward incompatible migrations for your django project',
|
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
url='https://github.com/3YOURMIND/django-migration-linter',
|
url="https://github.com/3YOURMIND/django-migration-linter",
|
||||||
author='3YOURMIND GmbH',
|
author="3YOURMIND GmbH",
|
||||||
license='Apache License 2.0',
|
license="Apache License 2.0",
|
||||||
|
packages=find_packages(exclude=["tests/"]),
|
||||||
packages=find_packages(exclude=['tests/']),
|
install_requires=["django>=1.11", "appdirs==1.4.3"],
|
||||||
install_requires=install_requirements,
|
|
||||||
extras_require={
|
extras_require={
|
||||||
'test': test_requirements
|
"test": [
|
||||||
},
|
"tox==3.9.0",
|
||||||
entry_points={
|
"mysqlclient==1.4.2",
|
||||||
'console_scripts': [
|
"psycopg2-binary==2.8.2",
|
||||||
'django-migration-linter = django_migration_linter.migration_linter:_main'
|
"django_add_default_value==0.3.1",
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
keywords="django migration lint linter database backward compatibility",
|
||||||
keywords='django migration lint linter database backward compatibility',
|
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Development Status :: 4 - Beta',
|
"Development Status :: 4 - Beta",
|
||||||
'Intended Audience :: Developers',
|
"Intended Audience :: Developers",
|
||||||
'Environment :: Web Environment',
|
"Environment :: Web Environment",
|
||||||
'Framework :: Django',
|
"Framework :: Django",
|
||||||
'Framework :: Django :: 1.11',
|
"Framework :: Django :: 1.11",
|
||||||
'Framework :: Django :: 2.0',
|
"Framework :: Django :: 2.0",
|
||||||
'Framework :: Django :: 2.1',
|
"Framework :: Django :: 2.1",
|
||||||
|
"Programming Language :: Python",
|
||||||
'Programming Language :: Python',
|
"Programming Language :: Python :: 2",
|
||||||
'Programming Language :: Python :: 2',
|
"Programming Language :: Python :: 2.7",
|
||||||
'Programming Language :: Python :: 2.7',
|
"Programming Language :: Python :: 3",
|
||||||
'Programming Language :: Python :: 3',
|
"Programming Language :: Python :: 3.5",
|
||||||
'Programming Language :: Python :: 3.4',
|
"Programming Language :: Python :: 3.6",
|
||||||
'Programming Language :: Python :: 3.5',
|
"Programming Language :: Python :: 3.7",
|
||||||
'Programming Language :: Python :: 3.6',
|
],
|
||||||
'Programming Language :: Python :: 3.7',
|
|
||||||
]
|
|
||||||
)
|
)
|
||||||
Reference in new issue
Block a user