Ladsgroup has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/231765

Change subject: [WIP] Add setup.py
......................................................................

[WIP] Add setup.py

Change-Id: I810560cc3591a4c8c2c4eb7c2068152613ec9568
---
A setup.py
1 file changed, 68 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/wikibase 
refs/changes/65/231765/1

diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..609bd37
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,68 @@
+# -*- coding: utf-8  -*-
+"""Installer script for pywikibase."""
+#
+# (C) Pywikibot team, 2015
+#
+# Distributed under the terms of the MIT license.
+#
+
+import sys
+
+from setuptools import find_packages, setup
+
+PYTHON_VERSION = sys.version_info[:3]
+PY2 = (PYTHON_VERSION[0] == 2)
+PY26 = (PYTHON_VERSION < (2, 7))
+
+versions_required_message = """
+Pywikibase not available on:
+%s
+
+Pywikibase is only supported under Python 2.6.5+, 2.7.2+ or 3.3+
+"""
+
+
+def python_is_supported():
+    """Check that Python is supported."""
+    # Any change to this must be copied to pwb.py
+    return (PYTHON_VERSION >= (3, 3, 0) or
+            (PY2 and PYTHON_VERSION >= (2, 7, 2)) or
+            (PY26 and PYTHON_VERSION >= (2, 6, 5)))
+
+
+if not python_is_supported():
+    raise RuntimeError(versions_required_message % sys.version)
+
+
+dependencies = []
+dependency_links = []
+
+
+name = 'pywikibase'
+version = '0.0.1'
+github_url = 'https://github.com/wikimedia/pywikibot-wikibase'
+
+setup(
+    name=name,
+    version=version,
+    description='Python package to handle Wikibase DataModel',
+    long_description=open('README.rst').read(),
+    maintainer='The Pywikibot team',
+    maintainer_email='[email protected]',
+    license='MIT License',
+    install_requires=dependencies,
+    dependency_links=dependency_links,
+    packages=find_packages(),
+    url='https://www.mediawiki.org/wiki/Pywikibot',
+    classifiers=[
+        'License :: OSI Approved :: MIT License',
+        'Development Status :: 2 - Pre-Alpha',
+        'Operating System :: OS Independent',
+        'Intended Audience :: Developers',
+        'Environment :: Console',
+        'Programming Language :: Python :: 2.7',
+        'Programming Language :: Python :: 3.4',
+        'Programming Language :: Python :: 3.3',
+    ],
+    use_2to3=True,
+)

-- 
To view, visit https://gerrit.wikimedia.org/r/231765
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I810560cc3591a4c8c2c4eb7c2068152613ec9568
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/wikibase
Gerrit-Branch: master
Gerrit-Owner: Ladsgroup <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to