Skip to content

Commit

Permalink
Tells PyPi that desc is MD and removed C++ fs usage
Browse files Browse the repository at this point in the history
Looks like gcc8 shipped with manylinux2014 container doesn't support
filesystem module.

Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
  • Loading branch information
jeandet committed Jan 19, 2020
1 parent b7f96b1 commit 3599f7e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions include/cdf-io/cdf-io.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include "cdf-io-variable.hpp"
#include "cdf-io-zlib.hpp"
#include <algorithm>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <numeric>
Expand Down Expand Up @@ -140,9 +139,10 @@ namespace

std::optional<CDF> load(const std::string& path)
{
if (std::filesystem::exists(path))
auto fs = std::fstream { path, std::ios::in | std::ios::binary };
if (fs.is_open())
{
buffers::stream_adapter buffer { std::fstream { path, std::ios::in | std::ios::binary } };
buffers::stream_adapter buffer { std::move(fs) };
return impl_load(buffer);
}
return std::nullopt;
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project(
'cdfpp',
'cpp',
version : '0.1.0',
version : '0.1.3',
default_options : ['warning_level=3', 'cpp_std=c++17'],
license : 'GPL3'
)
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="pycdfpp",
version="0.1.2",
version="0.1.3",
description="A modern C++ header only cdf library",
author='Alexis Jeandet',
author_email='alexis.jeandet@member.fsf.org',
Expand All @@ -22,6 +22,7 @@
],
license="GNU General Public License v3",
long_description=readme,
long_description_content_type='text/markdown',
keywords='CDF NASA Space Physics Plasma',
url='https://github.com/SciQLop/CDFpp',
packages=['pycdfpp']
Expand Down

0 comments on commit 3599f7e

Please sign in to comment.