Browse Source

create wheel and archive file for pip install

master
antoine 5 years ago
parent
commit
990cc158f8
8 changed files with 182 additions and 1 deletions
  1. +8
    -0
      LICENSE
  2. +88
    -0
      README.html
  3. +30
    -0
      README.rst
  4. +0
    -1
      URL
  5. +1
    -0
      VDMAPI/version.py
  6. BIN
      dist/VDM API-1.0.tar.gz
  7. BIN
      dist/VDM_API-1.0-py2.py3-none-any.whl
  8. +55
    -0
      setup.py

+ 8
- 0
LICENSE View File

@@ -0,0 +1,8 @@
/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <antoinroux@hotmail.fr> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return Poul-Henning Kamp
* ----------------------------------------------------------------------------
*/

+ 88
- 0
README.html View File

@@ -0,0 +1,88 @@
<!DOCTYPE html><html><head><meta charset="utf-8"><title></title><style type="text/css">body{
font-family: helvetica;
color: #222;
}

li>p{
margin-bottom: 0;
}

.line{
margin-bottom: 0.3em;
display: table;
}

.admonition-title {
font-size: 1.3em;
font-weight: bold;
}

aside{
float: right;
width: 20%;
display: table;
padding: 1em;
margin: 1em;
margin-right: 0;
}

.footnote, .cite{
width: 98%;
display: table;
border: 1px solid #ddd;
padding: 0.5%;
margin: 0.5%;
}

.footnote .du-label, .cite .du-label{
float: left;
height: 100%;
width: 5%;
margin-right: 1em;
padding: 0.5%;
text-align: center;
display: table;
}

th, th p{
font-weight: bold;
}

.field-label{
font-weight: bold;
}

ol.arabic{
list-style-type: decimal;
}

ol.loweralpha{
list-style-type: lower-alpha;
}

ol.upperalpha{
list-style-type: upper-alpha;
}

ol.lowerroman{
list-style-type: lower-roman;
}

ol.upperroman{
list-style-type: upper-roman;
}

img.align-left{
float: left;
}

img.align-right{
float: right;
}
</style></head><body><h1>VDM API</h1><p>V1.0</p><p><strong>VDM API</strong> is a python api for pull random api.</p><section id="use-case"><header><h2>Use case</h2></header><p>You can use this API in python langage by instanciate a VDM() object :</p><pre>from VDMAPI.VDM import VDM

if __name__ == "__main__":
vdm = VDM()
lstAllVDM = vdm.get()
for i, vdm in enumerate(lstAllVDM):
print(str(i)+" : "+vdm)</pre></section><section id="available-gui"><header><h2>Available GUI</h2></header><p><strong>VDM API</strong> include four display mode :</p><ul><li><p><strong>i3</strong> : this GUI use dmenu for display the list of VDM</p></li><li><p><strong>tkinter</strong> : this use tkinter native interface</p></li><li><p><strong>kivy</strong> : use kivy library</p></li><li><p><strong>console</strong> : this last mode display the list of VDM in plain text mode</p></li></ul></section></body></html>

+ 30
- 0
README.rst View File

@@ -0,0 +1,30 @@
*******
VDM API
*******
V1.0

**VDM API** is a python api for pull random api.

Use case
========
You can use this API in python langage by instanciate a VDM() object :
::
from VDMAPI.VDM import VDM
if __name__ == "__main__":
vdm = VDM()
lstAllVDM = vdm.get()
for i, vdm in enumerate(lstAllVDM):
print(str(i)+" : "+vdm)


Available GUI
=============

**VDM API** include four display mode :

- **i3** : this GUI use dmenu for display the list of VDM
- **tkinter** : this use tkinter native interface
- **kivy** : use kivy library
- **console** : this last mode display the list of VDM in plain text mode

+ 0
- 1
URL View File

@@ -1 +0,0 @@
http://www.viedemerde.fr/aleatoire

+ 1
- 0
VDMAPI/version.py View File

@@ -0,0 +1 @@
version = '1.0'

BIN
dist/VDM API-1.0.tar.gz View File


BIN
dist/VDM_API-1.0-py2.py3-none-any.whl View File


+ 55
- 0
setup.py View File

@@ -0,0 +1,55 @@
"""
VDMAPI
"""

import os
import sys
from setuptools import find_packages, setup

module_path = os.path.join(
os.path.dirname(os.path.realpath(__file__)), 'VDMAPI')
sys.path.insert(0, module_path)
from version import version
sys.path.remove(module_path)


# Utility function to read the README file.
# Used for the long_description. It's nice, because now
# 1) we have a top level README file and
# 2) it's easier to type in the README file than to put a raw string in below ...
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()


setup(
name='VDM API',
version=version,
author='Antoine Roux',
author_email='antoinroux@hotmail.fr',
description='VDM API: an API for recover random VDM from vdm.fr website',
long_description=read('README.rst'),
url='git://176.189.130.29/python/vdmAPI.git',
download_url='git://176.189.130.29/python/vdmAPI.git/tags',
license='Beerware',
platforms='any',
packages=find_packages(),
include_package_data=True,
install_requires=[],
entry_points={
'console_scripts': [
'vdm = VDMAPI:main',
]
},
classifiers=[
'License :: FSF approved :: Beerware License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development :: Libraries :: Python Modules',
], )

Loading…
Cancel
Save