Skip to content

Commit

Permalink
initiation
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed Nov 18, 2019
1 parent be43b63 commit a279aee
Show file tree
Hide file tree
Showing 16 changed files with 212 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.DS_Store
*.pyc
*.egg-info
*.swp
tags
hepsiburadacom/docs/current
18 changes: 18 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
include MANIFEST.in
include requirements.txt
include *.json
include *.md
include *.py
include *.txt
recursive-include hepsiburadacom *.css
recursive-include hepsiburadacom *.csv
recursive-include hepsiburadacom *.html
recursive-include hepsiburadacom *.ico
recursive-include hepsiburadacom *.js
recursive-include hepsiburadacom *.json
recursive-include hepsiburadacom *.md
recursive-include hepsiburadacom *.png
recursive-include hepsiburadacom *.py
recursive-include hepsiburadacom *.svg
recursive-include hepsiburadacom *.txt
recursive-exclude hepsiburadacom *.pyc
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# hepsiburadacom
## Hepsiburadacom

TR hepsiburada.com integration for ErpNext

#### License

MIT
4 changes: 4 additions & 0 deletions hepsiburadacom/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

__version__ = '0.0.1'
Empty file.
15 changes: 15 additions & 0 deletions hepsiburadacom/config/desktop.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from frappe import _


def get_data():
return [
{
"module_name": "Hepsiburadacom",
"color": "grey",
"icon": "octicon octicon-file-directory",
"type": "module",
"label": _("Hepsiburadacom")
}
]
12 changes: 12 additions & 0 deletions hepsiburadacom/config/docs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""
Configuration for docs
"""


# source_link = "https://github.com/[org_name]/hepsiburadacom"
# docs_base_url = "https://[org_name].github.io/hepsiburadacom"
# headline = "App that does everything"
# sub_heading = "Yes, you got that right the first time, everything"

def get_context(context):
context.brand_html = "Hepsiburadacom"
Empty file.
128 changes: 128 additions & 0 deletions hepsiburadacom/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from . import __version__ as app_version

app_name = "hepsiburadacom"
app_title = "Hepsiburadacom"
app_publisher = "Framras AS-Izmir"
app_description = "TR hepsiburada.com integration for ErpNext"
app_icon = "octicon octicon-file-directory"
app_color = "grey"
app_email = "[email protected]"
app_license = "MIT"

# Includes in <head>
# ------------------

# include js, css files in header of desk.html
# app_include_css = "/assets/hepsiburadacom/css/hepsiburadacom.css"
# app_include_js = "/assets/hepsiburadacom/js/hepsiburadacom.js"

# include js, css files in header of web template
# web_include_css = "/assets/hepsiburadacom/css/hepsiburadacom.css"
# web_include_js = "/assets/hepsiburadacom/js/hepsiburadacom.js"

# include js in page
# page_js = {"page" : "public/js/file.js"}

# include js in doctype views
# doctype_js = {"doctype" : "public/js/doctype.js"}
# doctype_list_js = {"doctype" : "public/js/doctype_list.js"}
# doctype_tree_js = {"doctype" : "public/js/doctype_tree.js"}
# doctype_calendar_js = {"doctype" : "public/js/doctype_calendar.js"}

# Home Pages
# ----------

# application home page (will override Website Settings)
# home_page = "login"

# website user home page (by Role)
# role_home_page = {
# "Role": "home_page"
# }

# Website user home page (by function)
# get_website_user_home_page = "hepsiburadacom.utils.get_home_page"

# Generators
# ----------

# automatically create page for each record of this doctype
# website_generators = ["Web Page"]

# Installation
# ------------

# before_install = "hepsiburadacom.install.before_install"
# after_install = "hepsiburadacom.install.after_install"

# Desk Notifications
# ------------------
# See frappe.core.notifications.get_notification_config

# notification_config = "hepsiburadacom.notifications.get_notification_config"

# Permissions
# -----------
# Permissions evaluated in scripted ways

# permission_query_conditions = {
# "Event": "frappe.desk.doctype.event.event.get_permission_query_conditions",
# }
#
# has_permission = {
# "Event": "frappe.desk.doctype.event.event.has_permission",
# }

# Document Events
# ---------------
# Hook on document methods and events

# doc_events = {
# "*": {
# "on_update": "method",
# "on_cancel": "method",
# "on_trash": "method"
# }
# }

# Scheduled Tasks
# ---------------

# scheduler_events = {
# "all": [
# "hepsiburadacom.tasks.all"
# ],
# "daily": [
# "hepsiburadacom.tasks.daily"
# ],
# "hourly": [
# "hepsiburadacom.tasks.hourly"
# ],
# "weekly": [
# "hepsiburadacom.tasks.weekly"
# ]
# "monthly": [
# "hepsiburadacom.tasks.monthly"
# ]
# }

# Testing
# -------

# before_tests = "hepsiburadacom.install.before_tests"

# Overriding Methods
# ------------------------------
#
# override_whitelisted_methods = {
# "frappe.desk.doctype.event.event.get_events": "hepsiburadacom.event.get_events"
# }
#
# each overriding function accepts a `data` argument;
# generated from the base implementation of the doctype dashboard,
# along with any modifications made in other Frappe apps
# override_doctype_dashboards = {
# "Task": "hepsiburadacom.task.get_dashboard_data"
# }
1 change: 1 addition & 0 deletions hepsiburadacom/modules.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hepsiburadacom
Empty file added hepsiburadacom/patches.txt
Empty file.
Empty file.
Empty file.
1 change: 1 addition & 0 deletions license.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
License: MIT
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
frappe
20 changes: 20 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages

with open('requirements.txt') as f:
install_requires = f.read().strip().split('\n')

# get version from __version__ variable in hepsiburadacom/__init__.py
from hepsiburadacom import __version__ as version

setup(
name='hepsiburadacom',
version=version,
description='TR hepsiburada.com integration for ErpNext',
author='Framras AS-Izmir',
author_email='[email protected]',
packages=find_packages(),
zip_safe=False,
include_package_data=True,
install_requires=install_requires
)

0 comments on commit a279aee

Please sign in to comment.