Skip to content

Commit 26b1d21

Browse files
committed
Merge branch 'feature_conda'
2 parents e9ba346 + 8b07d62 commit 26b1d21

File tree

7 files changed

+52
-37
lines changed

7 files changed

+52
-37
lines changed

CHANGELOG.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
version 1.0.2 (2015-02-11)
2+
--------------------------
3+
- Conda package build fix
4+
15
version 1.0.1 (2014-12-02)
26
--------------------------
37
- Fix `lmom_fit` for `gev` distribution. Did not return `OrderedDict` in some cases.

bump_version.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"""One of the following arguments must be supplied:
1010
- 'major': to increase major version number, e.g. from 1.2.3 to 2.0.0
1111
- 'minor': to increase minor version number, e.g. from 1.2.3 to 1.3.0
12-
- 'patch': to increase patch number, e..g from 1.2.3 to 1.2.4"""
12+
- 'patch': to increase patch number, e.g. from 1.2.3 to 1.2.4"""
1313

1414
LEVELS = ['major', 'minor', 'patch']
1515

@@ -60,7 +60,7 @@ def update_package_setup(new_version):
6060
file_name= 'setup.py'
6161

6262
new_content = []
63-
with open(file_name) as f:
63+
with open(file_name, encoding='utf-8') as f:
6464
for line in f:
6565
if line.strip().startswith('version'):
6666
line = " version='{}.{}.{}',\n".format(*new_version)
@@ -73,7 +73,7 @@ def update_doc_conf(new_version):
7373
file_name = './docs/source/conf.py'
7474

7575
new_content = []
76-
with open(file_name) as f:
76+
with open(file_name, encoding='utf-8') as f:
7777
for line in f:
7878
if line.strip().startswith('version'):
7979
line = "version = '{}.{}'\n".format(*new_version[0:2])
@@ -89,7 +89,7 @@ def update_changelog(new_version):
8989

9090
header = 'version {}.{}.{} ({})'.format(new_version[0], new_version[1], new_version[2], date.today())
9191
new_content = [header + '\n', '-' * len(header) + '\n']
92-
with open(file_name) as f:
92+
with open(file_name, encoding='utf-8') as f:
9393
for line in f:
9494
new_content.append(line)
9595

conda-recipe/bld.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
python setup.py install
2+
if errorlevel 1 exit 1

conda-recipe/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
$PYTHON setup.py install || exit 1

conda-recipe/meta.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package:
2+
name: lmoments3
3+
version: {{ environ.get('GIT_DESCRIBE_TAG', '0.0.0')[1:] }}
4+
5+
build:
6+
number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}
7+
8+
source:
9+
git_url: ..
10+
11+
requirements:
12+
build:
13+
- python
14+
- setuptools
15+
- numpy 1.9*
16+
- scipy >=0.14
17+
18+
run:
19+
- python
20+
- numpy 1.9*
21+
- scipy >=0.14
22+
23+
test:
24+
imports:
25+
- lmoments3
26+
27+
about:
28+
home: http://github.com/OpenHydrology/lmoments3
29+
license: GPLv3
30+
summary: Python library for estimating linear moments for statistical distributions
31+

docs/source/conf.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
import sys
1717
import os
18+
from datetime import date
1819

1920
# If extensions (or modules to document with autodoc) are in another directory,
2021
# add these directories to sys.path here. If the directory is relative to the
@@ -33,6 +34,7 @@
3334
extensions = [
3435
'sphinx.ext.autodoc',
3536
'sphinx.ext.doctest',
37+
'sphinx.ext.viewcode'
3638
]
3739

3840
# Add any paths that contain templates here, relative to this directory.
@@ -49,7 +51,7 @@
4951

5052
# General information about the project.
5153
project = 'lmoments3 Library'
52-
copyright = '2014, Florenz A. P. Hollebrandse, Sam Gillespie, William Asquith, J. R. M. Hosking'
54+
copyright = '2014‒{}, Florenz A. P. Hollebrandse, Sam Gillespie, William Asquith, J. R. M. Hosking'.format(date.today().year)
5355

5456
# The version info for the project you're documenting, acts as replacement for
5557
# |version| and |release|, also used in various other places throughout the
@@ -58,7 +60,7 @@
5860
# The short X.Y version.
5961
version = '1.0'
6062
# The full version, including alpha/beta/rc tags.
61-
release = '1.0.1'
63+
release = '1.0.2'
6264

6365
# The language for content autogenerated by Sphinx. Refer to documentation
6466
# for a list of supported languages.
@@ -141,7 +143,7 @@
141143

142144
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
143145
# using the given strftime format.
144-
#html_last_updated_fmt = '%b %d, %Y'
146+
html_last_updated_fmt = '%d/%m/%Y'
145147

146148
# If true, SmartyPants will be used to convert quotes and dashes to
147149
# typographically correct entities.
@@ -164,10 +166,10 @@
164166
#html_split_index = False
165167

166168
# If true, links to the reST sources are added to the pages.
167-
#html_show_sourcelink = True
169+
html_show_sourcelink = False
168170

169171
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
170-
#html_show_sphinx = True
172+
html_show_sphinx = False
171173

172174
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
173175
#html_show_copyright = True

setup.py

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,9 @@
11
from setuptools import setup
2-
from os import path
3-
4-
here = path.abspath(path.dirname(__file__))
5-
# Get the long description from the relevant file
6-
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
7-
long_description = f.read()
82

93
setup(
104
name='lmoments3',
11-
version='1.0.1',
5+
version='1.0.2',
126
packages=['lmoments3'],
13-
url='https://github.com/OpenHydrology/lmoments3',
14-
license='GPLv3',
15-
author='Florenz A. P. Hollebrandse, Sam Gillespie, William Asquith, J. R. M. Hosking',
16-
author_email='f.a.p.hollebrandse@protonmail.ch',
17-
description='Estimate linear moments for statistical distribution functions',
18-
long_description=long_description,
19-
classifiers=[
20-
"Programming Language :: Python :: 3",
21-
"Development Status :: 5 - Production/Stable",
22-
"Environment :: Other Environment",
23-
"Intended Audience :: Education",
24-
"Intended Audience :: End Users/Desktop",
25-
"Intended Audience :: Science/Research",
26-
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
27-
"Operating System :: OS Independent",
28-
"Topic :: Scientific/Engineering",
29-
"Topic :: Scientific/Engineering :: Information Analysis",
30-
"Topic :: Scientific/Engineering :: Physics",
31-
"Topic :: Scientific/Engineering :: Mathematics",
32-
"Topic :: Software Development :: Libraries :: Python Modules"
33-
],
347
install_requires=[
358
'numpy',
369
'scipy'

0 commit comments

Comments
 (0)