aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Métaireau <alexis@notmyidea.org>2017-03-21 16:33:13 +0100
committerAlexis Métaireau <alexis@notmyidea.org>2017-03-21 16:33:13 +0100
commitb3e7925d666dfd1b5f5f68b402484985e8e08d1a (patch)
treed75d4a40d512bb561d076bcb76d528ec78ca600c
parentcaf7f2b814ced8c7ad2a0bacc4e2715ec77ba344 (diff)
downloadihatemoney-mirror-b3e7925d666dfd1b5f5f68b402484985e8e08d1a.zip
ihatemoney-mirror-b3e7925d666dfd1b5f5f68b402484985e8e08d1a.tar.gz
ihatemoney-mirror-b3e7925d666dfd1b5f5f68b402484985e8e08d1a.tar.bz2
Add a setup.py file
-rw-r--r--.gitignore3
-rw-r--r--MANIFEST.in3
-rw-r--r--setup.py69
3 files changed, 75 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 6eafef1..35e8b93 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,6 @@ budget/budget.db
budget/memory
budget/settings.py
*.pyc
+*.egg-info
+dist
+.venv
diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 0000000..ba99e2a
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1,3 @@
+include *.rst
+recursive-include budget *.rst *.py *.yaml *.po *.mo *.html *.css *.js *.eot *.svg *.woff *.txt *.png *.ini *.cfg
+include LICENSE CONTRIBUTORS CHANGELOG.rst
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)