Skip to content

Commit ac78f81

Browse files
authoredFeb 4, 2021
Add automatic versioning and required files (icesat2py#168)
1 parent 9446737 commit ac78f81

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ wheels/
2424
.installed.cfg
2525
*.egg
2626
MANIFEST
27+
_version.py
2728

2829
# PyInstaller
2930
# Usually these files are written by a python script from a template

‎MANIFEST.in

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include LICENSE
2+
include requirements.txt

‎icepyx/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
from icepyx.core.query import Query
2+
3+
from _version import version as __version__

‎requirements.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
datetime
21
fiona
32
geopandas
43
h5py
54
matplotlib
65
numpy
7-
pre-commit
86
requests
97
shapely

‎setup.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
setuptools.setup(
1010
name="icepyx",
11-
version="0.3.2",
1211
author="The icepyx Developers",
1312
author_email="jbscheick@gmail.com",
1413
maintainer="Jessica Scheick",
@@ -27,4 +26,9 @@
2726
"Operating System :: OS Independent",
2827
"Development Status :: 1 - Planning",
2928
],
29+
use_scm_version={
30+
"write_to": "_version.py",
31+
"write_to_template": 'version = "{version}"\n',
32+
},
33+
setup_requires=["setuptools>=30.3.0", "wheel", "setuptools_scm"]
3034
)

0 commit comments

Comments
 (0)
Please sign in to comment.