Skip to content

Commit 0c6dba3

Browse files
committed
Unify package settings
1 parent 50e1e07 commit 0c6dba3

File tree

7 files changed

+68
-102
lines changed

7 files changed

+68
-102
lines changed

conda/meta.yaml

Lines changed: 32 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# full guide of options:
2-
# https://conda.io/docs/user-guide/tasks/build-packages/define-metadata.html
3-
41
# To see what comes out after this template is processed, run:
52
# conda-render ./conda/
63

@@ -17,62 +14,63 @@ source:
1714
url: ../dist/{{ data.name }}-{{ data.version }}.tar.gz
1815

1916
build:
20-
number: 1
17+
number: 2
2118
noarch: python
22-
script: "python setup.py install --single-version-externally-managed --record=record.txt"
19+
script: "{{ PYTHON }} setup.py install --single-version-externally-managed --record=record.txt"
2320

24-
# unlike pypi, conda has a slightly different format for required
25-
# versions, with one space between package name and version specifier, i.e.
26-
# we must use - xarray >=0.9.6. For details see:
27-
# https://conda.io/docs/user-guide/tasks/build-packages/package-spec.html#package-match-specifications
21+
# PyQt5 and ase are not available on conda so they are installed via the script above
2822
requirements:
2923
build:
3024
- conda-build
31-
- python
25+
host:
26+
- python =3.8
3227
- pip
3328
run:
34-
- tornado ==4.5.3
29+
- python =3.8
30+
3531
- astropy
36-
- xarray ==0.9.6
37-
- h5py ==2.7.0
38-
- netcdf4
39-
- colorcet
40-
- colorama
32+
- xarray >=0.16.1
33+
- h5py >=3.2.1
34+
- pyqtgraph >=0.12.0,<0.13.0
35+
- pyqt
36+
4137
- pint
4238
- pandas
43-
- dask
44-
- numpy
45-
- scipy
46-
- lmfit
47-
- scikit-learn
48-
- scikit-image
39+
- numpy>=1.20.0,<2.0.0
40+
- scipy>=1.6.0,<2.0.0
41+
- netcdf4 >=1.5.0,<2.0.0
42+
- lmfit >=1.0.0,<2.0.0
43+
44+
- colorcet
45+
- matplotlib >=3.0.3
46+
- bokeh >=2.0.0,<3.0.0
47+
- ipywidgets >=7.0.1,<8.0.0
48+
49+
- scikit-learn >=0.24.0,<1.0.0
50+
51+
- packaging
52+
- numba >=0.53.0,<1.0.0
53+
54+
- colorama
4955
- imageio
56+
- titlecase
5057

51-
- matplotlib >=3.0.0
52-
- bokeh ==0.12.10
53-
- xlrd
54-
- openpyxl
55-
- toolz >=0.7.3
5658
- tqdm
59+
- rx
60+
- dill
5761

5862

59-
# Optional dependencies
60-
# - seaborn
61-
# - PyQt5
62-
# - pyqtgraph
63-
# - igor ==0.3.1
64-
6563
test:
6664
imports:
6765
- arpes
68-
6966
requires:
7067
- python
7168

7269
about:
7370
home: https://arpes.readthedocs.io/
7471
license: GPL-3.0
7572
license_family: GPL
73+
license_file: LICENSE
7674
summary: 'Modular data analysis code for angle resolved photoemission spectroscopy (ARPES)'
7775
description: 'Modular data analysis code for angle resolved photoemission spectroscopy (ARPES)'
7876
doc_url: https://arpes.readthedocs.io/

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def setup(app):
7777
app.connect("autodoc-skip-member", autodoc_skip_member)
7878

7979

80-
autodoc_mock_imports = ["torch", "pytorch_lightning", "xrft"]
80+
autodoc_mock_imports = ["torch", "pytorch_lightning"]
8181

8282

8383
# Napoleon settings

environment-readthedocs.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,21 @@ dependencies:
88
- astropy
99
- xarray>=0.16.1
1010
- h5py>=3.2.1
11-
- pyqtgraph==0.12
11+
- pyqtgraph>=0.12.0,<0.13.0
1212

1313
- pint
1414
- pandas
15-
- dask
16-
- numpy
17-
- scipy
18-
- lmfit==1.0
19-
- netCDF4
15+
16+
- numpy>=1.20.0,<2.0.0
17+
- scipy>=1.6.0,<2.0.0
18+
- lmfit>=1.0.0,<2.0.0
19+
- netCDF4>=1.5.0,<2.0.0
2020

2121
# plotting
2222
- colorcet
2323
- matplotlib>=3.0.3
24-
- seaborn
25-
- bokeh>=2.0.0
26-
- ipywidgets==7.0.1
24+
- bokeh>=2.0.0,<3.0.0
25+
- ipywidgets>=7.0.1,<8.0.0
2726

