[med-svn] [Git][med-team/python-py2bit][master] 5 commits: New upstream version 0.3.3
Étienne Mollier (@emollier)
gitlab at salsa.debian.org
Sat Feb 15 18:37:27 GMT 2025
Étienne Mollier pushed to branch master at Debian Med / python-py2bit
Commits:
ee0ca9d1 by Étienne Mollier at 2025-02-15T19:26:03+01:00
New upstream version 0.3.3
- - - - -
5e0b42b2 by Étienne Mollier at 2025-02-15T19:26:04+01:00
Update upstream source from tag 'upstream/0.3.3'
Update to upstream version '0.3.3'
with Debian dir cf0fd001a9fee5abcc1f752617952952560ebb49
- - - - -
168f2163 by Étienne Mollier at 2025-02-15T19:30:34+01:00
migrate-to-sysconfig.patch: delete patch.
Upstream code moved to pyproject.toml, making the need for the patch
against setup.py now void.
- - - - -
4656ae0e by Étienne Mollier at 2025-02-15T19:32:05+01:00
d/control: build depends on pybuild-plugin-pyproject.
- - - - -
24928d35 by Étienne Mollier at 2025-02-15T19:36:39+01:00
d/changelog: ready for upload to unstable.
- - - - -
8 changed files:
- + .github/workflows/pypi.yml
- debian/changelog
- debian/control
- − debian/patches/migrate-to-sysconfig.patch
- debian/patches/series
- py2bit.h
- + pyproject.toml
- setup.py
Changes:
=====================================
.github/workflows/pypi.yml
=====================================
@@ -0,0 +1,34 @@
+name: pypi
+on: [push]
+jobs:
+ pypi:
+ name: upload to pypi
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout at v3
+ with:
+ fetch-depth: 0
+ - name: Set up Python
+ uses: actions/setup-python at v4
+ with:
+ python-version: '3.9'
+ - name: Install build prerequisites
+ if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
+ run: |
+ python -m pip install --upgrade twine build cibuildwheel
+ - name: sdist
+ if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
+ run: |
+ python -m build --sdist
+ - name: wheel
+ if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
+ run: |
+ python -m cibuildwheel --output-dir wheelhouse
+ - name: upload
+ if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
+ env:
+ TWINE_USERNAME: "__token__"
+ TWINE_PASSWORD: ${{ secrets.pypi_password }}
+ run: |
+ twine upload dist/*
+ twine upload wheelhouse/*
=====================================
debian/changelog
=====================================
@@ -1,3 +1,13 @@
+python-py2bit (0.3.3-1) unstable; urgency=medium
+
+ * New upstream version 0.3.3
+ * migrate-to-sysconfig.patch: delete patch.
+ Upstream code moved to pyproject.toml, making the need for the patch
+ against setup.py now void.
+ * d/control: build depends on pybuild-plugin-pyproject.
+
+ -- Étienne Mollier <emollier at debian.org> Sat, 15 Feb 2025 19:32:23 +0100
+
python-py2bit (0.3.2-1) unstable; urgency=medium
* New upstream version 0.3.2
=====================================
debian/control
=====================================
@@ -7,6 +7,7 @@ Uploaders: Steffen Moeller <moeller at debian.org>,
Build-Depends: debhelper-compat (= 13),
architecture-is-little-endian,
dh-sequence-python3,
+ pybuild-plugin-pyproject,
python3-all-dev:native,
libpython3-all-dev,
python3-setuptools
=====================================
debian/patches/migrate-to-sysconfig.patch deleted
=====================================
@@ -1,20 +0,0 @@
-Description: migrate to plain sysconfig module.
- The distutils module is deprecated since Pytnon 3.10, and thus is
- distutils.sysconfig. This change replaces the original "import from"
- by a bare "import sysconfig", per PEP 632 recommendation. Maybe a
- better approach would be to migrate to pyproject.toml.
-Author: Étienne Mollier <emollier at debian.org>
-Bug: https://github.com/deeptools/py2bit/issues/17
-Last-Update: 2024-11-18
----
-This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
---- python-py2bit.orig/setup.py
-+++ python-py2bit/setup.py
-@@ -1,6 +1,6 @@
- #!/usr/bin/env python
- from setuptools import setup, Extension, find_packages
--from distutils import sysconfig
-+import sysconfig
- import subprocess
- import glob
- import sys
=====================================
debian/patches/series
=====================================
@@ -1,2 +1 @@
enable-tests.patch
-migrate-to-sysconfig.patch
=====================================
py2bit.h
=====================================
@@ -1,7 +1,7 @@
#include <Python.h>
#include "2bit.h"
-#define pyTwoBitVersion "0.3.2"
+#define pyTwoBitVersion "0.3.3"
typedef struct {
PyObject_HEAD
=====================================
pyproject.toml
=====================================
@@ -0,0 +1,47 @@
+[build-system]
+requires = ["setuptools>=74.1", "setuptools-scm"]
+build-backend = "setuptools.build_meta"
+
+[project]
+name = "py2bit"
+version = "0.3.3"
+description = "A package for accessing 2bit files using lib2bit"
+authors = [
+ { name = "Devon P. Ryan", email = "dpryan79 at gmail.com" }
+]
+license = { text = "MIT" }
+readme = "README.md"
+keywords = ["bioinformatics", "2bit"]
+classifiers = [
+ "Development Status :: 5 - Production/Stable",
+ "Intended Audience :: Developers",
+ "License :: OSI Approved",
+ "Programming Language :: C",
+ "Programming Language :: Python",
+ "Programming Language :: Python :: 2.7",
+ "Programming Language :: Python :: 3",
+ "Programming Language :: Python :: Implementation :: CPython",
+ "Operating System :: POSIX",
+ "Operating System :: Unix",
+ "Operating System :: MacOS"
+]
+
+[project.urls]
+download = "https://github.com/deeptools/py2bit"
+homepage = "https://github.com/deeptools/py2bit"
+
+[tool.setuptools]
+# Override setuptools autodiscovery algorithm
+# Only include package test data/source for wheel distribution
+include-package-data = true
+packages = ["py2bitTest"]
+
+# Enable version inference from scm
+[tool.setuptools_scm]
+
+# Target only minimum CPython version 3.9 on linux for wheel build
+[tool.cibuildwheel]
+skip = "pp* cp36-* cp37-* cp38-* *-manylinux_i686 *_ppc64le *_s390x *-musllinux_x86_64 *-musllinux_i686"
+
+[tool.cibuildwheel.linux]
+manylinux-x86_64-image = "manylinux2014"
=====================================
setup.py
=====================================
@@ -1,9 +1,6 @@
-#!/usr/bin/env python
-from setuptools import setup, Extension, find_packages
-from distutils import sysconfig
-import subprocess
+from setuptools import setup, Extension
import glob
-import sys
+import sysconfig
srcs = [x for x in
glob.glob("lib2bit/*.c")]
@@ -16,27 +13,5 @@ module1 = Extension('py2bit',
library_dirs = additional_libs,
include_dirs = ['lib2bit', sysconfig.get_config_var("INCLUDEPY")])
-setup(name = 'py2bit',
- version = '0.3.2',
- description = 'A package for accessing 2bit files using lib2bit',
- author = "Devon P. Ryan",
- author_email = "dpryan79 at gmail.com",
- url = "https://github.com/deeptools/py2bit",
- license = "MIT",
- download_url = "https://github.com/deeptools/py2bit",
- keywords = ["bioinformatics", "2bit"],
- classifier = ["Development Status :: 5 - Production/Stable",
- "Intended Audience :: Developers",
- "License :: OSI Approved",
- "Programming Language :: C",
- "Programming Language :: Python",
- "Programming Language :: Python :: 2",
- "Programming Language :: Python :: 2.7",
- "Programming Language :: Python :: 3",
- "Programming Language :: Python :: Implementation :: CPython",
- "Operating System :: POSIX",
- "Operating System :: Unix",
- "Operating System :: MacOS"],
- packages = find_packages(),
- include_package_data=True,
- ext_modules = [module1])
+setup_args = dict(ext_modules=[module1])
+setup(**setup_args)
View it on GitLab: https://salsa.debian.org/med-team/python-py2bit/-/compare/b1efa3cfd1a40e9bee5198003f62a8fa6ceb8ad1...24928d358e3ddbfd4831ac97816284d156326ca1
--
View it on GitLab: https://salsa.debian.org/med-team/python-py2bit/-/compare/b1efa3cfd1a40e9bee5198003f62a8fa6ceb8ad1...24928d358e3ddbfd4831ac97816284d156326ca1
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/20250215/99224f19/attachment-0001.htm>
More information about the debian-med-commit
mailing list