Skip to content

Commit 81af082

Browse files
authored
Merge pull request #190 from icesat2py/development
release v0.3.4 - post-conda fixes and updates
2 parents 4ad3c60 + 5b9781d commit 81af082

File tree

21 files changed

+4468
-523
lines changed

21 files changed

+4468
-523
lines changed

.github/workflows/traffic_action.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
schedule:
55
# runs once a week on sunday
66
- cron: "55 23 * * 0"
7+
# Trigger manually at https://github.com/icesat2py/icepyx/actions/workflows/publish_to_pypi.yml
8+
workflow_dispatch:
79

810
jobs:
911
# This workflow contains a single job called "traffic"
@@ -14,22 +16,28 @@ jobs:
1416
# Steps represent a sequence of tasks that will be executed as part of the job
1517
steps:
1618
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
17-
# DevGoal: figure out how to put the traffic data directly into doc/source/tracking
1819
- uses: actions/checkout@v2
1920
with:
2021
ref: "traffic"
2122

2223
# Calculates traffic and clones and stores in CSV file
2324
- name: GitHub traffic
24-
uses: sangonzal/repository-traffic-action@v0.1.2
25+
uses: sangonzal/repository-traffic-action@v0.1.4
2526
env:
2627
TRAFFIC_ACTION_TOKEN: ${{ secrets.TRAFFIC_ACTION_TOKEN }}
27-
28+
29+
# Custom steps to move files to another dir and format plot
30+
- name: Move files
31+
run: |
32+
pip install -r requirements.txt
33+
python ./doc/source/tracking/traffic/traffic_data_mgmt.py
34+
2835
# Commits files to repository
2936
- name: Commit changes
3037
uses: EndBug/add-and-commit@v4
3138
with:
3239
author_name: Jessica Scheick
33-
message: "GitHub traffic"
34-
add: "./traffic/*"
35-
ref: "traffic" # commits to branch "traffic"
40+
message: "GitHub traffic auto-update"
41+
add: "./doc/source/tracking/traffic/*"
42+
# add: "./traffic/*"
43+
ref: "traffic" # commits to branch "traffic"

README.rst

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -33,40 +33,19 @@ This project combines and generalizes these scripts into a unified framework, ma
3333

3434
Installation
3535
------------
36-
The simplest way to install icepyx is using pip.
3736

38-
.. code-block::
37+
The simplest way to install icepyx is by using the
38+
`conda <https://docs.conda.io/projects/conda/en/latest/user-guide/index.html>`__
39+
package manager.
3940

40-
pip install icepyx
41+
conda install icepyx
4142

43+
Alternatively, you can also install icepyx using `pip <https://pip.pypa.io/en/stable/>`__.
4244

43-
Windows users will need to first install `Fiona`_, please look at the instructions there. Windows users may consider installing Fiona using pipwin
45+
pip install icepyx
4446

45-
.. code-block::
46-
47-
pip install pipwin
48-
pipwin install Fiona
49-
50-
51-
Currently, updated packages are not automatically generated with each build. This means it is possible that pip will not install the latest release of icepyx. In this case, icepyx is also available for use via the GitHub repository. The contents of the repository can be download as a `zipped file`_ or cloned.
52-
53-
To use icepyx this way, fork this repo to your own account, then git clone the repo onto your system.
54-
To clone the repository:
55-
56-
.. code-block::
57-
58-
git clone https://github.com/icesat2py/icepyx.git
59-
60-
61-
Provided the location of the repo is part of your $PYTHONPATH, you should simply be able to add import icepyx to your Python document.
62-
Alternatively, in a command line or terminal, navigate to the folder in your cloned repository containing setup.py and run
63-
64-
.. code-block::
65-
66-
pip install -e .
67-
68-
69-
Future developments of icepyx may include conda as another simplified installation option.
47+
More detailed instructions for installing `icepyx` can be found at
48+
https://icepyx.readthedocs.io/en/latest/getting_started/install.html
7049

7150

7251
Examples (Jupyter Notebooks)

doc/source/getting_started/install.rst

Lines changed: 44 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,37 +10,71 @@
1010
Installation
1111
============
1212

13-
The simplest way to install icepyx is using pip.
13+
Quickstart
14+
----------
15+
16+
The simplest way to install icepyx is by using the
17+
`conda <https://docs.conda.io/projects/conda/en/latest/user-guide/index.html>`__
18+
package manager. The command below takes care of setting up a virtual
19+
environment and installs icepyx along with all the necessary dependencies::
20+
21+
conda create --name icepyx-env --channel conda-forge icepyx
22+
23+
To activate the virtual environment, you can do::
24+
25+
conda activate icepyx-env
26+
27+
28+
Using conda
29+
-----------
30+
31+
If you already have a virtual conda environment set up and activated, you can
32+
install the latest stable release of icepyx from
33+
`conda-forge <https://anaconda.org/conda-forge/icepyx>`__ like so::
34+
35+
conda install icepyx
36+
37+
To upgrade an installed version of icepyx to the latest stable release, do::
38+
39+
conda update icepyx
40+
41+
42+
43+
Using pip
44+
---------
45+
46+
Alternatively, you can also install icepyx using `pip <https://pip.pypa.io/en/stable/>`__.
1447

1548
.. code-block::
1649
1750
pip install icepyx
1851
1952
20-
Windows users will need to first install `Fiona`_, please look at the instructions there. Windows users may consider installing Fiona using pipwin
53+
Windows users will need to first install `Fiona`_, please look at the instructions there.
54+
Windows users may consider installing Fiona using pipwin
2155

2256
.. code-block::
2357
2458
pip install pipwin
25-
pipwin install Fiona
59+
pipwin install Fiona
2660
2761
28-
Currently, updated packages are not automatically generated with each build. This means it is possible that pip will not install the latest release of icepyx. In this case, icepyx is also available for use via the GitHub repository. The contents of the repository can be download as a `zipped file`_ or cloned.
62+
Currently, conda and pip packages are generated with each tagged release.
63+
This means it is possible that these methods will not install the latest merged features of icepyx.
64+
In this case, icepyx is also available for use via the GitHub repository.
65+
The contents of the repository can be downloaded as a `zipped file`_ or cloned.
2966

30-
To use icepyx this way, fork this repo to your own account, then git clone the repo onto your system.
67+
To use icepyx this way, fork this repo to your own account, then git clone the repo onto your system.
3168
To clone the repository:
3269

3370
.. code-block::
3471
3572
git clone https://github.com/icesat2py/icepyx.git
3673
3774
38-
Provided the location of the repo is part of your $PYTHONPATH, you should simply be able to add import icepyx to your Python document.
75+
Provided the location of the repo is part of your $PYTHONPATH, you should simply be able to add `import icepyx` to your Python document.
3976
Alternatively, in a command line or terminal, navigate to the folder in your cloned repository containing setup.py and run
4077

4178
.. code-block::
4279
43-
pip install -e
44-
45-
46-
Future developments of icepyx may include conda as another simplified installation option.
80+
pip install -e.
-16.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)