Browse Source

Setup script and ArchLinux PKGBUILD

Thomas Jost 13 years ago
parent
commit
e5538e0beb
3 changed files with 57 additions and 0 deletions
  1. 6
    0
      .gitignore
  2. 20
    0
      pkg/PKGBUILD
  3. 31
    0
      setup.py

+ 6
- 0
.gitignore View File

@@ -1,3 +1,9 @@
1 1
 .*.swp
2 2
 *.pyc
3 3
 *.tar.bz2
4
+*.tar.gz
5
+*.egg-info
6
+MANIFEST
7
+dist
8
+pkg/pkg
9
+pkg/src

+ 20
- 0
pkg/PKGBUILD View File

@@ -0,0 +1,20 @@
1
+# Contributor: Schnouki <thomas.jost@gmail.com>
2
+pkgname=python-filedropper
3
+_pkgname=FileDropper
4
+pkgver=0.1
5
+pkgrel=1
6
+pkgdesc="A Python module providing an easy access to FileDropper.com"
7
+arch=(any)
8
+url=""
9
+license=('ISC')
10
+depends=('python>=2.6' 'beautiful-soup' 'urlgrabber' 'python-poster')
11
+source=(http://dev.schnouki.net/filedropper/$_pkgname-$pkgver.tar.gz)
12
+
13
+build() {
14
+  cd "$srcdir/$_pkgname-$pkgver"
15
+
16
+  python setup.py build || return 1
17
+  python setup.py install --root=$pkgdir || return 1
18
+}
19
+
20
+md5sums=('aceeefa6842b887b9e7e982e742563fd')

+ 31
- 0
setup.py View File

@@ -0,0 +1,31 @@
1
+#!/usr/bin/env python
2
+# -*- coding: utf-8 -*-
3
+
4
+from setuptools import setup
5
+
6
+setup(
7
+    name='FileDropper',
8
+    version='0.1',
9
+
10
+    description='Easy access to FileDropper.com',
11
+    long_description="""
12
+    Full access to FileDropper.com. With this module you can upload files, log
13
+    into a premium account, list the files for this account, delete them or
14
+    change their permissions.
15
+    """,
16
+    license='ISC',
17
+
18
+    author='Thomas Jost',
19
+    author_email='thomas.jost@gmail.com',
20
+    url='https://wiki.schnouki.net/dev:filedropper',
21
+    download_url='http://dev.schnouki.net/filedropper/',
22
+
23
+    platforms='Python 2.6',
24
+    install_requires=['BeautifulSoup', 'urlgrabber', 'poster'],
25
+    extra_requires = {
26
+        'GnuPG': ['GnuPGInterface'],
27
+    },
28
+
29
+    py_modules=['FileDropper'],
30
+    scripts=['ffx-backup.py', 'cron-ffx-backup.sh'],
31
+)

Loading…
Cancel
Save