Coverage for setup.py: 0%

9 statements  

« prev     ^ index     » next       coverage.py v6.4.1, created at 2022-06-08 08:12 +0000

1#!/usr/bin/env python 

2 

3# This file is part of ctrl_bps. 

4# 

5# Developed for the LSST Data Management System. 

6# This product includes software developed by the LSST Project 

7# (https://www.lsst.org). 

8# See the COPYRIGHT file at the top-level directory of this distribution 

9# for details of code ownership. 

10# 

11# This program is free software: you can redistribute it and/or modify 

12# it under the terms of the GNU General Public License as published by 

13# the Free Software Foundation, either version 3 of the License, or 

14# (at your option) any later version. 

15# 

16# This program is distributed in the hope that it will be useful, 

17# but WITHOUT ANY WARRANTY; without even the implied warranty of 

18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 

19# GNU General Public License for more details. 

20# 

21# You should have received a copy of the GNU General Public License 

22 

23import os.path 

24 

25from setuptools import setup 

26 

27version = "0.1.0" 

28with open("./python/lsst/ctrl/bps/version.py", "w") as f: 

29 print( 

30 f""" 

31__all__ = ("__version__", ) 

32__version__ = '{version}'""", 

33 file=f, 

34 ) 

35 

36# read the contents of our README file 

37this_directory = os.path.abspath(os.path.dirname(__file__)) 

38with open(os.path.join(this_directory, "README.md"), encoding="utf-8") as f: 

39 long_description = f.read() 

40 

41setup(version=version, long_description=long_description, long_description_content_type="text/markdown")