Skip to content

Commit

Permalink
update python test and support to newest versions
Browse files Browse the repository at this point in the history
streamline py2app mac installation instructions
  • Loading branch information
dmehlem committed Oct 16, 2023
1 parent 91ca2b0 commit 602720c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_test_rdplot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8]
python-version: ["3.10"]

steps:
- uses: actions/checkout@v2
Expand Down
23 changes: 6 additions & 17 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,14 @@ If you run into any problems, don't hesitate to use the `Issue tracker <https://
.. contents::
:local:

Virtual Environment
Virtual Environment (For Linux/MacOS)
-------------------
If you need system packages that conflict with the packages required for RDPlot, you can use a python virtual environment (see below).

When you are inside a virtual environment, python ignores all system packages and instead uses a dedicated environment, allowing you to install packages with pip that would otherwise conflict with system packages and/or different versions. The pitfall is that you need to activate the environment each time you want to use the program.

You can find more info on virtual environments at https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/.

venv is included in python since version 3.3. If your python version is older consider upgrading, or install venv using::

sudo pip install virtualenv

Download RDPlot. Make sure you do this at a place where it can stay::

git clone https://github.com/IENT/RDPlot
Expand Down Expand Up @@ -129,28 +125,21 @@ To uninstall, simply delete the RDPlot directory.

Mac OS X
--------
**Note:** things are not tested for Mac. You may have to fiddle a little bit.
Please contribute, if you have ideas for improvements.
**Note:** It is recommended to also install the required packages in a virtualenvironment. For further information see above.

First of all you need to install python3.
You can get it `here
<https://www.python.org/downloads/>`_.
If you are using Homebrew you can alternatively install python3 via console::

brew install [email protected]

Moreover, install all the requirements::

cd src/rdplot
pip3 install -r requirements.txt
brew install [email protected]

Additionally install py2app::
Moreover, install all the requirements, GitPython and py2app::

pip3 install py2app
pip3 install --upgrade pip -r src/rdplot/requirements.txt gitpython py2app

Then navigate back to the top level and build an app in alias mode::
Then build the app in alias mode::

cd ../..
python3 setup.py py2app -A

Now you should have an app in the dist folder.
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ def get_install_requires():
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8'
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11'
],

# What does your project relate to?
Expand Down

0 comments on commit 602720c

Please sign in to comment.