[Git][debian-gis-team/pydecorate][master] 6 commits: New upstream version 0.3.1

Antonio Valentino antonio.valentino at tiscali.it
Sun Apr 12 15:37:49 BST 2020


Dear Sebastiaan,


Il 12/04/20 12:02, Sebastiaan Couwenberg ha scritto:
> Hi Antonio,
> 
> On 4/12/20 9:42 AM, Antonio Valentino wrote:
>> =====================================
>> setup.py
>> =====================================
>> @@ -21,21 +21,23 @@
>>  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
>>  
>>  
>> -try:
>> -    with open("./README", "r") as fd:
>> -        long_description = fd.read()
>> -except IOError:
>> -    long_description = ""
>> +from setuptools import setup
>>  
>> +try:
>> +    # HACK: https://github.com/pypa/setuptools_scm/issues/190#issuecomment-351181286
>> +    # Stop setuptools_scm from including all repository files
>> +    import setuptools_scm.integration
>> +    setuptools_scm.integration.find_files = lambda _: []
>> +except ImportError:
>> +    pass
>>  
>> -from setuptools import setup
>> -import imp
>> +with open("./README.rst", "r") as fd:
>> +    long_description = fd.read()
>>  
>> -version = imp.load_source('pydecorate.version', 'pydecorate/version.py')
>>  
>>  setup(name='pydecorate',
>> -      version=version.__version__,
>>        description='Decorating PIL images: logos, texts, pallettes',
>> +      long_description=long_description,
>>        author='Hrobjartur Thorsteinsson',
>>        author_email='thorsteinssonh at gmail.com',
>>        classifiers=["Development Status :: 4 - Beta",
>> @@ -46,7 +48,6 @@ setup(name='pydecorate',
>>                     "Programming Language :: Python",
>>                     "Topic :: Scientific/Engineering"],
>>        url="https://github.com/pytroll/pydecorate",
>> -      long_description=long_description,
>>        license='GPLv3',
>>        packages=['pydecorate'],
>>        include_package_data=True,
>> @@ -54,9 +55,11 @@ setup(name='pydecorate',
>>        # Project should use reStructuredText, so ensure that the docutils get
>>        # installed or upgraded on the target machine
>>        install_requires=['pillow', 'aggdraw'],
>> +      setup_requires=['setuptools_scm', 'setuptools_scm_git_archive'],
>>        scripts=[],
>>        data_files=[],
>>        # test_suite="",
>> -      tests_require=['pytest', 'mock'],
>> -      python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
>> +      tests_require=['pytest'],
>> +      python_requires='>=3.6',
>> +      use_scm_version={'write_to': 'pydecorate/version.py'},
>>        zip_safe=False)
> 
> Can we patch out the setuptools_scm requirements?
> 
> The package fails to build when the modules are not installed outside
> the build chroot:
> 
Sure I will do it ASAP.


Happy Easter!

-- 
Antonio Valentino



More information about the Pkg-grass-devel mailing list