Skip to content

Commit

Permalink
fix package version
Browse files Browse the repository at this point in the history
  • Loading branch information
giancastro committed May 17, 2021
1 parent 1df493b commit 3148e49
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include *.txt
include *.md
include mapshader/.version

graft mapshader

Expand Down
12 changes: 8 additions & 4 deletions mapshader/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import sys

try:
from ._version import __version__
except ImportError:
__version__ = "Unknown"
import param
__version__ = str(
param.version.Version(
fpath=__file__,
archive_commit='$Format:%h$',
reponame='mapshader',
)
)


def test():
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[build-system]
requires = [
'param >=1.6.1',
'pyct',
'setuptools',
'wheel',
Expand Down
12 changes: 7 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
import shutil
import sys

import param
import pyct.build


setup_args = dict(
name='mapshader',
use_scm_version={
'write_to': 'mapshader/_version.py',
'write_to_template': '__version__ = "{version}"',
'tag_regex': r'^(?P<prefix>v)?(?P<version>[^\+]+)(?P<suffix>.*)?$',
},
version=param.version.get_setup_version(
__file__,
'mapshader',
archive_commit='$Format:%h$',
),
description='Simple Python GIS Web Services',
url='https://github.com/makepath/mapshader',
packages=[
Expand All @@ -34,6 +35,7 @@
'descartes',
'flask',
'flask-cors>=3.0.10',
'param >=1.6.1',
'rasterio',
'jupyter',
'pyarrow',
Expand Down

0 comments on commit 3148e49

Please sign in to comment.