lutin/setup.py

71 lines
1.9 KiB
Python
Raw Normal View History

#!/usr/bin/python
# -*- coding: utf-8 -*-
##
## @author Edouard DUPIN
##
## @copyright 2012, Edouard DUPIN, all right reserved
##
## @license MPL v2.0 (see license file)
##
from setuptools import setup
2019-08-28 00:23:32 +02:00
import os
2015-05-08 15:23:56 +02:00
def readme():
with open('README.rst') as f:
return f.read()
2019-08-28 00:23:32 +02:00
def read_version_file():
if not os.path.isfile("version.txt"):
return ""
file = open("version.txt", "r")
data_file = file.read()
file.close()
if len(data_file) > 4 and data_file[-4:] == "-dev":
data_file = data_file[:-4]
return data_file
2015-05-08 15:23:56 +02:00
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
setup(name='lutin',
2019-08-28 00:23:32 +02:00
version=read_version_file(),
2015-10-21 21:56:53 +02:00
description='Lutin generic builder (might replace makefile, CMake ...)',
2015-05-08 15:23:56 +02:00
long_description=readme(),
url='http://github.com/HeeroYui/lutin',
author='Edouard DUPIN',
author_email='yui.heero@gmail.com',
license='MPL-2',
2015-06-12 21:35:28 +02:00
packages=['lutin',
'lutin/z_builder',
'lutin/z_system',
'lutin/z_target',
],
2015-05-08 15:23:56 +02:00
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
2015-05-08 15:23:56 +02:00
'Programming Language :: Python',
'Topic :: Software Development :: Build Tools',
2015-05-08 15:23:56 +02:00
],
keywords='builder c++ c android ios macos makefile cmake',
scripts=['bin/lutin'],
2015-10-15 21:24:20 +02:00
# Does not work on MacOs
#data_file=[
# ('/etc/bash_completion.d', ['bash-autocompletion/lutin']),
#],
install_requires=[
'realog',
'death',
],
2015-06-12 21:35:28 +02:00
include_package_data = True,
zip_safe=False)
2015-05-11 21:28:04 +02:00
2015-10-20 23:39:12 +02:00
#To developp: sudo ./setup.py install
# sudo ./setup.py develop
2017-03-21 22:32:11 +01:00
#pylint test: pylint2 --rcfile=pylintRcFile.txt lutin/module.py
2015-05-11 21:28:04 +02:00
2019-04-15 22:40:22 +02:00
#TO register all in pip: use external tools:
# pip install twine
# # create the archive
# ./setup.py sdist
# twine upload dist/*