Tuning the dependency management model.

This commit is contained in:
Romain Dorgueil
2017-05-03 18:20:47 +02:00
parent 7a5f42e223
commit 0e6c0cf6e6
3 changed files with 26 additions and 23 deletions

View File

@ -1,7 +1,7 @@
# This file has been auto-generated. # This file has been auto-generated.
# All changes will be lost, see Projectfile. # All changes will be lost, see Projectfile.
# #
# Updated at 2017-05-02 20:38:38.468986 # Updated at 2017-05-03 18:02:59.359160
PACKAGE ?= bonobo PACKAGE ?= bonobo
PYTHON ?= $(shell which python) PYTHON ?= $(shell which python)

View File

@ -1,7 +1,12 @@
-e . -e .
colorama ==0.3.9 appdirs==1.4.3
fs ==2.0.3 colorama==0.3.9
psutil ==5.2.2 enum34==1.1.6
requests ==2.13.0 fs==2.0.3
stevedore ==1.21.0 pbr==3.0.0
psutil==5.2.2
pytz==2017.2
requests==2.13.0
six==1.10.0
stevedore==1.21.0

View File

@ -1,22 +1,11 @@
# This file is autogenerated by edgy.project code generator. # This file is autogenerated by edgy.project code generator.
# All changes will be overwritten. # All changes will be overwritten.
import os
from setuptools import setup, find_packages from setuptools import setup, find_packages
from codecs import open
from os import path
root_dir = os.path.dirname(os.path.abspath(__file__)) here = path.abspath(path.dirname(__file__))
tolines = lambda c: list(filter(None, map(lambda s: s.strip(), c.split('\n'))))
def read(filename, flt=None):
try:
with open(filename) as f:
content = f.read().strip()
return flt(content) if callable(flt) else content
except EnvironmentError:
return ''
# Py3 compatibility hacks, borrowed from IPython. # Py3 compatibility hacks, borrowed from IPython.
try: try:
@ -28,9 +17,18 @@ except NameError:
exec(compile(open(fname).read(), fname, "exec"), globs, locs) exec(compile(open(fname).read(), fname, "exec"), globs, locs)
# Get the long description from the README file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
# Get the classifiers from the classifiers file
tolines = lambda c: list(filter(None, map(lambda s: s.strip(), c.split('\n'))))
with open(path.join(here, 'classifiers.txt'), encoding='utf-8') as f:
classifiers = tolines(f.read())
version_ns = {} version_ns = {}
try: try:
execfile(os.path.join(root_dir, 'bonobo/_version.py'), version_ns) execfile(path.join(here, 'bonobo/_version.py'), version_ns)
except EnvironmentError: except EnvironmentError:
version = 'dev' version = 'dev'
else: else:
@ -47,8 +45,8 @@ setup(
'requests >=2.0,<3.0', 'stevedore >=1.21,<2.0' 'requests >=2.0,<3.0', 'stevedore >=1.21,<2.0'
], ],
version=version, version=version,
long_description=read('README.rst'), long_description=long_description,
classifiers=read('classifiers.txt', tolines), classifiers=classifiers,
packages=find_packages(exclude=['ez_setup', 'example', 'test']), packages=find_packages(exclude=['ez_setup', 'example', 'test']),
include_package_data=True, include_package_data=True,
data_files=[('share/jupyter/nbextensions/bonobo-jupyter', [ data_files=[('share/jupyter/nbextensions/bonobo-jupyter', [