Skip to content
Browse files

Starting the project ralph_pricing

  • Loading branch information...
0 parents commit c43cc1aad24527dd79a8a2f66dfde35aae4c007e Radomir Dopieralski committed Apr 17, 2013
8 AUTHORS
@@ -0,0 +1,8 @@
+# -*- coding: utf-8 -*-
+
+Andrzej Jankowski
+Kamil Warguła
+Łukasz Langa
+Marcin Kliks
+Radomir Dopieralski
+Wojciech Matyśkiewicz
8 CHANGES.rst
@@ -0,0 +1,8 @@
+Change Log
+----------
+
+1.0.0
+~~~~~
+
+
+* initial release
13 LICENSE
@@ -0,0 +1,13 @@
+ Copyright 2011 Allegro Group
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
3 MANIFEST.in
@@ -0,0 +1,3 @@
+include README.rst CHANGES.rst LICENSE NOTICE
+recursive-include src/ralph_pricing/templates *.html
+recursive-include src/ralph_pricing/static *
5 NOTICE
@@ -0,0 +1,5 @@
+Ralph
+Copyright 2011-2012 Grupa Allegro Sp. z o.o.
+
+This product includes software developed at
+Grupa Allegro Sp. z o.o. (http://allegrogroup.com/).
6 README.rst
@@ -0,0 +1,6 @@
+=====
+Pricing module for Ralph
+=====
+
+The pricing module aggregates data from Ralph and from Ralph Assets to generate
+reports showing the prices of the servers in inventory per their owners daily.
55 setup.py
@@ -0,0 +1,55 @@
+# -*- encoding: utf-8 -*-
+
+import os
+import sys
+from setuptools import setup, find_packages
+
+assert sys.version_info >= (2, 7), "Python 2.7+ required."
+
+current_dir = os.path.abspath(os.path.dirname(__file__))
+with open(os.path.join(current_dir, 'README.rst')) as readme_file:
+ with open(os.path.join(current_dir, 'CHANGES.rst')) as changes_file:
+ long_description = readme_file.read() + '\n' + changes_file.read()
+
+sys.path.insert(0, current_dir + os.sep + 'src')
+from ralph_assets import VERSION
+release = ".".join(str(num) for num in VERSION)
+
+setup(
+ name='ralph_pricing',
+ version=release,
+ author='Grupa Allegro Sp. z o.o. and Contributors',
+ author_email='it-ralph-dev@allegro.pl',
+ description="Pricing module for Ralph",
+ long_description=long_description,
+ url='http://ralph.allegrogroup.com/',
+ keywords='',
+ platforms=['any'],
+ license='Apache Software License v2.0',
+ packages=find_packages('src'),
+ include_package_data=True,
+ package_dir={'': 'src'},
+ zip_safe=False, # because templates are loaded from file path
+ install_requires=[
+ 'ralph==1.2.0',
+ 'django-mptt==0.5.5',
+ ],
+ entry_points={
+ 'console_scripts': [
+ ],
+ },
+ classifiers=[
+ 'Development Status :: 4 - Beta',
+ 'Framework :: Django',
+ 'Intended Audience :: System Administrators',
+ 'License :: OSI Approved :: Apache Software License',
+ 'Natural Language :: English',
+ 'Operating System :: POSIX',
+ 'Operating System :: MacOS :: MacOS X',
+ 'Operating System :: Microsoft :: Windows :: Windows NT/2000',
+ 'Programming Language :: Python',
+ 'Programming Language :: Python :: 2.7',
+ 'Programming Language :: Python :: 2 :: Only',
+ 'Topic :: Internet :: WWW/HTTP',
+ ]
+)
0 src/ralph_pricing/__init__.py
No changes.
0 src/ralph_pricing/management/__init__.py
No changes.
0 src/ralph_pricing/management/commands/__init__.py
No changes.
3 src/ralph_pricing/models.py
@@ -0,0 +1,3 @@
+from django.db import models
+
+# Create your models here.
16 src/ralph_pricing/tests/__init__.py
@@ -0,0 +1,16 @@
+"""
+This file demonstrates writing tests using the unittest module. These will pass
+when you run "manage.py test".
+
+Replace this with more appropriate tests for your application.
+"""
+
+from django.test import TestCase
+
+
+class SimpleTest(TestCase):
+ def test_basic_addition(self):
+ """
+ Tests that 1 + 1 always equals 2.
+ """
+ self.assertEqual(1 + 1, 2)
0 src/ralph_pricing/urls.py
No changes.
1 src/ralph_pricing/views/__init__.py
@@ -0,0 +1 @@
+# Create your views here.

0 comments on commit c43cc1a

Please sign in to comment.
Something went wrong with that request. Please try again.