Skip to content
Snippets Groups Projects
Verified Commit c81ae144 authored by David Beniamine's avatar David Beniamine
Browse files

Better setup.py

parent 795ff6dc
No related branches found
No related tags found
No related merge requests found
Pipeline #48 passed
......@@ -7,7 +7,7 @@ stages:
before_script:
- pip install setuptools
- pip install -e .
- pip install .
pytest:
stage: test
......
File moved
import parallelRunAndWrite as prw
from parallelRunAndWrite import parallelRunAndWrite as prw
from time import sleep, time
import os
from random import randint
......@@ -11,7 +11,7 @@ errRegex=r'prw arg \d+ pid \d+'
def raiseOrWork(arg):
if(randint(0,100)%2 ==0):
if(arg%2 ==0):
raise Exception("prw arg {} pid {} ".format(arg, os.getpid()))
return work(arg)
......@@ -65,4 +65,4 @@ def testRaise():
from pytest import raises
with raises(Exception, match=errRegex):
prw.parallelRunAndWrite(raiseOrWork, range(rangeSize), outFname)
verifyFiles(err=False,exact=False)
os.unlink(outFname)
from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'Readme.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name="pyParallelRunAndWrite",
url="https://gitlab.tetras-libre.fr/tetras-libre/pyParallelRunAndWrite",
version="1.0",
license="Gpl v3+",
author="Tetras Libre",
author_email="Contact@Tetras-Libre.fr",
description="Scrapping and exraction tools for Agrobase Logigram",
long_description=long_description,
packages=find_packages(),
install_requires=["pyprind"],
setup_requires=["pytest-runner"],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment