[Git][debian-gis-team/python-cartopy][master] 3 commits: Simplify the version file generation

Antonio Valentino antonio.valentino at tiscali.it
Sat Dec 4 19:17:22 GMT 2021


Dear Sebastiaan,

Il 04/12/21 19:38, Sebastiaan Couwenberg ha scritto:
> On 12/4/21 19:30, Antonio Valentino (@antonio.valentino) wrote:
>> =====================================
>> debian/rules
>> =====================================
>> @@ -3,6 +3,8 @@
>>   # Uncomment this to turn on verbose mode.
>>   #export DH_VERBOSE = 1
>> +include /usr/share/dpkg/pkg-info.mk
>> +
>>   export DEB_BUILD_MAINT_OPTIONS = hardening=+all
>>   # Workaround for proj_api.h deprecation in PROJ 6.0.0
>> @@ -29,8 +31,7 @@ override_dh_auto_clean:
>>       $(RM) -r __pycache__
>>   override_dh_auto_configure:
>> -    python3 $(CURDIR)/debian/version.py
>> -
>> +    echo "version = '$(DEB_VERSION_UPSTREAM)'" > 
>> $(CURDIR)/lib/cartopy/_version.py
>>       dh_auto_configure
>>   override_dh_auto_test:
> 
> This is not equivalent to what version.py does, and is not better.
> 
> DEB_VERSION_UPSTREAM includes the repacksuffix which is not part of the 
> upstream version that the Python code should use.
> 
> We strip that for symbols versions too, see for example:
> 
> 
> https://salsa.debian.org/debian-gis-team/librttopo/-/blob/master/debian/rules#L10 
> 

thanks, will fix

-- 
Antonio Valentino



More information about the Pkg-grass-devel mailing list