From d059c341a78059c29f8c2daf1c5410692beb2f64 Mon Sep 17 00:00:00 2001 From: Michele Peresano Date: Wed, 6 Nov 2019 14:54:37 +0100 Subject: [PATCH 1/2] Added versioning to init.py and setup.py using the manual approach. --- protopipe/__init__.py | 1 + setup.py | 26 +++++++++++++++----------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/protopipe/__init__.py b/protopipe/__init__.py index e69de29b..0dddc48d 100644 --- a/protopipe/__init__.py +++ b/protopipe/__init__.py @@ -0,0 +1 @@ +__version__ = "0.2.1-dev" diff --git a/setup.py b/setup.py index 1dc682ea..da4dbc7e 100644 --- a/setup.py +++ b/setup.py @@ -1,16 +1,20 @@ from setuptools import setup, find_packages + def readme(): - with open('README.rst') as f: + with open("README.rst") as f: return f.read() -setup(name='protopipe', - version='0.1', - description='Pipeline to process events from DL0 to DL3', - url='http://github.com/jjlk/protopipe', - author='CEA', - author_email='julien.lefaucheur@cea.fr', - license='MIT', - packages=find_packages(), - install_requires=['ctapipe'], - zip_safe=False) \ No newline at end of file + +setup( + name="protopipe", + version="0.2.1-dev", + description="Pipeline to process events from DL0 to DL3", + url="https://github.com/cta-observatory/protopipe", + author="CEA", + author_email="michele.peresano@cea.fr", + license="MIT", + packages=find_packages(), + install_requires=["ctapipe"], + zip_safe=False, +) From 7a964663b260ac030ddf7d6d5f57cc7cf983b885 Mon Sep 17 00:00:00 2001 From: Michele Peresano Date: Wed, 6 Nov 2019 15:48:08 +0100 Subject: [PATCH 2/2] Import version from init.py into setup.py; updated authors in setup.py --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index da4dbc7e..f0b47c10 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ from setuptools import setup, find_packages +from protopipe import __version__ def readme(): @@ -8,10 +9,10 @@ def readme(): setup( name="protopipe", - version="0.2.1-dev", + version=__version__, description="Pipeline to process events from DL0 to DL3", url="https://github.com/cta-observatory/protopipe", - author="CEA", + author="Michele Peresano, Karl Kosack, Thierry Stolarczyk, Alice Donini, Thomas Vuillaume", author_email="michele.peresano@cea.fr", license="MIT", packages=find_packages(),