Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #this is not functional ( just gave you guys a model of how I'd have this done
- import os
- import sys
- from setuptools import setup, find_packages
- __author__ = 'myname'
- __version__ = '1.0'
- if sys.argv[-1] == 'publish':
- os.system('python setup.py sdist upload')
- sys.exit()
- readme = open('README.md').read()
- requirements = open('dev.txt').readlines() # I have to accordingly change the path
- test_requirements = []
- test_requirements.append('mock<1.1')
- if sys.version_info[:2] < (2, 7):
- test_requirements.append('unittest2')
- setup(
- name='djangocms-template-installer',
- version=__version__,
- description='Installer to easily bootstrap djangocms and djangocms blog into some project',
- long_description=readme,
- author=__author__,
- author_email='email@yahoo.com',
- url='https://github.com/my-git-account',
- packages=find_packages(),
- package_dir={'djangocms-template-installer': 'djangocms-template-installer'},
- include_package_data=True,
- install_requires=requirements,
- entry_points={
- 'console_scripts': [
- 'djangocms = djangocms-template_installer.main:execute'
- ]
- },
- license='BSD',
- zip_safe=False,
- keywords='djangocms-template-installer',
- classifiers=[
- 'Framework :: Django',
- 'Intended Audience :: Developers',
- 'License :: OSI Approved :: BSD License',
- 'Natural Language :: English',
- ],
- test_suite='tests',
- tests_require=test_requirements
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement