island/setup.py

70 lines
1.7 KiB
Python
Raw Normal View History

2017-01-05 21:31:21 +01:00
#!/usr/bin/python
# -*- coding: utf-8 -*-
2023-03-07 22:44:26 +01:00
#
# @author Edouard DUPIN
#
# @copyright 2012, Edouard DUPIN, all right reserved
#
# @license MPL v2.0 (see license file)
#
2017-01-05 21:31:21 +01:00
from setuptools import setup
2019-08-28 00:23:32 +02:00
import os
2017-01-05 21:31:21 +01:00
2023-03-06 21:07:52 +01:00
2017-01-05 21:31:21 +01:00
def readme():
2023-03-06 21:07:52 +01:00
with open("README.rst") as f:
return f.read()
2017-01-05 21:31:21 +01:00
2019-08-28 00:23:32 +02:00
def read_version_file():
2023-03-06 21:07:52 +01:00
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
2019-08-28 00:23:32 +02:00
2017-01-05 21:31:21 +01:00
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
2023-03-06 21:07:52 +01:00
setup(
name="island",
version=read_version_file(),
description="island generic source manager (like repo in simple mode)",
long_description=readme(),
url="http://github.com/HeeroYui/island",
author="Edouard DUPIN",
author_email="yui.heero@gmail.com",
license="MPL-2",
packages=["island", "island/actions"],
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Programming Language :: Python",
"Topic :: Software Development :: Build Tools",
],
keywords="source manager repo qisrc lutin",
scripts=["bin/island"],
# Does not work on MacOs
# data_file=[
# ('/etc/bash_completion.d', ['bash-autocompletion/lutin']),
# ],
install_requires=[
"lxml",
"realog",
"death",
2023-03-30 21:44:27 +02:00
"PyYAML",
2023-03-06 21:07:52 +01:00
],
include_package_data=True,
)
2017-01-05 21:31:21 +01:00
2023-03-06 21:07:52 +01:00
# To developp: sudo ./setup.py install
2017-01-05 21:31:21 +01:00
# sudo ./setup.py develop
2023-03-06 21:07:52 +01:00
# TO register all in pip: use external tools:
2019-04-15 22:42:41 +02:00
# pip install twine
# # create the archive
# ./setup.py sdist
# twine upload dist/*