This commit is contained in:
2
LICENSE
Normal file
2
LICENSE
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
Permission to use, copy, modify, and/or distribute this software
|
||||||
|
for any purpose with or without fee is hereby granted.
|
||||||
29
README.rst
29
README.rst
@@ -1,19 +1,36 @@
|
|||||||
ABOUT
|
ABOUT
|
||||||
=====
|
=====
|
||||||
This is a helper to deploy django apps.
|
This is a helper to deploy reusable django apps
|
||||||
|
into a django project.
|
||||||
|
|
||||||
|
|
||||||
REQUIREMENTS
|
REQUIREMENTS
|
||||||
============
|
============
|
||||||
See INSTALL.rst
|
- python >= 2.7
|
||||||
|
- Django
|
||||||
|
(will be pulled in by pip, if you haven't installed it already.
|
||||||
|
Probably this is why you are interested in this project)
|
||||||
|
|
||||||
|
|
||||||
INSTALLATION
|
INSTALLATION
|
||||||
============
|
============
|
||||||
See INSTALL.rst
|
``pip install .``
|
||||||
|
|
||||||
|
|
||||||
LICENCE
|
USAGE
|
||||||
|
=====
|
||||||
|
``django-deploy.py --help``
|
||||||
|
|
||||||
|
|
||||||
|
DEVELOPMENT
|
||||||
|
===========
|
||||||
|
For running the test suite, you will need tox
|
||||||
|
(or pytest and mock).
|
||||||
|
|
||||||
|
Running the test suite:
|
||||||
|
``tox``
|
||||||
|
|
||||||
|
|
||||||
|
LICENSE
|
||||||
=======
|
=======
|
||||||
Permission to use, copy, modify, and/or distribute this software
|
See LICENSE
|
||||||
for any purpose with or without fee is hereby granted.
|
|
||||||
|
|||||||
27
setup.py
27
setup.py
@@ -6,6 +6,13 @@ from setuptools import setup, find_packages
|
|||||||
from setuptools import Command
|
from setuptools import Command
|
||||||
|
|
||||||
|
|
||||||
|
def long_description():
|
||||||
|
path = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
file = os.path.join(path, 'README.rst')
|
||||||
|
with open(file) as f:
|
||||||
|
return f.read()
|
||||||
|
|
||||||
|
|
||||||
class MyCommand(Command):
|
class MyCommand(Command):
|
||||||
user_options = []
|
user_options = []
|
||||||
|
|
||||||
@@ -61,10 +68,22 @@ class CreatePythonEnvironment(MyCommand):
|
|||||||
setup(
|
setup(
|
||||||
name='django-deploy',
|
name='django-deploy',
|
||||||
version='0.2.dev0',
|
version='0.2.dev0',
|
||||||
description='Helper to deploy django apps.',
|
description='A helper to deploy reusable django apps into a django project.',
|
||||||
|
long_description=long_description(),
|
||||||
|
long_description_content_type='text/x-rst',
|
||||||
url='https://dev.heinzelwerk.de/git/python/django-deploy',
|
url='https://dev.heinzelwerk.de/git/python/django-deploy',
|
||||||
maintainer='Jens Kleineheismann',
|
author='Jens Kleineheismann',
|
||||||
maintainer_email='heinzel@farbemachtstark.de',
|
author_email='heinzel@farbemachtstark.de',
|
||||||
|
classifiers=[
|
||||||
|
'Development Status :: 3 - Alpha',
|
||||||
|
'Environment :: Console',
|
||||||
|
'Framework :: Django',
|
||||||
|
'Intended Audience :: Developers',
|
||||||
|
'Intended Audience :: System Administrators',
|
||||||
|
'License :: Public Domain',
|
||||||
|
'Operating System :: OS Independent',
|
||||||
|
'Programming Language :: Python',
|
||||||
|
],
|
||||||
cmdclass={
|
cmdclass={
|
||||||
'python': CreatePythonEnvironment,
|
'python': CreatePythonEnvironment,
|
||||||
},
|
},
|
||||||
@@ -76,8 +95,8 @@ setup(
|
|||||||
'django-deploy.py = django_deploy:main',
|
'django-deploy.py = django_deploy:main',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
python_requires='>=2.7',
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'django',
|
'django',
|
||||||
'mock',
|
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|||||||
1
tox.ini
1
tox.ini
@@ -6,6 +6,7 @@ deps = coverage
|
|||||||
py2: pylint-django<2
|
py2: pylint-django<2
|
||||||
py3: pylint-django
|
py3: pylint-django
|
||||||
pytest
|
pytest
|
||||||
|
mock
|
||||||
commands = coverage run -m pytest
|
commands = coverage run -m pytest
|
||||||
coverage report --skip-covered --fail-under=98
|
coverage report --skip-covered --fail-under=98
|
||||||
pylint django_deploy
|
pylint django_deploy
|
||||||
|
|||||||
Reference in New Issue
Block a user