2827
# Misc deps
2928
- pip
@@ -32,17 +31,16 @@ dependencies:
3231
- pip:
3332
- PyQt5==5.15
3433
- packaging
35-
- deprecation
36-
- xlrd
37-
- numba
34+
- numba>=0.53.0,<1.0.0
3835
- colorama
3936
- imageio
4037
- titlecase
41-
- openpyxl
4238
- tqdm
4339
- rx
4440
- dill
45-
- ase
41+
- ase>=3.20.0,<4.0.0
42+
43+
# documentation dependencies are basically only these
4644
- sphinx
4745
- sphinxcontrib-restbuilder
4846
- sphinx_rtd_theme

environment-update-deploy.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

environment-update-docs.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

environment.yml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: arpes
22
channels:
3-
- arpes
43
- defaults
54
- conda-forge
65
dependencies:
@@ -9,40 +8,35 @@ dependencies:
98
- astropy
109
- xarray>=0.16.1
1110
- h5py>=3.2.1
12-
- pyqtgraph==0.12
11+
- pyqtgraph>=0.12.0,<0.13.0
1312

1413
- pint
1514
- pandas
16-
- dask
17-
- numpy
18-
- scipy
19-
- lmfit==1.0
20-
- netCDF4
15+
- numpy>=1.20.0,<2.0.0
16+
- scipy>=1.6.0,<2.0.0
17+
- lmfit>=1.0.0,<2.0.0
18+
- netCDF4>=1.5.0,<2.0.0
2119

2220
# plotting
2321
- colorcet
2422
- matplotlib>=3.0.3
25-
- seaborn
26-
- bokeh>=2.0.0
27-
- ipywidgets==7.0.1
23+
- bokeh>=2.0.0,<3.0.0
24+
- ipywidgets>=7.0.1,<8.0.0
2825

2926
# Misc deps
30-
- scikit-learn
27+
- scikit-learn>=0.24.0,<1.0.0
3128
- pip
3229

3330
# pip
3431
- pip:
3532
- PyQt5==5.15
3633
- packaging
37-
- deprecation
38-
- xlrd
39-
- numba
34+
- numba>=0.53.0,<1.0.0
4035
- colorama
4136
- imageio
4237
- titlecase
43-
- openpyxl
4438
- tqdm
4539
- rx
4640
- dill
47-
- ase
41+
- ase>=3.20.0,<4.0.0
4842
- -e .

setup.py

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,40 +24,36 @@
2424
DEPENDENCY_GROUPS = {
2525
"core": [
2626
"astropy",
27-
"xarray",
27+
"xarray>=0.16.1",
2828
"h5py>=3.2.1",
29-
"pyqtgraph==0.12",
29+
"pyqtgraph>=0.12.0,<0.13.0",
3030
"PyQt5==5.15",
31-
"netCDF4",
31+
"netCDF4>=1.5.0,<2.0.0",
3232
"colorcet",
3333
"pint",
3434
"pandas",
35-
"dask",
36-
"numpy",
37-
"scipy",
38-
"lmfit==1.0",
35+
"numpy>=1.20.0,<2.0.0",
36+
"scipy>=1.6.0,<2.0.0",
37+
"lmfit>=1.0.0,<2.0.0",
3938
"scikit-learn",
4039
# plotting
4140
"matplotlib>=3.0.3",
42-
"seaborn",
43-
"bokeh>=2.0.0",
44-
"ipywidgets==7.0.1",
41+
"bokeh>=2.0.0,<3.0.0",
42+
"ipywidgets>=7.0.1,<8.0.0",
4543
# Misc deps
46-
"deprecation",
4744
"packaging",
48-
"xlrd",
4945
"colorama",
5046
"imageio",
5147
"titlecase",
52-
"openpyxl",
5348
"tqdm",
5449
"rx",
5550
"dill",
56-
"ase",
51+
"ase>=3.20.0,<4.0.0",
52+
"numba>=0.53.0,<1.0.0",
5753
],
5854
"igor": ["igor==0.3.1"],
5955
"ml": [
60-
"scikit-learn",
56+
"scikit-learn>=0.24.0,<1.0.0",
6157
"scikit-image",
6258
"cvxpy",
6359
"libgcc",
@@ -83,7 +79,7 @@
8379
}
8480

8581

86-
with open("pypi-readme.rst", "r") as f_readme:
82+
with open("./pypi-readme.rst", "r") as f_readme:
8783
long_description = f_readme.read()
8884

8985

@@ -114,6 +110,7 @@
114110
"tests",
115111
"source",
116112
"info_session",
113+
"scripts",
117114
"docs",
118115
"example_configuration",
119116
"conda",

0 commit comments

Comments
 (0)