mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-01-24 16:24:14 +03:00
refactoring project to a also be a python package
This commit is contained in:
parent
86dd24ff6a
commit
e197fd33b1
30
{{cookiecutter.repo_name}}/setup.py
Normal file
30
{{cookiecutter.repo_name}}/setup.py
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
import {{ cookiecutter.repo_name }}
|
||||||
|
|
||||||
|
try:
|
||||||
|
from setuptools import setup
|
||||||
|
except ImportError:
|
||||||
|
from distutils.core import setup
|
||||||
|
|
||||||
|
version = {{ cookiecutter.repo_name }}.__version__
|
||||||
|
|
||||||
|
readme = open('README.rst').read()
|
||||||
|
|
||||||
|
setup(
|
||||||
|
name='{{ cookiecutter.project_name }}',
|
||||||
|
version=version,
|
||||||
|
author='{{ cookiecutter.full_name }}',
|
||||||
|
author_email='{{ cookiecutter.email }}',
|
||||||
|
packages=[
|
||||||
|
'{{ cookiecutter.repo_name }}',
|
||||||
|
],
|
||||||
|
include_package_data=True,
|
||||||
|
install_requires=[
|
||||||
|
],
|
||||||
|
zip_safe=False,
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user