Package for pip

This commit is contained in:
mpeterv 2015-08-14 12:35:12 +03:00
parent 05202d596f
commit 5f43faa7f3
4 changed files with 50 additions and 2 deletions

2
MANIFEST.in Normal file
View File

@ -0,0 +1,2 @@
include LICENSE
include README.rst

View File

@ -6,7 +6,9 @@ hererocks
Installation Installation
------------ ------------
TODO: package and publish on PyPI. Using `pip <https://pypi.python.org/pypi/pip>`_: run ``pip install hererocks``, using ``sudo`` if necessary.
Manually: dowbload hererocks with ``wget https://raw.githubusercontent.com/mpeterv/hererocks/master/hererocks.py``, then use ``python hererocks.py ...`` to run it.
Usage Usage
----- -----

6
hererocks.py Normal file → Executable file
View File

@ -1,4 +1,7 @@
#!/usr/bin/env python #!/usr/bin/env python
"""A tool for installing Lua and LuaRocks locally."""
from __future__ import print_function from __future__ import print_function
import argparse import argparse
@ -15,7 +18,8 @@ try:
except ImportError: except ImportError:
from urllib.request import urlretrieve from urllib.request import urlretrieve
hererocks_version = "Hererocks 0.0.1" hererocks_version = "Hererocks 0.0.3"
__all__ = ["main"]
platform_to_lua_target = { platform_to_lua_target = {
"linux": "linux", "linux": "linux",

40
setup.py Normal file
View File

@ -0,0 +1,40 @@
import codecs
import os
import setuptools
here = os.path.abspath(os.path.dirname(__file__))
readme = codecs.open(os.path.join(here, "README.rst"), encoding="UTF-8")
long_description = readme.read()
readme.close()
setuptools.setup(
name="hererocks",
version="0.0.3",
description="Tool for installing Lua and LuaRocks locally",
long_description = long_description,
keywords="lua",
url="https://github.com/mpeterv/hererocks",
author="Peter Melnichenko",
author_email="mpeterval@gmail.com",
license="MIT",
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.0",
"Programming Language :: Python :: 3.1",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5"
],
py_modules = ["hererocks"],
entry_points={
"console_scripts": [
"hererocks=hererocks:main"
]
}
)