-
Notifications
You must be signed in to change notification settings - Fork 231
/
setup_win.py
653 lines (583 loc) · 21.6 KB
/
setup_win.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
#!/usr/bin/python
# -*- coding: utf8 -*-
# Para hacer el ejecutable:
# python setup.py py2exe
#
"Creador de instalador para PyAfipWs"
from __future__ import print_function
from __future__ import absolute_import
__author__ = "Mariano Reingart ([email protected])"
__copyright__ = "Copyright (C) 2008-2016 Mariano Reingart"
from distutils.core import setup
import glob
import os
import subprocess
import warnings
import sys
try:
rev = subprocess.check_output(['git', 'rev-list', '--count', '--all'],
stderr=subprocess.PIPE).strip().decode("ascii")
except:
rev = 0
__version__ = "%s.%s.%s" % (sys.version_info[0:2] + (rev, ))
HOMO = True
# build a one-click-installer for windows:
import py2exe
from pyafipws.nsis import build_installer, Target
# modulos a compilar y empaquetar (comentar si no se desea incluir):
#import pyafipws
#import pyrece
from pyafipws import wsaa
from pyafipws import wsfev1, rece1, rg3685
#import wsfexv1, recex1
#import wsbfev1, receb1
#import wsmtx, recem
#import wsct, recet
#import wsfecred
#import ws_sr_padron
#from pyafipws import pyfepdf
#import pyemail
#import pyi25
#from pyafipws import pyqr
#import ws_sire
#import wsctg
#import wslpg
#import wsltv
#import wslum
#import wslsp
#import wsremcarne
#import wsremharina
#import wsremazucar
#import wscoc
#import wscdc
#import cot
#import iibb
#import trazamed
#import trazaprodmed
#import trazarenpre
#import trazafito
#import trazavet
#import padron
#import sired
data_files = [
(".", ["licencia.txt",]),
("conf", ["conf/rece.ini", "conf/geotrust.crt", "conf/afip_ca_info.crt", ]),
("cache", glob.glob("cache/*")),
]
# herramientas opcionales a compilar y empaquetar:
try:
if 'pyfepdf' in globals() or 'pyrece' in globals():
import designer
except ImportError:
# el script pyfpdf/tools/designer.py no esta disponible:
print("IMPORTANTE: no se incluye el diseñador de plantillas PDF")
# parametros para setup:
kwargs = {}
# incluyo mis certificados para homologación (si existen)
if os.path.exists("reingart.crt"):
data_files.append(("conf", ["reingart.crt", "reingart.key"]))
if sys.version_info > (2, 7):
# add "Microsoft Visual C++ 2008 Redistributable Package (x86)"
if os.path.exists(r"c:\Program Files\Mercurial"):
data_files += [(
".", glob.glob(r'c:\Program Files\Mercurial\msvc*.dll') +
glob.glob(r'c:\Program Files\Mercurial\Microsoft.VC90.CRT.manifest'),
)]
# fix permission denied runtime error on win32com.client.gencache.GenGeneratePath
# (expects a __init__.py not pyc, also dicts.dat pickled or _LoadDicts/_SaveDicts will fail too)
# NOTE: on windows 8.1 64 bits, this is stored in C:\Users\REINGART\AppData\\Local\Temp\gen_py\2.7
from win32com.client import gencache
gen_py_path = gencache.GetGeneratePath() or "C:\Python27\lib\site-packages\win32com\gen_py"
data_files += [(
r"win32com\gen_py",
[os.path.join(gen_py_path, "__init__.py"),
os.path.join(gen_py_path, "dicts.dat")],
)]
sys.path.insert(0, r"C:\Python27\Lib\site-packages\pythonwin")
WX_DLL = (
".", glob.glob(r'C:\Python27\Lib\site-packages\pythonwin\mfc*.*') +
glob.glob(r'C:\Python27\Lib\site-packages\pythonwin\Microsoft.VC90.MFC.manifest'),
)
else:
WX_DLL = (".", [
"C:\python25\Lib\site-packages\wx-2.8-msw-unicode\wx\MSVCP71.dll",
"C:\python25\MSVCR71.dll",
"C:\python25\lib\site-packages\wx-2.8-msw-unicode\wx\gdiplus.dll",
])
# includes for py2exe
includes=['email.generator', 'email.iterators', 'email.message', 'email.utils', 'email.mime.text', 'email.mime.application', 'email.mime.multipart']
if 'pyi25' in globals() or 'pyfepdf' in globals() or 'pyqr' in globals():
includes.extend(["PIL.Image", "PIL.ImageFont", "PIL.ImageDraw"])
includes.append("dbf")
# cryptography:
includes.append("cffi")
# win32 COM
includes.extend(["win32com.server.policy"])
# optional modules:
# required modules for shelve support (not detected by py2exe by default):
for mod in ['socks', 'dbhash', 'gdbm', 'dbm', 'dumbdbm', 'anydbm']:
try:
__import__(mod)
includes.append(mod)
except ImportError:
pass
# don't pull in all this MFC stuff used by the makepy UI.
excludes=["pywin", "pywin.dialogs", "pywin.dialogs.list", "win32ui",
"Tkconstants","Tkinter","tcl",
"_imagingtk", "PIL._imagingtk", "ImageTk", "PIL.ImageTk", "FixTk",
]
# basic options for py2exe
opts = {
'py2exe': {
'includes': includes,
'optimize': 0,
'excludes': excludes,
'dll_excludes': ["mswsock.dll", "powrprof.dll", "KERNELBASE.dll",
"tcl85.dll", "tk85.dll",
# Windows 8.1 DLL:
"CRYPT32.dll", "WLDAP32.dll",
"api-ms-win-core-delayload-l1-1-1.dll",
"api-ms-win-core-errorhandling-l1-1-1.dll",
"api-ms-win-core-handle-l1-1-0.dll",
"api-ms-win-core-heap-l1-2-0.dll",
"api-ms-win-core-heap-obsolete-l1-1-0.dll",
"api-ms-win-core-libraryloader-l1-2-0.dll",
"api-ms-win-core-localization-obsolete-l1-2-0.dll",
"api-ms-win-core-processthreads-l1-1-2.dll",
"api-ms-win-core-profile-l1-1-0.dll",
"api-ms-win-core-registry-l1-1-0.dll",
"api-ms-win-core-string-l1-1-0.dll",
"api-ms-win-core-string-obsolete-l1-1-0.dll",
"api-ms-win-core-synch-l1-2-0.dll",
"api-ms-win-core-sysinfo-l1-2-1.dll",
"api-ms-win-security-base-l1-2-0.dll",
],
'skip_archive': True,
}
}
desc = "Instalador PyAfipWs"
kwargs['com_server'] = []
kwargs['console'] = []
kwargs['windows'] = []
# add 32bit or 64bit tag to the installer name
import platform
__version__ += "-" + platform.architecture()[0]
# new webservices:
if 'wsaa' in globals():
kwargs['windows'] += [Target(module=wsaa, script="wsaa.py", dest_base="wsaa_com")]
kwargs['console'] += [Target(module=wsaa, script="wsaa.py", dest_base="wsaa")]
if wsaa.TYPELIB:
data_files.append(("typelib", ["typelib/wsaa.tlb"]))
__version__ += "+wsaa_" + wsaa.__version__
HOMO &= wsaa.HOMO
if 'wsfev1' in globals():
kwargs['windows'] += [Target(module=wsfev1, script="wsfev1.py", dest_base="wsfev1_com")]
kwargs['console'] += [
Target(module=wsfev1, script='wsfev1.py', dest_base="wsfev1"),
Target(module=rece1, script='rece1.py'),
#Target(module=rg3685, script='rg3685.py'),
]
if wsfev1.TYPELIB:
data_files.append(("typelib", ["typelib/wsfev1.tlb"]))
__version__ += "+wsfev1_" + wsfev1.__version__
HOMO &= wsfev1.HOMO
if 'wsfexv1' in globals():
kwargs['com_server'] += [
Target(module=wsfexv1, modules="wsfexv1", create_exe=True, create_dll=True)
]
kwargs['console'] += [
Target(module=wsfexv1, script='wsfexv1.py', dest_base="wsfexv1_cli"),
Target(module=recex1, script='recex1.py'),
]
__version__ += "+wsfexv1_" + wsfexv1.__version__
HOMO &= wsfexv1.HOMO
if 'wsbfev1' in globals():
kwargs['com_server'] += [
Target(module=wsbfev1, modules="wsbfev1", create_exe=True, create_dll=True)
]
kwargs['console'] += [
Target(module=wsbfev1, script='wsbfev1.py', dest_base="wsbfev1_cli"),
Target(module=receb1, script='receb1.py'),
]
__version__ += "+wsbfev1_" + wsbfev1.__version__
HOMO &= wsbfev1.HOMO
if 'wsmtx' in globals():
kwargs['com_server'] += [
Target(module=wsmtx, modules="wsmtx", create_exe=True, create_dll=True)
]
kwargs['console'] += [
Target(module=wsmtx, script='wsmtx.py', dest_base="wsmtx_cli"),
Target(module=recem, script='recem.py'),
]
__version__ += "+wsmtx_" + wsmtx.__version__
HOMO &= wsmtx.HOMO
if 'wsct' in globals():
kwargs['com_server'] += [
Target(module=wsct, modules="wsct", create_exe=True, create_dll=True)
]
kwargs['console'] += [
Target(module=wsct, script='wsct.py', dest_base="wsct_cli"),
Target(module=recet, script='recet.py'),
]
__version__ += "+wsct_" + wsct.__version__
HOMO &= wsct.HOMO
if 'wsfecred' in globals():
kwargs['com_server'] += [
Target(module=wsfecred, modules="wsfecred"),
]
kwargs['console'] += [
Target(module=wsfecred, script='wsfecred.py', dest_base="wsfecred_cli"),
]
data_files += [
]
__version__ += "+wsfecred_" + wsfecred.__version__
HOMO &= wsfecred.HOMO
if 'ws_sire' in globals():
kwargs['com_server'] += [
Target(module=ws_sire, modules="ws_sire"),
]
kwargs['console'] += [
Target(module=ws_sire, script='ws_sire.py', dest_base="ws_sire_cli"),
]
data_files += [
]
__version__ += "+sire_" + ws_sire.__version__
HOMO &= ws_sire.HOMO
if 'pyfepdf' in globals():
kwargs['com_server'] += [
Target(module=pyfepdf, modules="pyfepdf", create_exe=True, create_dll=True),
]
kwargs['console'] += [
Target(module=pyfepdf, script='pyfepdf.py', dest_base="pyfepdf_cli"),
]
#kwargs['windows'] += [
# Target(module=pyfepdf, script="pyfepdf.py", dest_base="pyfepdf_com"),
# ]
data_files += [
WX_DLL,
("plantillas", ["plantillas/logo.png", "plantillas/afip.png",
"plantillas/factura.csv",
"plantillas/recibo.csv"]),
]
__version__ += "+pyfepdf_" + pyfepdf.__version__
HOMO &= pyfepdf.HOMO
if 'pyemail' in globals():
kwargs['com_server'] += [
Target(module=pyemail, modules="pyemail", create_exe=False, create_dll=True),
]
kwargs['console'] += [
Target(module=pyemail, script='pyemail.py', dest_base="pyemail"),
]
kwargs['windows'] += [
Target(module=pyemail, script="pyemail.py", dest_base="pyemail_com"),
]
data_files += [
]
__version__ += "+pyemail_" + pyemail.__version__
if 'pyi25' in globals():
kwargs['com_server'] += [
Target(module=pyi25, modules="pyi25", create_exe=False, create_dll=True),
]
kwargs['console'] += [
Target(module=pyi25, script='pyi25.py', dest_base="pyi25"),
]
kwargs['windows'] += [
Target(module=pyi25, script="pyi25.py", dest_base="pyi25_com"),
]
data_files += [
]
__version__ += "+pyi25_" + pyi25.__version__
if 'pyqr' in globals():
kwargs['com_server'] += [
Target(module=pyqr, modules="pyqr", create_exe=False, create_dll=True),
]
kwargs['console'] += [
Target(module=pyqr, script='pyqr.py', dest_base="pyqr"),
]
kwargs['windows'] += [
Target(module=pyqr, script="pyqr.py", dest_base="pyqr_com"),
]
data_files += [
]
__version__ += "+pyqr_" + pyqr.__version__
if 'wsctg' in globals():
kwargs['com_server'] += [
Target(module=wsctg, modules="wsctg"),
]
kwargs['console'] += [
Target(module=wsctg, script='wsctg.py', dest_base="wsctg_cli"),
]
__version__ += "+wsctgv4_" + wsctg.__version__
HOMO &= wsctg.HOMO
if 'wslpg' in globals():
kwargs['com_server'] += [
Target(module=wslpg, modules="wslpg"),
]
kwargs['console'] += [
Target(module=wslpg, script='wslpg.py', dest_base="wslpg_cli"),
]
data_files += [
("conf", ["conf/wslpg.ini"]),
("plantillas", [
"plantillas/liquidacion_form_c1116b_wslpg.csv",
"plantillas/liquidacion_form_c1116b_wslpg.png",
"plantillas/liquidacion_wslpg_ajuste_base.csv",
"plantillas/liquidacion_wslpg_ajuste_base.png",
"plantillas/liquidacion_wslpg_ajuste_debcred.csv",
"plantillas/liquidacion_wslpg_ajuste_debcred.png",
]),
]
__version__ += "+wslpg_" + wslpg.__version__
HOMO &= wslpg.HOMO
if 'wsltv' in globals():
kwargs['com_server'] += [
Target(module=wsltv, modules="wsltv"),
]
kwargs['console'] += [
Target(module=wsltv, script='wsltv.py', dest_base="wsltv_cli"),
]
data_files += [
("conf", ["conf/wsltv.ini"]),
("plantillas", [
]),
]
__version__ += "+wsltv_" + wsltv.__version__
HOMO &= wsltv.HOMO
if 'wslum' in globals():
kwargs['com_server'] += [
Target(module=wslum, modules="wslum"),
]
kwargs['console'] += [
Target(module=wslum, script='wslum.py', dest_base="wslum_cli"),
]
data_files += [
("conf", ["conf/wslum.ini"]),
]
__version__ += "+wslum_" + wslum.__version__
HOMO &= wslum.HOMO
if 'wslsp' in globals():
kwargs['com_server'] += [
Target(module=wslsp, modules="wslsp"),
]
kwargs['console'] += [
Target(module=wslsp, script='wslsp.py', dest_base="wslsp_cli"),
]
data_files += [
("conf", ["conf/wslsp.ini"]),
]
__version__ += "+wslsp_" + wslsp.__version__
HOMO &= wslsp.HOMO
if 'wsremcarne' in globals():
kwargs['com_server'] += [
Target(module=wsremcarne, modules="wsremcarne"),
]
kwargs['console'] += [
Target(module=wsremcarne, script='wsremcarne.py', dest_base="wsremcarne_cli"),
]
data_files += [
("conf", ["conf/wsremcarne.ini"]),
]
__version__ += "+wsremcarne_" + wsremcarne.__version__
HOMO &= wsremcarne.HOMO
if 'wsremharina' in globals():
kwargs['com_server'] += [
Target(module=wsremharina, modules="wsremharina"),
]
kwargs['console'] += [
Target(module=wsremharina, script='wsremharina.py', dest_base="wsremharina_cli"),
]
data_files += [
("conf", ["conf/wsremharina.ini"]),
]
__version__ += "+wsremharina_" + wsremharina.__version__
HOMO &= wsremharina.HOMO
if 'wsremazucar' in globals():
kwargs['com_server'] += [
Target(module=wsremazucar, modules="wsremazucar"),
]
kwargs['console'] += [
Target(module=wsremazucar, script='wsremazucar.py', dest_base="wsremazucar_cli"),
]
data_files += [
("conf", ["conf/wsremazucar.ini"]),
]
__version__ += "+wsremazucar_" + wsremazucar.__version__
HOMO &= wsremazucar.HOMO
if 'wscoc' in globals():
kwargs['com_server'] += [
Target(module=wscoc,modules="wscoc"),
]
kwargs['console'] += [
Target(module=wscoc, script='wscoc.py', dest_base="wscoc_cli"),
]
__version__ += "+wscoc_" + wscoc.__version__
HOMO &= wscoc.HOMO
if 'wscdc' in globals():
kwargs['com_server'] += [
Target(module=wscdc,modules="wscdc", create_exe=True, create_dll=True),
]
kwargs['console'] += [
Target(module=wscdc, script='wscdc.py', dest_base="wscdc_cli"),
]
__version__ += "+wscdc_" + wscdc.__version__
HOMO &= wscdc.HOMO
if 'ws_sr_padron' in globals():
kwargs['com_server'] += [
Target(module=ws_sr_padron,modules="ws_sr_padron", create_exe=True, create_dll=True),
]
kwargs['console'] += [
Target(module=ws_sr_padron, script='ws_sr_padron.py', dest_base="ws_sr_padron_cli"),
]
__version__ += "+ws_sr_padron_" + ws_sr_padron.__version__
HOMO &= ws_sr_padron.HOMO
if 'cot' in globals():
kwargs['com_server'] += [
Target(module=cot,modules="cot")
]
kwargs['console'] += [
Target(module=cot, script='cot.py', dest_base="cot_cli")
]
kwargs['windows'] += [
Target(module=cot, script='cot.pyw', dest_base="cot_win"),
]
data_files += [("datos", [
"datos/TB_20111111112_000000_20080124_000001.txt",
"datos/TB_20111111112_000000_20080124_000001.xml",
"datos/TB_20111111112_000000_20101229_000001.txt",
"datos/TB_20111111112_000000_20101229_000001.xml",
]), ("conf", ["conf/arba.crt"])]
__version__ += "+cot_" + cot.__version__
HOMO &= cot.HOMO
if 'iibb' in globals():
kwargs['com_server'] += [
Target(module=iibb,modules="iibb")
]
kwargs['console'] += [
Target(module=iibb, script='iibb.py', dest_base="iibb_cli")
]
data_files += [("conf", ["conf/arba.crt"])]
__version__ += "+iibb_" + iibb.__version__
HOMO &= iibb.HOMO
if 'trazamed' in globals():
kwargs['com_server'] += [
Target(module=trazamed, modules="trazamed", create_exe=not trazamed.TYPELIB, create_dll=not trazamed.TYPELIB),
]
kwargs['console'] += [
Target(module=trazamed, script='trazamed.py', dest_base="trazamed_cli"),
]
if trazamed.TYPELIB:
kwargs['windows'] += [Target(module=trazamed, script="trazamed.py", dest_base="trazamed")]
data_files.append((".", ["trazamed.tlb"]))
__version__ += "+trazamed_" + trazamed.__version__
HOMO &= trazamed.HOMO
if 'trazaprodmed' in globals():
kwargs['com_server'] += [
Target(module=trazaprodmed, modules="trazaprodmed", create_exe=not trazaprodmed.TYPELIB, create_dll=not trazaprodmed.TYPELIB),
]
kwargs['console'] += [
Target(module=trazaprodmed, script='trazaprodmed.py', dest_base="trazaprodmed_cli"),
]
__version__ += "+trazaprodmed_" + trazaprodmed.__version__
HOMO &= trazaprodmed.HOMO
if 'trazarenpre' in globals():
kwargs['com_server'] += [
Target(module=trazarenpre, modules="trazarenpre", create_exe=not trazarenpre.TYPELIB, create_dll=not trazarenpre.TYPELIB),
]
kwargs['console'] += [
Target(module=trazarenpre, script='trazarenpre.py', dest_base="trazarenpre_cli"),
]
if trazarenpre.TYPELIB:
kwargs['windows'] += [Target(module=trazarenpre, script="trazarenpre.py", dest_base="trazarenpre")]
data_files.append((".", ["trazarenpre.tlb"]))
__version__ += "+trazarenpre_" + trazarenpre.__version__
HOMO &= trazarenpre.HOMO
if 'trazafito' in globals():
kwargs['com_server'] += [
Target(module=trazafito, modules="trazafito", create_exe=True, create_dll=False),
]
kwargs['console'] += [
Target(module=trazafito, script='trazafito.py', dest_base="trazafito_cli"),
]
__version__ += "+trazafito_" + trazafito.__version__
HOMO &= trazafito.HOMO
if 'trazavet' in globals():
kwargs['com_server'] += [
Target(module=trazavet, modules="trazavet", create_exe=True, create_dll=False),
]
kwargs['console'] += [
Target(module=trazavet, script='trazavet.py', dest_base="trazavet_cli"),
]
__version__ += "+trazavet_" + trazavet.__version__
HOMO &= trazavet.HOMO
if 'padron' in globals():
kwargs['com_server'] += [
Target(module=padron, modules="padron", create_exe=True, create_dll=True),
]
kwargs['console'] += [
Target(module=padron, script='padron.py', dest_base="padron_cli"),
]
if os.path.exists("padron.db"):
data_files += [(".", [
"padron.db",
])]
__version__ += "+padron_" + padron.__version__
#HOMO &= padron.HOMO
if 'sired' in globals():
kwargs['com_server'] += [
Target(module=sired, modules="sired", create_exe=True, create_dll=True),
]
kwargs['console'] += [
Target(module=sired, script='sired.py', dest_base="sired_cli"),
]
__version__ += "+sired_" + sired.__version__
# custom installer:
kwargs['cmdclass'] = {"py2exe": build_installer}
# add certification authorities (newer versions of httplib2)
import httplib2
data_files += [("httplib2",
[os.path.join(os.path.dirname(httplib2.__file__), "cacerts.txt")])]
# add certification authorities (newer versions of httplib2)
try:
import certifi
data_files += [("certifi", [certifi.where()])]
except ImportError:
pass
# agrego tag de homologación (testing - modo evaluación):
__version__ += "-homo" if HOMO else "-full"
# agrego ejemplos
##if HOMO:
## data_files += [("ejemplos", glob.glob("ejemplos/*"))]
long_desc = ("Interfases, herramientas y aplicativos para Servicios Web"
"AFIP (Factura Electrónica, Granos, Aduana, etc.), "
"ANMAT (Trazabilidad de Medicamentos), "
"RENPRE (Trazabilidad de Precursores Químicos), "
"ARBA (Remito Electrónico)")
setup(name="PyAfipWs",
version=__version__,
description=desc,
long_description=long_desc,
author="Mariano Reingart",
author_email="[email protected]",
url="http://www.sistemasagiles.com.ar",
license="GNU GPL v3+",
options=opts,
data_files=data_files,
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Financial and Insurance Industry",
"License :: OSI Approved :: GNU Lesser General Public License v3 (GPLv3)",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.9",
"Operating System :: OS Independent",
"Operating System :: Microsoft :: Windows",
"Natural Language :: Spanish",
"Topic :: Office/Business :: Financial :: Point-Of-Sale",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Object Brokering",
],
keywords="webservice electronic invoice pdf traceability",
**kwargs
)