Skip to content
Permalink
Browse files

Switch from VERSION to __version__

  • Loading branch information...
ocourtin committed Aug 17, 2019
1 parent ab1d523 commit d3562de1e9244a3a96f5e3dc3fef5d20facf11be
Showing with 10 additions and 6 deletions.
  1. +1 −1 MANIFEST.in
  2. +0 −1 VERSION
  3. +1 −0 robosat_pink/__init__.py
  4. +5 −2 robosat_pink/tools/info.py
  5. +3 −2 setup.py
@@ -1,4 +1,4 @@
include VERSION LICENSE
include LICENSE
include requirements.txt
include robosat_pink/web_ui/compare.html
include robosat_pink/web_ui/leaflet.html

This file was deleted.

@@ -0,0 +1 @@
__version__ = "0.5.0-dev"
@@ -3,6 +3,7 @@
import cv2
import torch
import rasterio
import robosat_pink as rsp
from os import path


@@ -14,15 +15,17 @@ def add_parser(subparser, formatter_class):
def main(args):

print("========================================")
print("RoboSat.pink " + open(path.join(path.dirname(__file__), "../../VERSION")).read())
print("RoboSat.pink: " + rsp.__version__)
print("========================================")
print("Python: " + sys.version[:5])
print("Torch: " + torch.__version__)
print("OpenCV " + cv2.__version__)
print("GDAL " + rasterio._base.gdal_version())
print("CPUs: " + str(os.cpu_count()))
print("========================================")
print("GPUs: " + str(torch.cuda.device_count()))
print("Cuda: " + torch.version.cuda)
print("Cudnn: " + str(torch.backends.cudnn.version()))
print("========================================")
print("CPUs: " + str(os.cpu_count()))
print(torch.__config__.parallel_info())
print("========================================")
@@ -8,11 +8,12 @@

from setuptools import setup, find_packages
from os import path
import re

here = path.dirname(__file__)

with open(path.join(here, "VERSION")) as f:
version = f.read()
with open(path.join(here, "robosat_pink", "__init__.py"), encoding="utf-8") as f:
version = re.sub('( )*__version__( )*=( )*', "", f.read()).replace('"', "")

with open(path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()

0 comments on commit d3562de

Please sign in to comment.
You can’t perform that action at this time.