Skip to content
Commits on Source (2)
...@@ -2,6 +2,7 @@ image: $DOCKER_REGISTRY/pdsl/rdiffweb-build:$CI_PIPELINE_IID ...@@ -2,6 +2,7 @@ image: $DOCKER_REGISTRY/pdsl/rdiffweb-build:$CI_PIPELINE_IID
variables: variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
PIP_INDEX_URL: https://nexus.patrikdufresne.com/repository/pypi-proxy/simple/
stages: stages:
- prebuild - prebuild
......
...@@ -177,6 +177,19 @@ else: ...@@ -177,6 +177,19 @@ else:
"python-ldap", "python-ldap",
] ]
setup_requires=[
"babel>=0.9.6",
"setuptools_scm",
"minify",
]
tests_require=[
"mock>=1.3.0",
"coverage>=4.0.1",
"mockldap>=0.2.6",
"pytest<5.0.0",
]
extras_require={'tox': tests_require}
long_description_content_type = long_description = None long_description_content_type = long_description = None
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as f: with open(os.path.join(os.path.dirname(__file__), 'README.md')) as f:
long_description = f.read() long_description = f.read()
...@@ -206,18 +219,10 @@ setup( ...@@ -206,18 +219,10 @@ setup(
}, },
install_requires=install_requires, install_requires=install_requires,
# required packages for build process # required packages for build process
setup_requires=[ setup_requires=setup_requires,
"babel>=0.9.6",
"minify",
"setuptools_scm",
],
# requirement for testing # requirement for testing
tests_require=[ tests_require=tests_require,
"mock>=1.3.0", extras_require=extras_require,
"coverage>=4.0.1",
"mockldap>=0.2.6",
"pytest<5.0.0",
],
classifiers=[ classifiers=[
'Development Status :: 5 - Production/Stable', 'Development Status :: 5 - Production/Stable',
'Intended Audience :: System Administrators', 'Intended Audience :: System Administrators',
......
...@@ -41,4 +41,5 @@ deps= ...@@ -41,4 +41,5 @@ deps=
cherrypy16: cherrypy>=16.0.0,<17.0.0 cherrypy16: cherrypy>=16.0.0,<17.0.0
cherrypy17: cherrypy>=17.0.0,<18.0.0 cherrypy17: cherrypy>=17.0.0,<18.0.0
cherrypy18: cherrypy>=18.0.0,<19.0.0 cherrypy18: cherrypy>=18.0.0,<19.0.0
commands_pre=pip install -e .[tox]
commands=python setup.py nosetests --xunit-file=nosetests-{envname}.xml --xunit-testsuite-name={envname} --cover-xml-file=coverage-{envname}.xml commands=python setup.py nosetests --xunit-file=nosetests-{envname}.xml --xunit-testsuite-name={envname} --cover-xml-file=coverage-{envname}.xml