Merge branch 'master' of ssh://repos.entrouvert.org/passerelle-grandlyon-cartads
Fusion avec modif fred
This commit is contained in:
commit
8b4a96d06e
|
@ -0,0 +1 @@
|
|||
/CartADS.egg-info
|
|
@ -1,10 +0,0 @@
|
|||
Metadata-Version: 1.0
|
||||
Name: CartADS
|
||||
Version: 0.0.0
|
||||
Summary: UNKNOWN
|
||||
Home-page: http://example.net/
|
||||
Author: Grand Lyon
|
||||
Author-email: toto@example.net
|
||||
License: UNKNOWN
|
||||
Description: UNKNOWN
|
||||
Platform: UNKNOWN
|
|
@ -1,8 +0,0 @@
|
|||
README
|
||||
setup.py
|
||||
CartADS.egg-info/PKG-INFO
|
||||
CartADS.egg-info/SOURCES.txt
|
||||
CartADS.egg-info/dependency_links.txt
|
||||
CartADS.egg-info/top_level.txt
|
||||
cartads/__init__.py
|
||||
cartads/models.py
|
|
@ -1 +0,0 @@
|
|||
|
|
@ -1 +0,0 @@
|
|||
cartads
|
|
@ -0,0 +1,3 @@
|
|||
include README
|
||||
include MANIFEST.in
|
||||
include VERSION
|
|
@ -7,7 +7,7 @@ from django.db import migrations, models
|
|||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0007_auto_20180129_1355'),
|
||||
('base', '0006_resourcestatus'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
passerelle-grandlyon-cartads (0-0) unstable; urgency=low
|
||||
|
||||
* initial packaging.
|
||||
|
||||
-- Frederic Peters <fpeters@entrouvert.com> Tue, 13 Mar 2018 09:17:07 +0100
|
|
@ -0,0 +1 @@
|
|||
9
|
|
@ -0,0 +1,12 @@
|
|||
Source: passerelle-grandlyon-cartads
|
||||
Maintainer: Frederic Peters <fpeters@entrouvert.com>
|
||||
Section: python
|
||||
Priority: optional
|
||||
Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), debhelper (>= 9), python-django
|
||||
Standards-Version: 3.9.1
|
||||
|
||||
Package: python-passerelle-grandlyon-cartads
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends}, ${python:Depends}, python-passerelle
|
||||
Description: Passerelle connector to Grand Lyon CartADS
|
||||
.
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
%:
|
||||
dh $@ --with python2
|
|
@ -0,0 +1 @@
|
|||
3.0 (quilt)
|
38
setup.py
38
setup.py
|
@ -1,11 +1,47 @@
|
|||
#! /usr/bin/env python
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
from distutils.command.sdist import sdist
|
||||
|
||||
class eo_sdist(sdist):
|
||||
def run(self):
|
||||
if os.path.exists('VERSION'):
|
||||
os.remove('VERSION')
|
||||
version = get_version()
|
||||
version_file = open('VERSION', 'w')
|
||||
version_file.write(version)
|
||||
version_file.close()
|
||||
sdist.run(self)
|
||||
if os.path.exists('VERSION'):
|
||||
os.remove('VERSION')
|
||||
|
||||
def get_version():
|
||||
if os.path.exists('VERSION'):
|
||||
version_file = open('VERSION', 'r')
|
||||
version = version_file.read()
|
||||
version_file.close()
|
||||
return version
|
||||
if os.path.exists('.git'):
|
||||
p = subprocess.Popen(['git', 'describe', '--dirty', '--match=v*'], stdout=subprocess.PIPE)
|
||||
result = p.communicate()[0]
|
||||
if p.returncode == 0:
|
||||
version = result.split()[0][1:]
|
||||
version = version.replace('-', '.')
|
||||
return version
|
||||
return '0'
|
||||
|
||||
|
||||
setup(
|
||||
name='CartADS',
|
||||
name='passerelle-grandlyon-cartads',
|
||||
version=get_version(),
|
||||
author='Grand Lyon',
|
||||
author_email='toto@example.net',
|
||||
url='http://example.net/',
|
||||
packages=find_packages(),
|
||||
cmdclass={
|
||||
'sdist': eo_sdist,
|
||||
}
|
||||
)
|
||||
|
|
Reference in New Issue