Skip to content

Commit 5489d7d

Browse files
Merge pull request #9 from dragonyanglong/setup_rever
ENH: support py3.7+
2 parents 69655fe + 3ad8d1c commit 5489d7d

File tree

5 files changed

+29
-23
lines changed

5 files changed

+29
-23
lines changed

.travis.yml

+3-2
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:

CHANGELOG.md

+6-16
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,22 @@
11
# Release notes
22

3-
Notable differences from version 1.1.
3+
Notable differences from version 1.2.
44

5-
## Version 1.2.0 – 2019-08-08
5+
## Version 1.3.0 – 2022-11-30
66

77
### Added
88

9-
- Support for Python 3.7, 3.6, 3.5 in addition to 2.7.
10-
- Makefile targets `module` and `test`.
11-
- Support installation from a tagged git-archive tarball.
9+
- Support for Python 3.8, 3.9, 3.10.
1210

1311
### Changed
1412

15-
- Build Anaconda package with Anaconda C++ compiler.
16-
- Allow language standard c++11.
17-
- Update to diffpy.structure 3.0.
18-
1913
### Deprecated
2014

21-
- Variable `__gitsha__` in the `version` module which was renamed
22-
to `__git_commit__`.
23-
2415
### Removed
2516

26-
- Support for Python 2.6.
17+
- Remove the support for Python 3.5, 3.6.
2718

2819
### Fixed
2920

30-
- Windows build with MSVC 9 and MSVC 14.
31-
- Invalid escape sequences in string values.
32-
- Open files within the `with` context so they get closed when done.
21+
- Patch variable to avoid naming problems and Xcode collision on MacOS & Linux.
22+
- Fix g++ w/ambiguous isnan on Linux.

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ http://www.diffpy.org/doc/pdffit2.
3535
REQUIREMENTS
3636
------------------------------------------------------------------------
3737

38-
diffpy.pdffit2 requires Python 3.7, 3.6, 3.5 or 2.7 and
38+
diffpy.pdffit2 requires Python 3.7 or later or 2.7 and
3939
the following external software:
4040

4141
* ``setuptools`` - software distribution tools for Python

rever.xsh

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
$PROJECT = 'diffpy.pdffit2'
2+
$ACTIVITIES = [
3+
'tag', # Creates a tag for the new version number
4+
'push_tag', # Pushes the tag up to the $TAG_REMOTE
5+
'pypi', # Sends the package to pypi
6+
'ghrelease' # Creates a Github release entry for the new tag
7+
]
8+
$PUSH_TAG_REMOTE = '[email protected]:diffpy/diffpy.pdffit2.git' # Repo to push tags to
9+
$GITHUB_ORG = 'diffpy' # Github org for Github releases and conda-forge
10+
$GITHUB_REPO = 'diffpy.pdffit2' # Github repo for Github releases and conda-forge
11+
$GHRELEASE_PREPEND = """See [CHANGELOG.md](CHANGELOG.md) for detailed release notes.
12+
13+
The release is also available at [PyPI](https://pypi.org/project/diffpy.pdffit2/) and [Conda](https://anaconda.org/conda-forge/diffpy.pdffit2).
14+
""" # release message

setup.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# Use this version when git data are not available, like in git zip archive.
2020
# Update when tagging a new release.
21-
FALLBACK_VERSION = '1.2.0.post0'
21+
FALLBACK_VERSION = '1.3.0'
2222

2323
# determine if we run with Python 3.
2424
PY3 = (sys.version_info[0] == 3)
@@ -33,7 +33,7 @@
3333
def gitinfo():
3434
from subprocess import Popen, PIPE
3535
kw = dict(stdout=PIPE, cwd=MYDIR, universal_newlines=True)
36-
proc = Popen(['git', 'describe', '--match=v[[:digit:]]*'], **kw)
36+
proc = Popen(['git', 'describe', '--tags', '--match=v[[:digit:]]*'], **kw)
3737
desc = proc.stdout.read()
3838
proc = Popen(['git', 'log', '-1', '--format=%H %ct %ci'], **kw)
3939
glog = proc.stdout.read()
@@ -221,9 +221,10 @@ def get_gsl_config():
221221
'Operating System :: POSIX',
222222
'Programming Language :: C++',
223223
'Programming Language :: Python :: 2.7',
224-
'Programming Language :: Python :: 3.5',
225-
'Programming Language :: Python :: 3.6',
226224
'Programming Language :: Python :: 3.7',
225+
'Programming Language :: Python :: 3.8',
226+
'Programming Language :: Python :: 3.9',
227+
'Programming Language :: Python :: 3.10',
227228
'Topic :: Scientific/Engineering :: Chemistry',
228229
'Topic :: Scientific/Engineering :: Physics',
229230
],

0 commit comments

Comments
 (0)