From cc4f232827d7d117e5af64b16745f3e18fdaef07 Mon Sep 17 00:00:00 2001 From: Julien Maupetit Date: Fri, 5 Oct 2018 14:12:46 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A6(core)=20add=20project=20packaging?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add base project packaging configuration. Note: setuptools seems to have issues when dealing with projects not located in the project's root [1]. Let's be pragmatic and remove the src/ directory. 1. https://github.com/pypa/setuptools/issues/1136 --- requirements.txt | 1 + setup.cfg | 31 +++++++++++++++++++++++ setup.py | 5 ++++ {src/xapi => xapi}/__init__.py | 0 {src/xapi => xapi}/admin.py | 0 {src/xapi => xapi}/apps.py | 0 {src/xapi => xapi}/migrations/__init__.py | 0 {src/xapi => xapi}/models.py | 0 {src/xapi => xapi}/tests.py | 0 {src/xapi => xapi}/views.py | 0 10 files changed, 37 insertions(+) create mode 100644 requirements.txt create mode 100644 setup.cfg create mode 100644 setup.py rename {src/xapi => xapi}/__init__.py (100%) rename {src/xapi => xapi}/admin.py (100%) rename {src/xapi => xapi}/apps.py (100%) rename {src/xapi => xapi}/migrations/__init__.py (100%) rename {src/xapi => xapi}/models.py (100%) rename {src/xapi => xapi}/tests.py (100%) rename {src/xapi => xapi}/views.py (100%) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..9c558e3 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +. diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..65b4ccb --- /dev/null +++ b/setup.cfg @@ -0,0 +1,31 @@ +;; +;; Open edX xAPI package +;; +[metadata] +name = openedx-xapi +version = 0.0.1 +description = Open edX xAPI plugin +long_description = file:README.md +long_description_content_type = text/markdown +author = Open FUN (France Universite Numerique) +author_email = fun.dev@fun-mooc.fr +url = https://github.com/openfun/openedx-xapi +license = AGPL-3.0 +keywords = Django, xAPI, Open edX +classifiers = + Development Status :: 3 - Alpha + Framework :: Django + Framework :: Django :: 1.11 + Intended Audience :: Developers + License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+) + Natural Language :: English + Programming Language :: Python :: 2 + Programming Language :: Python :: 2.7 + +[options] +include_package_data = true +packages = find: +zip_safe = false + +[wheel] +universal = 1 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..43deb57 --- /dev/null +++ b/setup.py @@ -0,0 +1,5 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +from setuptools import setup + +setup() diff --git a/src/xapi/__init__.py b/xapi/__init__.py similarity index 100% rename from src/xapi/__init__.py rename to xapi/__init__.py diff --git a/src/xapi/admin.py b/xapi/admin.py similarity index 100% rename from src/xapi/admin.py rename to xapi/admin.py diff --git a/src/xapi/apps.py b/xapi/apps.py similarity index 100% rename from src/xapi/apps.py rename to xapi/apps.py diff --git a/src/xapi/migrations/__init__.py b/xapi/migrations/__init__.py similarity index 100% rename from src/xapi/migrations/__init__.py rename to xapi/migrations/__init__.py diff --git a/src/xapi/models.py b/xapi/models.py similarity index 100% rename from src/xapi/models.py rename to xapi/models.py diff --git a/src/xapi/tests.py b/xapi/tests.py similarity index 100% rename from src/xapi/tests.py rename to xapi/tests.py diff --git a/src/xapi/views.py b/xapi/views.py similarity index 100% rename from src/xapi/views.py rename to xapi/views.py