[med-svn] [Git][med-team/python-leidenalg][master] avoiding setuptools_scm

Robbi Nespu gitlab at salsa.debian.org
Thu Mar 25 08:42:45 GMT 2021



Robbi Nespu  pushed to branch master at Debian Med / python-leidenalg


Commits:
77110d51 by Robbi Nespu at 2021-03-25T16:42:02+08:00
avoiding setuptools_scm

- - - - -


4 changed files:

- + debian/patches/fix-dont_use_setuptools_scm.patch
- + debian/patches/pyproject.patch
- + debian/patches/series
- debian/rules


Changes:

=====================================
debian/patches/fix-dont_use_setuptools_scm.patch
=====================================
@@ -0,0 +1,34 @@
+not as debian way of scm
+diff --git a/setup.py b/setup.py
+index 67cf3ee..84826d3 100644
+--- a/setup.py
++++ b/setup.py
+@@ -784,8 +784,8 @@ options =  dict(
+   license = 'GPLv3+',
+   url = 'https://github.com/vtraag/leidenalg',
+ 
+-  use_scm_version=True,
+-  setup_requires=['setuptools_scm'],
++  use_scm_version=False,
++  setup_requires=['setuptools'],
+ 
+   author = 'V.A. Traag',
+   author_email = 'vincent at traag.net',
+@@ -802,7 +802,7 @@ options =  dict(
+     'network',
+     'community detection',
+     'clustering'
+-    ],    
++    ],
+   classifiers=[
+       'Development Status :: 4 - Beta',
+       'Environment :: Console',
+@@ -823,7 +823,7 @@ options =  dict(
+         "build_c_core": buildcfg.build_c_core,  # used by CI
+         "build_ext": buildcfg.build_ext,
+         "sdist": buildcfg.sdist
+-    },  
++    },
+ )
+ 
+ if sys.version_info > (3, 0):


=====================================
debian/patches/pyproject.patch
=====================================
@@ -0,0 +1,11 @@
+remove scm
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,5 +1,2 @@
+ [build-system]
+-requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]
+-
+-[tool.setuptools_scm]
+-write_to = "src/version.py"
+\ No newline at end of file
++requires = ["setuptools>=42", "wheel"]


=====================================
debian/patches/series
=====================================
@@ -0,0 +1,2 @@
+fix-dont_use_setuptools_scm.patch
+pyproject.patch


=====================================
debian/rules
=====================================
@@ -1,6 +1,6 @@
 #!/usr/bin/make -f
 
-# DH_VERBOSE := 1
+DH_VERBOSE := 1
 
 export PYBUILD_NAME=leidenalg
 



View it on GitLab: https://salsa.debian.org/med-team/python-leidenalg/-/commit/77110d51ad753deeed54bb9202e3a2d2550205ea

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-leidenalg/-/commit/77110d51ad753deeed54bb9202e3a2d2550205ea
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/debian-med-commit/attachments/20210325/f2c32a13/attachment-0001.htm>


More information about the debian-med-commit mailing list