[Git][debian-gis-team/python-cartopy][master] Add patch to set setup() version for .egg-info.

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Mon Feb 7 20:26:16 GMT 2022



Bas Couwenberg pushed to branch master at Debian GIS Project / python-cartopy


Commits:
8980cbfe by Bas Couwenberg at 2022-02-07T21:26:09+01:00
Add patch to set setup() version for .egg-info.

- - - - -


3 changed files:

- debian/changelog
- debian/patches/series
- + debian/patches/setup-version.patch


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+python-cartopy (0.20.2+dfsg-2) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Add patch to set setup() version for .egg-info.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Mon, 07 Feb 2022 21:06:53 +0100
+
 python-cartopy (0.20.2+dfsg-1) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/patches/series
=====================================
@@ -1,3 +1,4 @@
 0001-Skip-tests-failing-on-i386-architectures.patch
 0002-test_robinson.patch
 0003-test_gridliner.patch
+setup-version.patch


=====================================
debian/patches/setup-version.patch
=====================================
@@ -0,0 +1,29 @@
+Description: Set setup() version for .egg-info.
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: not-needed
+
+--- a/setup.py
++++ b/setup.py
+@@ -320,11 +320,22 @@ if IS_SDIST and not FORCE_CYTHON:
+ else:
+     cmdclass = {'build_ext': cy_build_ext}
+ 
++version = '0.0.0'
++version_file = 'lib/cartopy/_version.py'
++if os.access(version_file, os.R_OK):
++    import re
++    with open(version_file, 'rt') as f:
++        for line in f.readlines():
++            match = re.search(r'^version\s*=\s*[\'"](\S+)[\'"]\s*$', line)
++            if match:
++                version = match.group(1)
++                break
+ 
+ # Main setup
+ # ==========
+ setup(
+     name='Cartopy',
++    version=version,
+     url='https://scitools.org.uk/cartopy/docs/latest/',
+     download_url='https://github.com/SciTools/cartopy',
+     author='UK Met Office',



View it on GitLab: https://salsa.debian.org/debian-gis-team/python-cartopy/-/commit/8980cbfe4886eae31fd85aed94b12b563c312800

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/python-cartopy/-/commit/8980cbfe4886eae31fd85aed94b12b563c312800
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20220207/bf17e673/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list