mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-10 19:57:09 +03:00
52 lines
1.6 KiB
Python
52 lines
1.6 KiB
Python
#!/usr/bin/env python
|
|
|
|
import os
|
|
import sys
|
|
|
|
try:
|
|
from setuptools import setup
|
|
except ImportError:
|
|
from distutils.core import setup
|
|
|
|
# Our version ALWAYS matches the version of Django we support
|
|
# If Django has a new release, we branch, tag, then update this setting after the tag.
|
|
version = "3.1.12"
|
|
|
|
if sys.argv[-1] == "tag":
|
|
os.system(f'git tag -a {version} -m "version {version}"')
|
|
os.system("git push --tags")
|
|
sys.exit()
|
|
|
|
with open("README.rst") as readme_file:
|
|
long_description = readme_file.read()
|
|
|
|
setup(
|
|
name="cookiecutter-django",
|
|
version=version,
|
|
description="A Cookiecutter template for creating production-ready Django projects quickly.",
|
|
long_description=long_description,
|
|
author="Daniel Roy Greenfeld",
|
|
author_email="pydanny@gmail.com",
|
|
url="https://github.com/pydanny/cookiecutter-django",
|
|
packages=[],
|
|
license="BSD",
|
|
zip_safe=False,
|
|
classifiers=[
|
|
"Development Status :: 4 - Beta",
|
|
"Environment :: Console",
|
|
"Framework :: Django :: 3.0",
|
|
"Intended Audience :: Developers",
|
|
"Natural Language :: English",
|
|
"License :: OSI Approved :: BSD License",
|
|
"Programming Language :: Python",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.9",
|
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
"Topic :: Software Development",
|
|
],
|
|
keywords=(
|
|
"cookiecutter, Python, projects, project templates, django, "
|
|
"skeleton, scaffolding, project directory, setup.py"
|
|
),
|
|
)
|