Package for pip
This commit is contained in:
parent
05202d596f
commit
5f43faa7f3
2
MANIFEST.in
Normal file
2
MANIFEST.in
Normal file
@ -0,0 +1,2 @@
|
||||
include LICENSE
|
||||
include README.rst
|
||||
@ -6,7 +6,9 @@ hererocks
|
||||
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
|
||||
-----
|
||||
|
||||
6
hererocks.py
Normal file → Executable file
6
hererocks.py
Normal file → Executable file
@ -1,4 +1,7 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
"""A tool for installing Lua and LuaRocks locally."""
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import argparse
|
||||
@ -15,7 +18,8 @@ try:
|
||||
except ImportError:
|
||||
from urllib.request import urlretrieve
|
||||
|
||||
hererocks_version = "Hererocks 0.0.1"
|
||||
hererocks_version = "Hererocks 0.0.3"
|
||||
__all__ = ["main"]
|
||||
|
||||
platform_to_lua_target = {
|
||||
"linux": "linux",
|
||||
|
||||
40
setup.py
Normal file
40
setup.py
Normal 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"
|
||||
]
|
||||
}
|
||||
)
|
||||
Loading…
x
Reference in New Issue
Block a user