From b3e7925d666dfd1b5f5f68b402484985e8e08d1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Tue, 21 Mar 2017 16:33:13 +0100 Subject: Add a setup.py file --- setup.py | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 setup.py (limited to 'setup.py') diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..715110e --- /dev/null +++ b/setup.py @@ -0,0 +1,69 @@ +# -*- coding: utf-8 -*- +import codecs +import os +from setuptools import setup, find_packages + +here = os.path.abspath(os.path.dirname(__file__)) + + +def read_file(filename): + """Open a related file and return its content.""" + with codecs.open(os.path.join(here, filename), encoding='utf-8') as f: + content = f.read() + return content + + +README = read_file('README.rst') +CHANGELOG = read_file('CHANGELOG.rst') + +REQUIREMENTS = [ + 'flask>=0.11' + 'flask-wtf>=0.13', + 'flask-sqlalchemy', + 'flask-mail>=0.8', + 'Flask-Migrate>=1.8.0', + 'flask-babel', + 'flask-rest', + 'jinja2>=2.6', + 'raven', + 'blinker', + 'six>=1.10', +] + +DEPENDENCY_LINKS = [ +] + +ENTRY_POINTS = { + 'paste.app_factory': [ + 'main = budget.run:main', + ], +} + + +setup(name='ihatemoney', + version='1.0.0', + description='A simple shared budget manager web application.', + long_description="{}\n\n{}".format(README, CHANGELOG), + license='Custom BSD Beerware', + classifiers=[ + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: Implementation :: CPython", + "Topic :: Internet :: WWW/HTTP", + "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", + ], + keywords="web budget", + author='Alexis Métaireau & contributors', + author_email='alexis@notmyidea.org', + url='https://github.com/spiral-project/ihatemoney', + packages=find_packages(), + package_data={'': ['*.rst', '*.py', '*.yaml', '*.po', '*.mo', '*.html', + '*.css', '*.js', '*.eot', '*.svg', '*.woff', '*.txt', + '*.png', '*.ini', '*.cfg']}, + include_package_data=True, + zip_safe=False, + install_requires=REQUIREMENTS, + dependency_links=DEPENDENCY_LINKS, +entry_points=ENTRY_POINTS) -- cgit v1.1 From ce236303efdca4d3afb8b2b27b8be9ae732b5703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Tue, 21 Mar 2017 17:15:11 +0100 Subject: Specify python 2.7 and remove 3.6 since we do not test against it yet --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 715110e..a551fc7 100644 --- a/setup.py +++ b/setup.py @@ -47,9 +47,9 @@ setup(name='ihatemoney', license='Custom BSD Beerware', classifiers=[ "Programming Language :: Python", + "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", -- cgit v1.1 From bfcb9ef966df436a23af0a042e0addb7e1196f58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Wed, 22 Mar 2017 18:02:01 +0100 Subject: Fix setup.py mistake --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index a551fc7..1e59227 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ README = read_file('README.rst') CHANGELOG = read_file('CHANGELOG.rst') REQUIREMENTS = [ - 'flask>=0.11' + 'flask>=0.11', 'flask-wtf>=0.13', 'flask-sqlalchemy', 'flask-mail>=0.8', -- cgit v1.1