Skip to content

Commit 484bab6

Browse files
committed
fix settings filename in setup.py; update tox configuration; removed some dev packages from requirements.txt/environment.yal #75
1 parent 3b189b4 commit 484bab6

File tree

5 files changed

+26
-51
lines changed

5 files changed

+26
-51
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.1
1+
3.0.1.post1

environment.yml

-8
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ dependencies:
117117
- cftime==1.0.4.2
118118
- chardet==3.0.4
119119
- colorama==0.4.3
120-
- coverage==5.0.3
121120
- cryptography==3.1.1
122121
- cython==0.29.14
123122
- dask==2.7.0
@@ -126,7 +125,6 @@ dependencies:
126125
- docutils==0.15.2
127126
- entrypoints==0.3
128127
- filelock==3.0.12
129-
- flake8==3.7.9
130128
- future==0.18.0
131129
- future-fstrings==1.2.0
132130
- gdal==3.1.2
@@ -168,10 +166,6 @@ dependencies:
168166
- pygsp==0.5.1
169167
- pyparsing==2.4.2
170168
- pyproj==2.4.0
171-
- pytest==5.2.1
172-
- pytest-cov==2.8.1
173-
- pytest-env==0.6.2
174-
- pytest-mock==2.0.0
175169
- python-dateutil==2.8.1
176170
- pytz==2019.3
177171
- pyyaml==5.3
@@ -190,10 +184,8 @@ dependencies:
190184
- threadpoolctl==2.1.0
191185
- toml==0.10.0
192186
- toolz==0.10.0
193-
- tox==3.14.0
194187
- tqdm==4.36.1
195188
- traitlets==4.3.3
196-
- twine==3.2.0
197189
- urllib3==1.25.6
198190
- virtualenv==16.7.6
199191
- wcwidth==0.1.7

requirements.txt

-9
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,16 @@ atomicwrites==1.3.0
22
attrs==19.3.0
33
backcall==0.1.0
44
beautifulsoup4==4.8.1
5-
bleach==3.1.4
65
certifi==2019.11.28
76
cftime==1.0.4.2
87
chardet==3.0.4
9-
coverage==5.0.3
108
Cython==0.29.14
119
dask==2.7.0
1210
decorator==4.4.1
1311
docopt==0.6.2
1412
docutils==0.15.2
1513
entrypoints==0.3
1614
filelock==3.0.12
17-
flake8==3.7.9
1815
future==0.18.0
1916
future-fstrings==1.2.0
2017
gitdb2==2.0.6
@@ -49,10 +46,6 @@ Pygments==2.4.2
4946
PyGSP==0.5.1
5047
pyparsing==2.4.2
5148
pyproj==2.4.0
52-
pytest==5.2.1
53-
pytest-cov==2.8.1
54-
pytest-mock==2.0.0
55-
pytest-env==0.6.2
5649
python-dateutil==2.8.1
5750
pytz==2019.3
5851
readme-renderer==24.0
@@ -64,11 +57,9 @@ soupsieve==1.9.5
6457
tasklogger==1.0.0
6558
toml==0.10.0
6659
toolz==0.10.0
67-
tox==3.14.0
6860
tqdm==4.36.1
6961
traitlets==4.3.3
7062
urllib3==1.25.6
71-
virtualenv==16.7.6
7263
wcwidth==0.1.7
7364
webencodings==0.5.1
7465
xarray==0.15.1

setup.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,16 @@
1313
See the Licence for the specific language governing permissions and limitations under the Licence.
1414
1515
---------------------------------------------------------------------------------------------------------------------------------------
16-
Use python setup.y upload to publish versioned tags and pypi package
16+
Use python setup.y publish to publish versioned tags and pypi package
1717
18-
python setup.py upload
18+
IMPORTANT Note:
19+
To test pip installation:
20+
python setup.py testpypi
21+
pip install --index-url https://test.pypi.org/simple/ lisflood-model==2.8.14
22+
23+
To publish on PyPi:
24+
25+
python setup.py publish
1926
2027
It's equivalent to:
2128
@@ -24,15 +31,8 @@
2431
3. git tag {version}
2532
4. git push --tags
2633
27-
Note: To upload new package on PyPi Test:
28-
python setup.py testpypi
29-
3034
Install
3135
32-
3a. Test package install
33-
pip install --index-url https://test.pypi.org/simple/ lisflood-model==2.8.14
34-
35-
3b. In prod:
3636
pip install lisflood-model
3737
"""
3838

@@ -162,7 +162,7 @@ def _get_gdal_version():
162162
package_dir={'': 'src/'},
163163
py_modules=[os.path.splitext(os.path.basename(path))[0] for path in glob('src/*.py*')],
164164
include_package_data=True,
165-
data_files=[('', ['VERSION']), ('settings', ['src/settings_tpl.xml'])],
165+
data_files=[('', ['VERSION']), ('settings', ['src/lisfloodSettings_reference.xml'])],
166166
packages=find_packages('src'),
167167
long_description=long_description,
168168
long_description_content_type='text/markdown',

tox.ini

+15-23
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,25 @@
11
[tox]
2-
envlist = py27,py36,py37
2+
3+
envlist = py36,py37
34
skip_missing_interpreters=True
45
skipsdist=True
5-
deps =
6-
pytest
76

8-
[testenv:py27]
7+
[testenv]
8+
deps=
9+
pytest-sugar
10+
pytest-cov
11+
pytest-mock
12+
pytest-env
13+
pytest
914
usedevelop=True
10-
deps =
11-
GDAL==2.2.3
12-
-rrequirements27.txt
13-
setenv =
14-
PYTHONPATH=/opt/pcraster27/python
15-
commands =
16-
pytest -x -l -ra tests/
1715

18-
[testenv:py36]
19-
usedevelop=True
20-
deps =
21-
GDAL==2.2.3
22-
-rrequirements.txt
23-
commands =
24-
pytest -x -l -ra --cov=lisflood --cov-config=.coveragerc tests/
16+
conda_env=
17+
environment.yml
18+
conda_channels=
19+
conda-forge
20+
conda_install_args=
21+
--override-channels
2522

26-
[testenv:py37]
27-
usedevelop=True
28-
deps =
29-
GDAL==2.2.3
30-
-rrequirements.txt
3123
commands =
3224
pytest -x -l -ra --cov=lisflood --cov-config=.coveragerc tests/
3325

0 commit comments

Comments
 (0)