Skip to content

Commit

Permalink
Makes coconut into a proper package
Browse files Browse the repository at this point in the history
  • Loading branch information
evhub committed Feb 23, 2015
1 parent baa9131 commit 9f2009a
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 2 deletions.
7 changes: 6 additions & 1 deletion coconut → coconut.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,22 @@

from __future__ import with_statement, print_function, absolute_import, unicode_literals, division

from milk.util import *
from milk import parser, compiler

#-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# MAIN:
#-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

if __name__ == "__main__":
def main():
"""The Main Coconut Entry Point."""
try:
compiler.readline
except AttributeError:
cmd = compiler.cli()
else:
cmd = compiler.cli(color="cyan")
cmd.start()

if __name__ == "__main__":
main()
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[bdist_wheel]
universal=1
61 changes: 61 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
#!/usr/bin/env python

#-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# INFO:
#-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

"""
Author: Evan Hubinger
Date Created: 2014
Description: Coconut Language Installer.
"""

#-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# IMPORTS:
#-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

from __future__ import with_statement, print_function, absolute_import, unicode_literals, division

from milk.util import *
import setuptools

#-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# MAIN:
#-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

setuptools.setup(
name="coconut",
version="0.0.1",
description="Coconut is a modern, developer-friendly scripting language that compiles to Python, built for functional programming.",
long_description=readfile(openfile("README.md", "r")),
url="https://github.com/evhub/coconut",
author="Evan Hubinger",
author_email="[email protected]",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Code Generators",
"Topic :: Software Development :: Compilers",
"Topic :: Software Development :: Interpreters",
"Topic :: Software Development :: Libraries",
"Environment :: Console",
"Programming Language :: Python",
"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",
"Topic :: Utilities"
],
keywords=["functional programming language"],
packages=setuptools.find_packages(),
install_requires=["pyparsing"],
extras_requires=["autopep8"],
entry_points={"console_scripts":[
"coconut = coconut:main"
]}
)

0 comments on commit 9f2009a

Please sign in to comment.