Fix pip package
This commit is contained in:
parent
007fe508cc
commit
642ba66405
3 changed files with 16 additions and 2 deletions
1
ictmpl/MANIFEST.in
Normal file
1
ictmpl/MANIFEST.in
Normal file
|
@ -0,0 +1 @@
|
||||||
|
include README.md LICENSE
|
|
@ -3,8 +3,8 @@
|
||||||
__title__ = 'ictmpl'
|
__title__ = 'ictmpl'
|
||||||
__description__ = 'Generate projects from templates'
|
__description__ = 'Generate projects from templates'
|
||||||
__url__ = 'https://github.com/ideascup/ictmpl/'
|
__url__ = 'https://github.com/ideascup/ictmpl/'
|
||||||
__version__ = '1.1.0'
|
__version__ = '1.1.2'
|
||||||
__build__ = 0x010100
|
__build__ = 0x010102
|
||||||
__author__ = 'Dmitriy Pleshevskiy'
|
__author__ = 'Dmitriy Pleshevskiy'
|
||||||
__author_email__ = 'dmitriy@ideascup.me'
|
__author_email__ = 'dmitriy@ideascup.me'
|
||||||
__license__ = 'MIT'
|
__license__ = 'MIT'
|
||||||
|
|
13
setup.py
13
setup.py
|
@ -1,7 +1,17 @@
|
||||||
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
|
# 'setup.py publish' shortcut.
|
||||||
|
if sys.argv[-1] == 'publish':
|
||||||
|
repo = '-r pypi'
|
||||||
|
if sys.argv[-2] == 'test':
|
||||||
|
repo = '-r pypitest'
|
||||||
|
|
||||||
|
os.system('python setup.py sdist bdist_wheel')
|
||||||
|
os.system('twine upload {} dist/*'.format(repo))
|
||||||
|
sys.exit()
|
||||||
|
|
||||||
here = os.path.abspath(os.path.dirname(__file__))
|
here = os.path.abspath(os.path.dirname(__file__))
|
||||||
packages = find_packages()
|
packages = find_packages()
|
||||||
|
@ -19,10 +29,13 @@ setup(
|
||||||
description=about['__description__'],
|
description=about['__description__'],
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type='text/markdown',
|
long_description_content_type='text/markdown',
|
||||||
|
license=about['__license__'],
|
||||||
author=about['__author__'],
|
author=about['__author__'],
|
||||||
author_email=about['__author_email__'],
|
author_email=about['__author_email__'],
|
||||||
url=about['__url__'],
|
url=about['__url__'],
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
|
package_data={'': ['LICENSE', 'README.md']},
|
||||||
|
include_package_data=True,
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
entry_points="""
|
entry_points="""
|
||||||
[console_scripts]
|
[console_scripts]
|
||||||
|
|
Reference in a new issue