G

Add a setup.py. (WIP)

Several items must be reviewed: * descriptions * classifiers * install_requires (based on pip packages) !! For now, the launcher does not seems to work.
G

goffi 5. 4. 2018 13:53

Hi thanks for this request. It's not mergeable in the current state, there are many comments and lines coming from copy/paste. Furthermore, I'm planning to change the structure of directories. I'll probably write a new setup.py after that, I'll check this M.R. to complete what is needed.

G

goffi 2. 6. 2018 14:37

Closing this MR as a setup.py is now available.

id

1

author

jnanar

created

2017-12-23T14:13:51Z

updated

2018-06-02T14:37:09Z

labels
status
closed

Add a setup.py. (WIP) Several items must be reviewed: * descriptions * classifiers * install_requires (based on pip packages) !! For now, the launcher does not seems to work.

diff --git a/src/setup.py b/src/setup.py
new file mode 100644
--- /dev/null
+++ b/src/setup.py
@@ -0,0 +1,46 @@
+#!/usr/bin/env python2
+# -*- coding: utf-8 -*-
+# Copyright (c) 2018 errol project
+# This code is distributed under the GPLv3 License
+# The code is inspired from https://github.com/rbarrois/aionotify
+
+from setuptools import setup, find_packages
+from codecs import open
+from os import path
+
+here = path.abspath(path.dirname(__file__))
+# Arguments marked as "Required" below must be included for upload to PyPI.
+# Fields marked as "Optional" may be commented out.
+
+setup(
+    name='cagou',  # Required
+    version='0.7',  # Required
+    description='Cagou is the new desktop/Android frontend for "Salut à Toi" (SàT), the full-featured social network based on standards (XMPP) and with a strong emphasis on ethics.',
+long_description='long_description',  # Optional
+    url='https://salut-a-toi.org',  # Optional
+    author='Goffi',  # Optional
+    author_email='',
+    classifiers=[
+        # https://pypi.python.org/pypi?%3Aaction=list_classifiers
+        'Development Status :: 3 - Alpha',
+		'Environment :: X11 Applications',
+        'Intended Audience :: XXX',
+        'Topic :: Internet :: XMPP',
+        'Topic :: Communications',
+        'License :: OSI Approved :: XXX',
+        'Programming Language :: Python :: 2 :: Only',
+    ],
+    keywords='',  # Optional
+    packages=find_packages(exclude=[]),
+    #install_requires=['kivy' , 'sat' 'sat-templates', 'sat-tmp'],
+    install_requires=[],
+    # To provide executable scripts, use entry points in preference to the
+    # "scripts" keyword. Entry points provide cross-platform support and allow
+    # `pip` to create the appropriate form of executable for the target
+    # platform.
+    #
+    # For example, the following would provide a command called `sample` which
+    # executes the function `main` from this package when invoked:
+    entry_points={'console_scripts': ['cagou=cagou.main:launcher',],
+    },
+)