Skip to content

Commit 1f296a8

Browse files
Merge pull request #76 from dragonyanglong/support_py37plus
Support py37plus
2 parents e3f80ac + 27d9d24 commit 1f296a8

4 files changed

Lines changed: 32 additions & 14 deletions

File tree

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ os:
77

88
env:
99
- MYUSEMC=true MYPYTHON_VERSION=2.7
10-
- MYUSEMC=true MYPYTHON_VERSION=3.5
11-
- MYUSEMC=true MYPYTHON_VERSION=3.6
1210
- MYUSEMC=true MYPYTHON_VERSION=3.7
11+
- MYUSEMC=true MYPYTHON_VERSION=3.8
12+
- MYUSEMC=true MYPYTHON_VERSION=3.9
13+
- MYUSEMC=true MYPYTHON_VERSION=3.10
1314
- MYUSEMC=false
1415

1516
matrix:

README.rst

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ is available in the doc/Farrow-jpcm-2007.pdf paper.
2020
REQUIREMENTS
2121
------------------------------------------------------------------------
2222

23-
PDFgui requires Python 3.7, 3.6, 3.5 or 2.7 and several third-party
23+
PDFgui requires Python 3.7 or later or 2.7 and several third-party
2424
libraries that are used by PDFgui and its components.
2525

2626
* setuptools - tools for installing Python packages
@@ -57,17 +57,23 @@ INSTALLATION
5757
------------------------------------------------------------------------
5858

5959
The preferred method is to use Anaconda Python and install from the
60-
"diffpy" channel of Anaconda packages ::
60+
"conda-forge" channel of Anaconda packages. `pdfgui` can be installed with `conda` ::
6161

62-
conda config --add channels diffpy
63-
conda install diffpy.pdfgui
62+
conda install -c conda-forge diffpy.pdfgui
6463

6564
PDFgui can be then started from a terminal ("Anaconda Prompt" on
6665
Windows) by executing the "pdfgui" program. An alternative
6766
method on Windows is to start PDFgui through the DiffPy start menu.
6867

6968
If you don't use Anaconda or prefer to install from sources, make
70-
sure the required software is all in place and run ::
69+
sure the required software is all in place ::
70+
71+
pip install wxpython==4.0.7
72+
conda install matplotlib
73+
conda install -c conda-forge diffpy.utils
74+
conda install -c conda-forge install diffpy.pdffit2
75+
76+
Then you are ready to install diffpy.pdfgui from source codes::
7177

7278
python setup.py install
7379

@@ -82,6 +88,15 @@ changing to the HOME directory and running ::
8288

8389
python -m diffpy.pdfgui.tests.rundeps
8490

91+
To use PDFgui, you can simply type `pdfgui`, or run the following command ::
92+
93+
python diffpy.pdfgui/src/diffpy/pdfgui/application/pdfgui.py
94+
95+
If it shows some error like "This program needs access to the screen.". For Mac, you could install `python.app` from conda
96+
(`conda install python.app`), then run as follows ::
97+
98+
python.app diffpy.pdfgui/src/diffpy/pdfgui/application/pdfgui.py
99+
85100
With Anaconda PDFgui can be later upgraded to the latest released
86101
version using ::
87102

@@ -92,7 +107,6 @@ the latest version as follows ::
92107

93108
easy_install --upgrade diffpy.pdfgui
94109

95-
96110
Other software
97111
````````````````````````````````````````````````````````````````````````
98112

@@ -101,6 +115,7 @@ structures. We have tested with several structure viewers such as
101115

102116
* AtomEye, http://li.mit.edu/A/Graphics/A/
103117
* PyMol, https://www.pymol.org
118+
* VESTA, http://jp-minerals.org/vesta/en/
104119

105120
Other viewers should work as well, as long as they understand one of
106121
the output structure formats supported by PDFgui.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
python:
2+
- 3.10
3+
- 3.9
4+
- 3.8
25
- 3.7
3-
- 3.6
4-
- 3.5
56
- 2.7

setup.py

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

1616
# Use this version when git data are not available, like in git zip archive.
1717
# Update when tagging a new release.
18-
FALLBACK_VERSION = '1.1.2.post0'
18+
FALLBACK_VERSION = '1.4.0'
1919

2020
# determine if we run with Python 3.
2121
PY3 = (sys.version_info[0] == 3)
@@ -29,7 +29,7 @@
2929
def gitinfo():
3030
from subprocess import Popen, PIPE
3131
kw = dict(stdout=PIPE, cwd=MYDIR, universal_newlines=True)
32-
proc = Popen(['git', 'describe', '--match=v[[:digit:]]*'], **kw)
32+
proc = Popen(['git', 'describe', '--tags', '--match=v[[:digit:]]*'], **kw)
3333
desc = proc.stdout.read()
3434
proc = Popen(['git', 'log', '-1', '--format=%H %ct %ci'], **kw)
3535
glog = proc.stdout.read()
@@ -142,9 +142,10 @@ def dirglob(d, *patterns):
142142
'Operating System :: Microsoft :: Windows',
143143
'Operating System :: POSIX',
144144
'Programming Language :: Python :: 2.7',
145-
'Programming Language :: Python :: 3.5',
146-
'Programming Language :: Python :: 3.6',
147145
'Programming Language :: Python :: 3.7',
146+
'Programming Language :: Python :: 3.8',
147+
'Programming Language :: Python :: 3.9',
148+
'Programming Language :: Python :: 3.10',
148149
'Topic :: Scientific/Engineering :: Chemistry',
149150
'Topic :: Scientific/Engineering :: Physics',
150151
],

0 commit comments

Comments
 (0)