Skip to content

Commit

Permalink
Package for pip
Browse files Browse the repository at this point in the history
  • Loading branch information
mpeterv committed Aug 14, 2015
1 parent 05202d5 commit 5f43faa
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 2 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include LICENSE
include README.rst
4 changes: 3 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----
Expand Down
6 changes: 5 additions & 1 deletion hererocks.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python

"""A tool for installing Lua and LuaRocks locally."""

from __future__ import print_function

import argparse
Expand All @@ -15,7 +18,8 @@
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",
Expand Down
40 changes: 40 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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="[email protected]",
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"
]
}
)

0 comments on commit 5f43faa

Please sign in to comment.